7.137 SDO_GEOR.setLayerOrdinate
Format
SDO_GEOR.setLayerOrdinate( georaster IN OUT SDO_GEORASTER, layerNumber IN NUMBER, ordinate IN NUMBER);
Description
Sets the band ordinate value for a specified layer in a GeoRaster object, or deletes the existing value if you specify a null ordinate
parameter.
Parameters
Usage Notes
The band ordinate of the layer refers to the physical band that a layer
(layerNumber
parameter value) is associated with. For the current
release, the associations must be as shown in Figure 1-5 in Bands_ Layers_ and
Metadata: layer 1 is band 0, layer 2 is band 1, and so on.
The band ordinate for the object layer is ignored by GeoRaster.
The GeoRaster object is automatically validated after the operation completes.
To return the band ordinate value for a layer, use the SDO_GEOR.getLayerOrdinate function.
An exception is raised if layerNumber
is null or invalid for the GeoRaster object, if ordinate
is null, or if ordinate does not equal layerNumber
-1 when layerNumber
does not specify the object layer.
Examples
The following example sets the band ordinate value for layer 1 to be 0 (zero) in 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.setLayerOrdinate(grobj, 1, 0); UPDATE georaster_table SET georaster = grobj WHERE georid=4; COMMIT; END; /
Parent topic: SDO_GEOR Package Reference