7.121 SDO_GEOR.setColorMapTable
Format
SDO_GEOR.setColorMapTable( georaster IN OUT SDO_GEORASTER, layerNumber IN NUMBER, tableName IN VARCHAR2);
Description
Sets the colormap table for a layer in a GeoRaster object, or deletes the existing value if you specify a null tableName parameter.
Note:
This procedure registers the colormap table name with GeoRaster; however, GeoRaster does not perform operations using the colormap table in the current release.
Parameters
- georaster
-
GeoRaster object.
- layerNumber
-
Number of the layer for which to perform the operation.
- tableName
-
Name of the user-defined colormap table. SDO_GEOR_COLORMAP Object Type describes colormaps.
Usage Notes
The GeoRaster object is automatically validated after the operation completes.
To return the colormap table for a layer in a GeoRaster object, use the SDO_GEOR.getColorMapTable function.
An exception is raised if layerNumber is null or invalid for the GeoRaster object, or if tableName is an empty string ('').
Examples
The following example sets the colormap table to be null for layer 2 of the GeoRaster object (GEORASTER column) in the row with the GEORID column value of 4 in the GEORASTER_TABLE table. (The GEORASTER_TABLE table 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.setColorMapTable(grobj, 2, null); UPDATE georaster_table SET georaster = grobj WHERE georid=4; COMMIT; END; /
Parent topic: SDO_GEOR Package Reference