7.49 SDO_GEOR.getCellValues
Format
SDO_GEOR.getCellValues( georaster IN SDO_GEORASTER, pyramidLevel IN NUMBER, rowNumbers IN SDO_NUMBER_ARRAY, colNumbers IN SDO_NUMBER_ARRAY, bandNumber IN NUMBER ) RETURN SDO_NUMBER_ARRAY;
or
SDO_GEOR.getCellValues( georaster IN SDO_GEORASTER, pyramidLevel IN NUMBER, ptGeom IN SDO_GEOMETRY, layerNumber IN NUMBER ) RETURN SDO_NUMBER_ARRAY;
Description
Returns the values of one or more cells located anywhere in the GeoRaster object by specifying its row/column/band numbers in its cell coordinate space, or by specifying a multipoint geometry in either model coordinate space or cell coordinate space and its logical layer number.
Parameters
- georaster
-
GeoRaster object.
- pyramidLevel
-
Pyramid level containing the cells whose values are to be returned.
- rowNumbers
-
Numbers of the rows that contains the cells whose values are to be returned.
- colNumbers
-
Numbers of the columns that contains the cells whose values are to be returned.
- bandNumber
-
Number of the physical band that contains the cells whose values are to be returned.
- ptGeom
-
Multipoint geometry that identifies the cell whose value is to be returned.
- layerNumber
-
Number of the logical layer that contains the cells whose values are to be returned. (As mentioned in Bands_ Layers_ and Metadata, the logical layer number is the physical band number plus 1.)
Usage Notes
This function returns the original cell values stored in the raster object. It does not do any interpolation using cell values. (To evaluate a point location using an interpolation method, use the SDO_GEOR.evaluateDoubles function.) It does not apply the scaling function defined in the metadata (which is typically used to scale the original cell data to a desired value or range of values), and it does not apply the bin function.
Examples
The following example returns the values of four cells of the GeoRaster object (GEORASTER column) in the row with the GEORID column value of 21 in the GEORASTER_TABLE table, whose definition is presented after Example 1-1 in Storage Parameters.
SELECT sdo_geor.getCellValues(georaster,0,SDO_NUMBER_ARRAY(383,47,128,320),SDO_NUMBER_ARRAY(47,383,192,256),0) FROM georaster_table WHERE georid=21; SDO_GEOR.GETCELLVALUES(A.GEORASTER,0,SDO_NUMBER_ARRAY(383,47,128,320),SDO_NUMBER_ARRAY(47,383,192,256),0) -------------------------------------------------------------------------------- SDO_NUMBER_ARRAY(48,55,52,53)
Parent topic: SDO_GEOR Package Reference