SDO_GEOR.setSpatialReferenced
Format
SDO_GEOR.setSpatialReferenced(
georaster IN OUT SDO_GEORASTER,
isReferenced IN VARCHAR2);
Description
Specifies whether or not a GeoRaster object is spatially referenced, or deletes the existing value if you specify a null isReferenced parameter.
Parameters
georaster
GeoRaster object.
isReferenced
Specify TRUE to specify that the GeoRaster object is spatially referenced, FALSE to specify that the GeoRaster object is not spatially referenced, or null if the GeoRaster metadata does not contain spatial reference information. Must be TRUE or FALSE (case-insensitive) if the GeoRaster metadata contains spatial reference information.
Usage Notes
This procedure sets the GeoRaster object to be spatially referenced or not spatially referenced.
The GeoRaster object is automatically validated after the operation completes.
Examples
The following example sets the GeoRaster object (GEORASTER column) in the row with the GEORID column value of 4 in the GEORASTER_TABLE table as not spatially referenced. (The GEORASTER_TABLE table definition is presented after Example: Using storageParam Keywords in Storage Parameters.)
DECLARE
grobj sdo_georaster;
BEGIN
SELECT georaster INTO grobj FROM georaster_table WHERE georid=4 FOR UPDATE;
sdo_geor.setSpatialReferenced(grobj, 'FALSE');
UPDATE georaster_table SET georaster = grobj WHERE georid=4;
COMMIT;
END;
/