7.118 SDO_GEOR.setBitmapMask
Format
SDO_GEOR.setBitmapMask( georaster IN OUT SDO_GEORASTER, layerNumber IN NUMBER, mask IN SDO_GEORASTER, NODATAMask IN VARCHAR2 DEFAULT NULL);
Description
Attaches a bitmap mask to a GeoRaster object, or replaces or removes the current bitmap mask.
Parameters
- georaster
-
GeoRaster object.
- layerNumber
-
Layer with which to associate the bitmap mask. A value of 0 (zero) indicates the object layer.
- mask
-
The bitmap mask to be attached to the GeoRaster object. If this parameter is null, any existing bitmap mask associated with the specified layer of the GeoRaster object is removed.
- NODATAMask
-
Specifies whether
mask
is to be interpreted as a NODATA mask. The stringTRUE
causesmask
to be interpreted as a NODATA mask; any other value (including null) causesmask
not to be interpreted as a NODATA mask.
Usage Notes
If the specified GeoRaster object or layer already has an associated bitmap mask, this procedure replaces it with the specified mask, or removes it if the mask
parameter specifies a null value.
If the mask
parameter value is not null, the bitmap mask must be a valid 1BIT GeoRaster object with only one band, and the row and column dimension sizes of the bitmap mask must be the same as those of the target GeoRaster object. It cannot be the same GeoRaster object as the input GeoRaster object (georaster
parameter).
This procedure raises an exception if the target GeoRaster object is a blank GeoRaster object.
For an explanation of bitmap masks, see Bitmap Masks.
Examples
The following example uses a GeoRaster object in the table GRTAB (where id=1) as the bitmap mask to be attached to layer number 1 of an GeoRaster object in the GEORASTER_TABLE (where georid=1). The bitmap mask will be interpreted as a NODATA mask.
declare gr sdo_georaster; mk sdo_georaster; begin select georaster into gr from georaster_table where georid=1 for update; select grobj into mk from grtab where id=1; sdo_geor.setBitmapMask(gr, 1, mk, 'true'); update georaster_table set georaster=gr where georid=0; commit; end; /
Parent topic: SDO_GEOR Package Reference