SDO_GEOR.getHistogram
Format
SDO_GEOR.getHistogram(
georaster IN SDO_GEORASTER,
layerNumber IN NUMBER
) RETURN SDO_GEOR_HISTOGRAM;
Description
Returns the histogram for a layer in a GeoRaster object.
Parameters
georaster
GeoRaster object.
layerNumber
Number of the layer for which to return the histogram. A value of 0 (zero) indicates the object layer.
Usage Notes
This function returns an object of type SDO_GEOR_HISTOGRAM. SDO_GEOR_HISTOGRAM Object Type describes this object type and briefly discusses histograms.
Examples
The following example returns the histogram for layer 1 of a 4-bit GeoRaster object in the GEORASTER_TABLE table, whose definition is presented after Example: Using storageParam Keywords in Storage Parameters.
SELECT sdo_geor.getHistogram(georaster, 1) layer1
FROM georaster_table WHERE georid=17;
LAYER1(CELLVALUE, COUNT)
--------------------------------------------------------------------------------
SDO_GEOR_HISTOGRAM(SDO_NUMBER_ARRAY(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,12, 13,
14, 15), SDO_NUMBER_ARRAY(10, 18, 10, 110, 200, 120, 130, 150, 160, 103, 106,
190, 12, 17, 10, 5))