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
Query Parameters
  • the format of the image, JPEG, GIF, PNG, BMP
    Allowed Values: [ "JPEG", "GIF", "PNG", "BMP" ]
    Example:
    JPEG
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
parameters for returning the mosaic subset in an image
Show Source
Nested Schema : rendering_param
Type: object
client side rendering options
Show Source
  • colormap
    an array of colormap entries
  • grayscale
    an array of grayscale entries
  • 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
    an array specifying the layers to apply the mask, if there is no mask in that layer, it is ignored.
  • 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
Nested Schema : colormap
Type: array
an array of colormap entries
Show Source
Nested Schema : grayscale
Type: array
an array of grayscale entries
Show Source
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
Nested Schema : nodataMapping
Type: array
an array of nodata mapping entries
Show Source
Nested Schema : items
Type: object
colormap entry
Show Source
Nested Schema : items
Type: object
grayscale entry
Show Source
Nested Schema : items
Type: object
Define the mask mapping
Show Source
Nested Schema : items
Type: object
nodata mapping entry
Show Source
Nested Schema : sdo_number_array
Type: array
Show Source
Nested Schema : colorBalance
Type: object
Show Source
Nested Schema : cropArea
Match One Schema
Show Source
Nested Schema : memoryParam
Type: object
the memory usage parameter
Show Source
Nested Schema : reference
Match One Schema
Show Source
Nested Schema : sdo_georaster
Type: object
Show Source
Nested Schema : reference-oneOf[1]
Type: object
Show Source
Nested Schema : sdo_geor_histogram
Type: object
Show Source
Nested Schema : sdo_geometry
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Return the virtual mosaic subset in an image.
Body ()
Root Schema : schema
Type: string(binary)

401 Response

Authentication information is missing or invalid
Headers
Back to Top

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