SDO_GEOR.getGrayScaleTable
Format
SDO_GEOR.getGrayScaleTable(
georaster IN SDO_GEORASTER,
layerNumber IN NUMBER
) RETURN VARCHAR2;
Description
Returns the grayscale mapping table for a layer in a GeoRaster object.
Note: GeoRaster does not perform operations using the grayscale mapping table in the current release.
Parameters
georaster
GeoRaster object.
layerNumber
Number of the layer for which to return the grayscale mapping table. A value of 0 (zero) indicates the object layer.
Usage Notes
This function returns the name of a user-defined grayscale table. SDO_GEOR_GRAYSCALE Object Type describes grayscale display.
To set the grayscale mapping table for a layer in a GeoRaster object, use the SDO_GEOR.setGrayScaleTable procedure.
Examples
The following example returns the grayscale mapping tables for layers 0, 1, 2, and 3 of the GeoRaster object (GEORASTER column) in the row with the GEORID column value of 4 in the GEORASTER_TABLE table. (It refers to a table named GEORASTER_TABLE, whose definition is presented after Example: Using storageParam Keywords in Storage Parameters. The output is reformatted for readability.)
SELECT substr(sdo_geor.getGrayScaleTable(georaster, 0),1,20) grayScaleTable0,
substr(sdo_geor.getGrayScaleTable(georaster, 1),1,20) grayScaleTable1,
substr(sdo_geor.getGrayScaleTable(georaster, 2),1,20) grayScaleTable2,
substr(sdo_geor.getGrayScaleTable(georaster, 3),1,20) grayScaleTable3
FROM georaster_table WHERE georid=4;
GRAYSCALETABLE0 GRAYSCALETABLE1 GRAYSCALETABLE2 GRAYSCALETABLE3
-------------------- -------------------- -------------------- -----------------
SCL0 SCL1 SCL2 SCL3