Get Virtual Mosaic Data in Image Format
post
{server}/georaster/v1/{datasource}/vm/{virtualMosaicName}/rasterImage
Get a subset of the specified virtual mosaic in image format.
Request
Path Parameters
-
virtualMosaicName(required): string
The name of the virtual mosaic
Query Parameters
-
format: string
the format of the image, JPEG, GIF, PNG, BMPAllowed Values:
[ "JPEG", "GIF", "PNG", "BMP" ]
Example:JPEG
Supported Media Types
- application/json
Root Schema : schema
Type:
object
parameters for returning the mosaic subset in an image
Show Source
-
renderOps: object
rendering_param
client side rendering options
-
vm_param: object
vm_param
virtual mosaic retrieval parameter. Some parameters are part of the virtual mosaic definition too. If these parameters are specified, they will overwrite the parameters specified at virutal mosaic definition.
Nested Schema : rendering_param
Type:
object
client side rendering options
Show Source
-
colorMap: array
colormap
an array of colormap entries
-
grayScale: array
grayscale
an array of grayscale entries
-
IPMethod: string
Allowed Values:
[ "none", "stretch", "piecewisestretch", "normalize", "equalize" ]
the Rendering Image Processing Method. Note that for the data that is returned from the server-side raster operations such as affinetransform, getrasterdata, getrastersubset, rectify, reproject and warp, the image rendering process should use the statistics stored in the GeoRaster Object. If there is no statistics set in the GeoRaster Object metadata, the statistics of the returned data is used in the image processing. When IPMethod is not specified but the data is not in the rendering range (for example, not 8bit), normalization is applied to the rendered image. -
mask: array
mask
an array specifying the layers to apply the mask, if there is no mask in that layer, it is ignored.
-
nodataMapping: array
nodataMapping
an array of nodata mapping entries
Nested Schema : vm_param
Type:
object
virtual mosaic retrieval parameter. Some parameters are part of the virtual mosaic definition too. If these parameters are specified, they will overwrite the parameters specified at virutal mosaic definition.
Show Source
-
bandNumbers: string
-
bgValues: array
sdo_number_array
-
colorBalance: object
colorBalance
-
commonPointRule: string
Allowed Values:
[ "start", "end", "latest", "oldest", "ctc", "high", "low", "average", "highres" ]
-
considerNodata: boolean
Default Value:
false
-
cropArea:
cropArea
-
fillGap: boolean
Default Value:
false
-
memoryParam: object
memoryParam
the memory usage parameter
-
pyramidLevel: integer
-
resamplingMethod: string
-
resamplingTolerance: number
Minimum Value:
0
Maximum Value:0.5
-
resFilter: boolean
Default Value:
false
Nested Schema : colormap
Type:
array
an array of colormap entries
Show Source
-
Array of:
object items
colormap entry
Nested Schema : grayscale
Type:
array
an array of grayscale entries
Show Source
-
Array of:
object items
grayscale entry
Nested Schema : mask
Type:
array
an array specifying the layers to apply the mask, if there is no mask in that layer, it is ignored.
Show Source
-
Array of:
object items
Define the mask mapping
Nested Schema : nodataMapping
Type:
array
an array of nodata mapping entries
Show Source
-
Array of:
object items
nodata mapping entry
Nested Schema : colorBalance
Type:
Show Source
object
-
balanceMethod(required): string
Default Value:
none
Allowed Values:[ "none", "linearstretching", "statisticdmatching", "histogrammatching" ]
-
reference:
reference
-
referenceMethod: string
Allowed Values:
[ "value", "image", "overlap" ]
Response
Supported Media Types
- image/png
- image/jpeg
- image/bmp
- image/gif
200 Response
Return the virtual mosaic subset in an image.
Root Schema : schema
Type:
string(binary)
401 Response
Examples
The following is an example on how to request a subset of the virtual mosaic "landsatMosaic" in JPEG format by submitting a POST request using cURL.
curl -X POST -d @request.json "https://localhost:8080/oraclespatial/georaster/v1/datasource1/vm/landsatMosaic/rasterImage?format=JPEG" -H "Cookie: JSESSIONID=<jsessionid_value>"
The following is an example of request.json for the request body:
{ "bandNumbers": "0", "cropArea": [ 0, 0, 100, 100 ], "resamplingMethod": "bilinear", "considerNodata": true, "fillGap": true, "commonPointRule": "low" }