7.73 SDO_GEOR.getLayerOrdinate
Format
SDO_GEOR.getLayerOrdinate( georaster IN SDO_GEORASTER, layerNumber IN NUMBER ) RETURN NUMBER;
Description
Returns the band ordinate for a layer in a GeoRaster object.
Parameters
Usage Notes
The returned number refers to the physical band that a layer
(layerNumber
parameter value) is associated with. For
the current release, by default the associations are as shown in Figure 1-5 in Bands_
Layers_ and Metadata: layer 1 is band 0, layer 2 is band 1, and
so on.
To set the band ordinate value for a layer, use the SDO_GEOR.setLayerOrdinate procedure.
Examples
The following example returns the band numbers associated with 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, whose definition is presented after Example 1-1 in Storage Parameters.
SELECT sdo_geor.getLayerOrdinate(georaster, 0) layerOrdinate0, sdo_geor.getLayerOrdinate(georaster, 1) layerOrdinate1, sdo_geor.getLayerOrdinate(georaster, 2) layerOrdinate2, sdo_geor.getLayerOrdinate(georaster, 3) layerOrdinate3 FROM georaster_table WHERE georid=4; LAYERORDINATE0 LAYERORDINATE1 LAYERORDINATE2 LAYERORDINATE3 -------------- -------------- -------------- -------------- 0 1 2
Parent topic: SDO_GEOR Package Reference