List the metadata of the loaded images in HDFS

get

/spatialviewer/api/v1/raster/hdfs/imagery

Request

There are no request parameters for this operation.

Back to Top

Response

Supported Media Types

200 Response

successful request
Body ()
Root Schema : RasterImagenarySuccessResponse
Type: object
Show Source
Nested Schema : response
Type: object
Response details
Show Source
Nested Schema : items
Type: object
Geometry and other details of each loaded raster
Show Source
Nested Schema : bbox
Type: array
Features boundaries
Show Source
  • Example: [ -156.7365369244308, -156.7365369244308, 20.555967454272203, -155.94583285721743, 21.05401626275324 ]
Nested Schema : features
Type: array
Show Source
Nested Schema : FeatureDetailObject
Type: object
Show Source
Nested Schema : geometry
Type: object
Feature geometry details
Show Source
Nested Schema : properties
Type: object
Feature properties
Show Source
Nested Schema : coordinates
Type: array
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : items
Type: array
Show Source
Example:
[
    -122.62545489427995,
    38.57117909890767
]
Nested Schema : resolution
Type: object
Feature resolution details
Show Source

404 Response

metadata folder does not found in HDFS
Body ()
Root Schema : RasterImagenaryMetadataNotFoundResponse
Type: object
Show Source
Back to Top

Examples

List the metadata of the loaded images in HDFS that were upload using the SpatialViewer Raster load UI or the Spatial Raster API. The images are retrived from the metadata generated from the Spatial Raster API inside HDFS.

The following example shows how to get the raster imagery by submitting a GET request on the REST resource using cURL.

curl -X GET "http://localhost:8045/spatialviewer/api/v1/raster/hdfs/imagery" -H "accept: application/json"

Example of Response Header

Example of Response Header

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

Example of the Response Body

The following example shows the contents of the response body in JSON format

{ "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" } } ] } }}
Back to Top