HDFSにロードされたイメージのメタデータの一覧表示
get
/spatialviewer/api/v1/raster/hdfs/imagery
リクエスト
この操作のリクエスト・パラメータはありません。
先頭に戻るレスポンス
サポートされるメディア・タイプ
- application/json
200レスポンス
要求が成功しました
ルート・スキーマ: RasterImagenarySuccessResponse
型:
ソースの表示
object
- o:successCode(optional): string
成功コード。例:
SVR-00204
- response(optional): object response
レスポンスの詳細情報
- status(optional): string
成功またはエラー例:
success
- title(optional): string
レスポンスの説明例:
HDFS File found.
ネストされたスキーマ: response
型:
object
レスポンスの詳細情報
ソースの表示
- items(optional): object items
ロードされた各ラスターのジオメトリおよびその他の詳細
- message(optional): string
レスポンスの説明例:
HDFS file found.
ネストされたスキーマ: items
型:
object
ロードされた各ラスターのジオメトリおよびその他の詳細
ソースの表示
- bbox(optional): array bbox
地物の境界
- features(optional): array features
- geodetic(optional): boolean
地物が測地かどうかを決定します例:
true
- srs(optional): number
SRID値例:
4326
- type(optional): string
ジオメトリ・タイプ例:
FeatureCollection
ネストされたスキーマ: bbox
型:
array
地物の境界
ソースの表示
- 配列: integer(float32)
例:
[ -156.7365369244308, -156.7365369244308, 20.555967454272203, -155.94583285721743, 21.05401626275324 ]
ネストしたスキーマ: FeatureDetailObject
型:
ソースの表示
object
- geometry(optional): object geometry
地物のジオメトリの詳細
- properties(optional): object properties
地物のプロパティ
- type(optional): string
地物のタイプ例:
Feature
ネストされたスキーマ: geometry
型:
object
地物のジオメトリの詳細
ソースの表示
- coordinates(optional): array coordinates
- type(optional): string
地物のタイプ例:
Polygon
ネストされたスキーマ: properties
型:
object
地物のプロパティ
ソースの表示
- bands(optional): string
地物バンド値例:
1
- datatype(optional): string
地物データ・タイプ値例:
6
- file(optional): string
特殊な形式のラスター・ソース・ファイル例:
/usr/oracle/spatialviewer/workingdir/raster/raster.tif.ohif
- height(optional): number
地物の高さ例:
1202.000000000008
- resolution(optional): object resolution
地物の解像度の詳細
- srid(optional): number
地物のSRID例:
32610
- thumbpath(optional): string
サムネイル・フォルダの場所例:
/usr/oracle/spatialviewer/workingdir/raster/thumb
- width(optional): number
地物の幅例:
1800
ネストしたスキーマ: resolution
型:
object
地物の解像度の詳細
ソースの表示
- resolutionX(optional): number
地物の解像度X例:
27.90809458890406
- resolutionY(optional): number
地物の解像度Y例:
-27.90809458890406
404レスポンス
HDFSにメタデータ・フォルダが見つかりません
ルート・スキーマ: RasterImagenaryMetadataNotFoundResponse
型:
ソースの表示
object
- detail(optional): string
エラーの詳細例:
Unable to locate the imagery metadata folder
- o:successCode(optional): string
成功コード。例:
SVR-E0002
- status(optional): string
成功またはエラー例:
error
- title(optional): string
レスポンスの説明例:
Unable to locate the imagery metadata folder.
例
SpatialViewerラスター・ロードUIまたはSpatialラスターAPIを使用してアップロードされた、HDFSにロードされたイメージのメタデータを一覧表示します。イメージは、HDFS内のSpatialラスターAPIから生成されたメタデータから取得されます。
次の例では、cURLを使用してRESTリソースに対するGETリクエストを発行することによって、ラスター画像を取得する方法を示しています。
curl -X GET "http://localhost:8045/spatialviewer/api/v1/raster/hdfs/imagery" -H "accept: application/json"
レスポンス・ヘッダーの例
レスポンス・ヘッダーの例
HTTP/1.1 200 OK Date: Tue, 21 Aug 2018 22:17:12 GMT Content-Type: application/json Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true Access-Control-Allow-Methods: GET, POST, DELETE, PUT Access-Control-Allow-Headers: Content-Type, Accept Transfer-Encoding: chunked
レスポンス本文の例
次の例は、レスポンス本文の内容をJSON形式で示したものです
{ "status" : "success", "title" : "HDFS File found.", "o:successCode" : "SVR-00204", "response" : { "message" : "HDFS file found", "items" : { "type" : "FeatureCollection", "srs" : 4326, "geodetic" : true, "bbox" : [ -156.7365369244308, 18.875729817164682, -70.95227337202385, 42.62245107721305 ], "features" : [ { "type" : "Feature", "geometry" : { "type" : "Polygon", "coordinates" : [ [ [ -71.07506153586199, 42.35106049624377 ], [ -71.07506153586199, 42.61945506336008 ], [ -70.95695868641145, 42.61945506336008 ], [ -70.95695868641145, 42.35106049624377 ] ] ] }, "properties" : { "srid" : 26986, "thumbpath" : "/net/den00btb/scratch/zherena/test/write/thumb/", "width" : 1800.0, "height" : 5421.999999999994, "file" : "/user/hdfs/upload/InitialFilter.tif.ohif", "resolution" : { "resolutionX" : 5.488334768766928, "resolutionY" : -5.488334768766928 }, "datatype" : "3", "bands" : "1" } }, { "type" : "Feature", "geometry" : { "type" : "Polygon", "coordinates" : [ [ [ -156.6949111088139, 18.875729817164682 ], [ -156.6949111088139, 20.291695517490766 ], [ -154.52586689541084, 20.291695517490766 ], [ -154.52586689541084, 18.875729817164682 ] ] ] }, "properties" : { "srid" : 26904, "thumbpath" : "/net/den01spo/scratch/swap/spatialviewer//thumb/", "width" : 3200.0, "height" : 2111.9999999999995, "file" : "/user/hdfs/upload/net/den01spo/scratch/swap/spatialviewer/data/rasters/hawaii.tif.ohif", "resolution" : { "resolutionX" : 72.15792877633619, "resolutionY" : -72.15792877633619 }, "datatype" : "1", "bands" : "3" } }, { "type" : "Feature", "geometry" : { "type" : "Polygon", "coordinates" : [ [ [ -156.7365369244308, 20.555967454272203 ], [ -156.7365369244308, 21.05401626275324 ], [ -155.94583285721743, 21.05401626275324 ], [ -155.94583285721743, 20.555967454272203 ] ] ] }, "properties" : { "srid" : 26904, "thumbpath" : "/net/den01spo/scratch/swap/spatialviewer//thumb/", "width" : 3200.0, "height" : 2067.999999999997, "file" : "/user/hdfs/upload/maui.tif.ohif", "resolution" : { "resolutionX" : 26.018635967341105, "resolutionY" : -26.018635967341105 }, "datatype" : "1", "bands" : "3" } }, { "type" : "Feature", "geometry" : { "type" : "Polygon", "coordinates" : [ [ [ -156.2660953491551, 19.71021898876328 ], [ -156.2660953491551, 20.844040806598937 ], [ -155.23338624125736, 20.844040806598937 ], [ -155.23338624125736, 19.71021898876328 ] ] ] }, "properties" : { "srid" : 26904, "thumbpath" : "/net/den01spo/scratch/swap/spatialviewer/thumb/", "width" : 1800.0, "height" : 2012.9999999999998, "file" : "/testhdfs.tif.ohif", "resolution" : { "resolutionX" : 61.35444695778262, "resolutionY" : -61.35444695778262 }, "datatype" : "1", "bands" : "3" } }, { "type" : "Feature", "geometry" : { "type" : "Polygon", "coordinates" : [ [ [ -71.07837068219838, 42.34799416281842 ], [ -71.07837068219838, 42.62245107721305 ], [ -70.95477454709828, 42.62245107721305 ], [ -70.95477454709828, 42.34799416281842 ] ] ] }, "properties" : { "srid" : 26986, "thumbpath" : "/net/den01spo/scratch/swap/spatialviewer//thumb/", "width" : 1800.0, "height" : 5300.000000000001, "file" : "/user/hdfs/upload/bostonFilter.tif.ohif", "resolution" : { "resolutionX" : 5.741255260017998, "resolutionY" : -5.741255260017998 }, "datatype" : "3", "bands" : "1" } }, { "type" : "Feature", "geometry" : { "type" : "Polygon", "coordinates" : [ [ [ -71.07337795557184, 42.52915380226499 ], [ -71.07337795557184, 42.61968939631627 ], [ -70.95227337202385, 42.61968939631627 ], [ -70.95227337202385, 42.52915380226499 ] ] ] }, "properties" : { "srid" : 26986, "thumbpath" : "/net/den00btb/scratch/zherena/test/write/thumb/", "width" : 5000.0, "height" : 5000.0, "file" : "/user/hdfs/upload/Middleton.tif.ohif", "resolution" : { "resolutionX" : 2.0, "resolutionY" : -2.0 }, "datatype" : "3", "bands" : "1" } }, { "type" : "Feature", "geometry" : { "type" : "Polygon", "coordinates" : [ [ [ -156.6949111088139, 18.875729817164682 ], [ -156.6949111088139, 20.291695517490766 ], [ -154.52586689541084, 20.291695517490766 ], [ -154.52586689541084, 18.875729817164682 ] ] ] }, "properties" : { "srid" : 26904, "thumbpath" : "/net/den01spo/scratch/swap/spatialviewer//thumb/", "width" : 3200.0, "height" : 2111.9999999999995, "file" : "/user/hdfs/upload/hawaii.tif.ohif", "resolution" : { "resolutionX" : 72.15792877633619, "resolutionY" : -72.15792877633619 }, "datatype" : "1", "bands" : "3" } }, { "type" : "Feature", "geometry" : { "type" : "Polygon", "coordinates" : [ [ [ -71.0745931728542, 42.34919530993025 ], [ -71.0745931728542, 42.439733708697005 ], [ -70.9538313144653, 42.439733708697005 ], [ -70.9538313144653, 42.34919530993025 ] ] ] }, "properties" : { "srid" : 26986, "thumbpath" : "/net/den00btb/scratch/zherena/test/write/thumb/", "width" : 5000.0, "height" : 5000.0, "file" : "/user/hdfs/upload/Boston.tif.ohif", "resolution" : { "resolutionX" : 2.0, "resolutionY" : -2.0 }, "datatype" : "3", "bands" : "1" } }, { "type" : "Feature", "geometry" : { "type" : "Polygon", "coordinates" : [ [ [ -71.07398612685965, 42.43922057333476 ], [ -71.07398612685965, 42.529757679924224 ], [ -70.95305306297216, 42.529757679924224 ], [ -70.95305306297216, 42.43922057333476 ] ] ] }, "properties" : { "srid" : 26986, "thumbpath" : "/net/den00btb/scratch/zherena/test/write/thumb/", "width" : 5000.0, "height" : 5000.0, "file" : "/user/hdfs/upload/Saugus.tif.ohif", "resolution" : { "resolutionX" : 2.0, "resolutionY" : -2.0 }, "datatype" : "3", "bands" : "1" } }, { "type" : "Feature", "geometry" : { "type" : "Polygon", "coordinates" : [ [ [ -122.62545489427995, 38.57117909890767 ], [ -122.62545489427995, 38.87673549107142 ], [ -122.05038927194073, 38.87673549107142 ], [ -122.05038927194073, 38.57117909890767 ] ] ] }, "properties" : { "srid" : 32610, "thumbpath" : "/net/den00btb/scratch/zherena/test/write/thumb/", "width" : 1800.0, "height" : 1202.000000000008, "file" : "/user/hdfs/upload/NapaDEM.tif.ohif", "resolution" : { "resolutionX" : 27.90809458890406, "resolutionY" : -27.90809458890406 }, "datatype" : "6", "bands" : "1" } } ] } }}