SDO_GEOR.getScaling
Format
SDO_GEOR.getScaling(
georaster IN SDO_GEORASTER,
layerNumber IN NUMBER
) RETURN SDO_NUMBER_ARRAY;
Description
Returns the coefficients of the scaling function for a layer of a GeoRaster object.
Note: GeoRaster does not perform operations using the scaling function in the current release.
Parameters
georaster
GeoRaster object.
layerNumber
Number of the layer for which to return the coefficients. A value of 0 (zero) indicates the object layer.
Usage Notes
The scaling function is as follows:
value = (a0 + a1 * cellvalue) / (b0 + b1 * cellvalue)
The order of the coefficients is: a0, a1, b0, b1.
Examples
The following example returns the scaling coefficients for layer number 0 (the whole object) of a specified GeoRaster object in a table named GEORASTER_TABLE, whose definition is presented after Example: Using storageParam Keywords in Storage Parameters. It scales original value range 0.0 to 1000.0 to be in the range 0.0 to 250.0.
SELECT sdo_geor.getScaling(georaster, 0) FROM georaster_table WHERE georid=0;
SDO_GEOR.GETSCALING(GEORASTER,0)
--------------------------------------------------------------------------------
SDO_NUMBER_ARRAY(0.0, 0.25, 1, 0.0)