Get Raster Data in Image Format 1
get
{server}/georaster/v1/{datasource}/{tableName}/{georasterColumnName}/{rdt}/{rid}/rasterImage
Query the raster data of the specified GeoRaster Object and return the result in a standard web image format for display.
The query parameter "format" and "thumbnail" are used to specify the returned image format. You can also specify the crop window, the band numbers, the pyramid level and image processing method as the query parameters.
Request
Path Parameters
-
georasterColumnName(required): string
The name of the GeoRaster ColumnExamples
-
rdt(required): string
The Raster Data Table (RDT) Name.Examples
-
rid(required): integer
The Raster ID (RID) of the GeoRaster Object.Examples
-
tableName(required): string
The name of the table, could be prefixed with a schema nameExamples
Query Parameters
-
IPMethod: string
Specify the image processing method.Allowed Values:
[ "stretch", "piecewisestretch", "normalize", "equalize" ]
-
bandNumbers: string
Specify the band numbers to retrieve.Examples
-
cropWin: array[number]
Minimum Number of Items:
4
Maximum Number of Items:4
The cropping window of the returned image. The coordinates of the cropping window are in cell space coordinates, that is, row and column numbers of the upper-left and lower-right corner of the cropping window in the raster data. Cannot co-exist with thumbnail parameter.Examples -
format: string
Specify the format of the returned image: JPEG, GIF, PNG, or BMP. For the truecolor and grayscale images, it defaults to JPEG. For the pseudocolor images, it defaults to PNG.Allowed Values:
[ "JPEG", "GIF", "PNG", "BMP" ]
Example:JPEG
-
pyramidLevel: number
Specify the pyramid level of the GeoRaster data.Examples
-
thumbnail: boolean
Boolean value to specify whether return a thumbnail image.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- image/png
- image/jpeg
- image/bmp
- image/gif
200 Response
Return the output raster data in binary stream.
Root Schema : schema
Type:
string(binary)
401 Response
Examples
The following is an example on how to request a thumbnail image from a GeoRaster Object by submitting a GET request using cURL.
curl -X GET "https://localhost:8080/oraclespatial/georaster/v1/datasource1/raster_image/image/rasterImage?format=JPEG&thumbnail=true" -H "Cookie: JSESSIONID=<jsessionid_value>"