7.47 SDO_GEOR.getCellDepth
Format
SDO_GEOR.getCellDepth( georaster IN SDO_GEORASTER ) RETURN NUMBER;
Description
Returns the cell depth in bits.
Usage Notes
The cell depth determines the precision and the data size of an image. As the cell depth value decreases, less disk space is needed to store the image; as the cell depth value increases, more disk space is needed to store the image.
To return the cell depth as a string (such as 32BIT_S
) instead of a number, you can use the XMLType PL/SQL interface extract
. The possible string values are listed in the cellDepthType
definition in the GeoRaster metadata XML schema, which is described in GeoRaster Metadata XML Schema. The following example returns a string value for the cell depth of the GeoRaster object with the GEORID column value of 21 in the GEORASTER_TABLE table:
SELECT t.georaster.metadata.extract( '/georasterMetadata/rasterInfo/cellDepth/text()', 'xmlns=http://xmlns.oracle.com/spatial/georaster') FROM georaster_table t WHERE t.georid=21;
Examples
The following example returns the cell depth, interleaving type, and blocking type 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.getCellDepth(georaster) CellDepth, substr(sdo_geor.getInterleavingType(georaster),1,8) interleavingType, substr(sdo_geor.getBlockingType(georaster),1,8) blocking FROM georaster_table WHERE georid=21; CELLDEPTH INTERLEA BLOCKING ---------- -------- -------- 8 BSQ REGULAR
Parent topic: SDO_GEOR Package Reference