7.39 SDO_GEOR.getBitmapMask
Format
SDO_GEOR.getBitmapMask( georaster IN SDO_GEORASTER, layerNumber IN NUMBER, storageParam IN VARCHAR2, mask IN OUT SDO_GEORASTER);
Description
Gets the bitmap mask that is associated with a GeoRaster object or a layer in a GeoRaster object.
Parameters
- georaster
-
GeoRaster object.
- layerNumber
-
The layer on which to perform the operation. A value of 0 (zero) indicates the object layer.
- storageParam
-
A string specifying storage parameters, as explained in Storage Parameters.
- mask
-
The resulting GeoRaster object to hold the bitmap mask. Must be either a valid existing GeoRaster object or an empty GeoRaster object. (Empty GeoRaster objects are explained in Blank and Empty GeoRaster Objects.) Cannot be the same GeoRaster object as the input GeoRaster object (
georaster
parameter).
Usage Notes
If no bitmap mask is associated with the specified layer of the GeoRaster object, the resulting GeoRaster object is not updated.
If the storageParam
parameter is null, the resulting GeoRaster object has a celldepth
value of 1BIT celldepth, has DEFLATE
compression if the input GeoRaster object is compressed, and has the same interleaving type and blocking size as the input GeoRaster object. It also contains all the bitmap mask pyramids if the input GeoRaster object has pyramids built on it.
A bitmap mask may have empty raster blocks (see Empty Raster Blocks). If there is reblocking that leads to partially empty raster blocks, any cells in a partially empty block that are derived from an empty raster block are filled with the value 0 (zero).
For an explanation of bitmap masks, see Bitmap Masks.
Examples
The following example retrieves the bitmap mask associated with the object layer of the specified GeoRaster object.
DECLARE gr sdo_georaster; mk sdo_georaster; BEGIN SELECT georaster INTO gr FROM georaster_table WHERE georid=4; INSERT INTO georaster_table (georid, georaster) VALUES (100, sdo_geor.init('rdt_1', 100)) RETURNING georaster INTO mk; sdo_geor.getBitmapMask(gr, 0, 'compression=none', mk); UPDATE georaster_table SET georaster=mk WHERE georid=100; COMMIT; END; /
Parent topic: SDO_GEOR Package Reference