7.15 SDO_GEOR.deletePyramid
Format
SDO_GEOR.deletePyramid( georaster IN OUT SDO_GEORASTER, pyramidLevel IN NUMBER DEFAULT NULL);
Description
Deletes the pyramid data of a GeoRaster object from the given pyramid level and above.
Parameters
Usage Notes
For information about pyramid data, see Pyramids.
If georaster
is null or has no pyramid data, this procedure performs no operation.
An exception is raised if georaster
is invalid or if the value of pyramidLevel
is less than 1.
Examples
The following example deletes the pyramid data for a GeoRaster object. (It refers to a table named GEORASTER_TABLE, whose definition is presented after Example 1-1 in Storage Parameters.)
DECLARE gr1 sdo_georaster; BEGIN SELECT georaster INTO gr1 FROM georaster_table WHERE georid=21; sdo_geor.deletePyramid(gr1); UPDATE georaster_table SET georaster=gr1 WHERE georid=21; COMMIT; END; /
The following example deletes the pyramid data for a GeoRaster object where the pyramid level is greater than or equal to 3. (It refers to a table named GEORASTER_TABLE, whose definition is presented after Example 1-1 in Storage Parameters.)
DECLARE gr1 sdo_georaster; BEGIN SELECT georaster INTO gr1 FROM georaster_table WHERE georid=21; sdo_geor.deletePyramid(gr1, 3); UPDATE georaster_table SET georaster=gr1 WHERE georid=21; COMMIT; END; /
Parent topic: SDO_GEOR Package Reference