Get the Statistics of a Virtual Mosaic
get
{server}/georaster/v1/{datasource}/vm/{virtualMosaicName}/statistics
Get the statistics of a virtual mosaic.
Request
Path Parameters
-
virtualMosaicName(required): string
The name of the virtual mosaic
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Return the statistics of the virtual mosaic in an array in the order of min, max, mean and std, for each band.
Root Schema : VMStatsResponse
Type:
Show Source
object
-
links: array
links
link to self, rasterImage, rasterData
-
stats: array
stats
the statistics for each band in an array
401 Response
Examples
The following is an example on how to get statistics of a virual mosaic by submitting a GET request using cURL.
curl -X GET "https://localhost:8080/oraclespatial/georaster/v1/datasource1/vm/landsatMosaic/statistics" -H "Cookie: JSESSIONID=<jsessionid_value>"
The following shows an example of the response in JSON format for the above request.
{ "statistics" : [ { "min" : 0.0, "max" : 255.0, "mean" : 116.869247428262, "std" : 127.058618932125, "median" : 0.0, "mode" : 0.0, "sum" : 1.72686E7 }, { "min" : 0.0, "max" : 255.0, "mean" : 82.2985923118571, "std" : 119.221054803294, "median" : 0.0, "mode" : 0.0, "sum" : 1.216044E7 }, { "min" : 0.0, "max" : 255.0, "mean" : 109.910936654034, "std" : 126.283500196607, "median" : 0.0, "mode" : 0.0, "sum" : 1.624044E7 } ], "links" : [ { "rel" : "self", "href" : "http://localhost:8080/oraclespatial/georaster/v1/datasource1/vm/landsatMosaic/statistics" }, { "rel" : "parent", "href" : "http://localhost:8080/oraclespatial/georaster/v1/datasource1/vm/landsatMosaic" } ] }