SDO_GEOR.getRasterRange
Format
SDO_GEOR.getRasterRange(
georaster IN SDO_GEORASTER,
layerNumber IN NUMBER DEFAULT 0
) RETURN SDO_NUMBER_ARRAY;
Description
Computes and returns the minimum and maximum cell values of a specified layer of a GeoRaster object or of the GeoRaster object itself (the object layer).
Parameters
georaster
GeoRaster object.
layerNumber
Number of the layer for which to return the range of cell values. A value of 0 (zero, the default) indicates the object layer. (As mentioned in Bands_ Layers_ and Metadata, the logical layer number is the physical band number plus 1.)
Usage Notes
This function goes through all cell values of a specified layer of a GeoRaster object, and returns an SDO_NUMBER_ARRAY object with two values: the minimum and maximum cell values.
If the GeoRaster object already has statistical metadata generated, you can call the SDO_GEOR.getStatistics function to quickly retrieve the minimum and maximum values directly for the raster range.
For information about bands and layers, see Bands_ Layers_ and Metadata.
Examples
The following example computes and returns the raster range for the whole GeoRaster object.
DECLARE
gr sdo_georaster;
range sdo_number_array;
BEGIN
select georaster into gr from georaster_table where georid=1;
range:=sdo_geor.getRasterRange(gr, 0);
END;
/