7.56 SDO_GEOR.getDefaultColorLayer
Format
SDO_GEOR.getDefaultColorLayer( georaster IN SDO_GEORASTER ) RETURN SDO_NUMBER_ARRAY;
Description
Returns the default numbers of the layers to be used for the red, green, blue, and alpha color components, respectively, for displaying a GeoRaster object.
Usage Notes
The RGB layer numbers returned are used for true-color displays, not for pseudocolor or grayscale displays.
You can return the layer number for each color component (RGBA) by using the SDO_GEOR.getDefaultRed, SDO_GEOR.getDefaultGreen, SDO_GEOR.getDefaultBlue, and SDO_GEOR.getDefaultAlpha functions.
The alpha color component is optional. If the default alpha color component exists in the metadata, this functions returns an array of four numbers identifying the red, green, blue, and alpha color components, respectively. If only the default red, green, and blue color components exist in the metadata, this functions returns an array of three numbers identifying the red, green, and blue color components respectively.
Examples
The following example sets the default red, green, and blue color layers for the GeoRaster objects (GEORASTER column) in table GEORASTER_TABLE, and it returns an array with the layer numbers for the red, green, and blue color components for displaying these GeoRaster objects. (It refers to a table named GEORASTER_TABLE, whose definition is presented after Example 1-1 in Storage Parameters.)
DECLARE grobj sdo_georaster; BEGIN SELECT georaster INTO grobj FROM georaster_table WHERE georid=4 FOR UPDATE; sdo_geor.setDefaultRed(grobj, 2); sdo_geor.setDefaultGreen(grobj, 3); sdo_geor.setDefaultBlue(grobj, 1); sdo_geor.setDefaultAlpha(grobj, 4); UPDATE georaster_table SET georaster = grobj WHERE georid=4; COMMIT; END; / SELECT sdo_geor.getDefaultColorLayer(georaster) FROM georaster_table WHERE georid=4; SDO_GEOR.GETDEFAULTCOLORLAYER(GEORASTER) -------------------------------------------------------------------------------- SDO_NUMBER_ARRAY(2, 3, 1) SDO_NUMBER_ARRAY(2, 3, 1, 4) 1 row selected.
Parent topic: SDO_GEOR Package Reference