SDO_GEOR.setControlPoint
Format
SDO_GEOR.setControlPoint (
inGeoraster IN OUT SDO_GEORASTER,
controlPoint IN SDO_GEOR_GCP);
Description
Adds a ground control point (GCP) for the GeoRaster object, or replaces an existing GCP if it has the same ID value as the input control point.
Parameters
inGeoraster
GeoRaster object.
controlPoint
GCP to be added for inGeoraster. Must be an object of type SDO_GEOR_GCP, which is described in SDO_GEOR_GCP Object Type.
Usage Notes
For an explanation of georeferencing using GCPs, see Ground Control Point (GCP) Georeferencing Model.
If the controlPoint is null, the function returns without performing any action. If a GCP is found in the GeoRaster object metadata with the same point ID as defined in controlPoint, that GCP is replaced; otherwise, this GCP is added to the georeferencing model.
Examples
The following example adds a GCP for a specified GeoRaster object.
DECLARE
gr1 sdo_georaster;
GCP SDO_GEOR_GCP;
BEGIN
SELECT georaster INTO gr1 from georaster_table WHERE georid=10 FOR UPDATE;
GCP := SDO_GEOR_GCP('21', 'Updated', 1,
2, sdo_number_array(25.625000, 73.875000),
2, sdo_number_array(237036.937500, 897987.187500),
NULL, NULL);
sdo_geor.setControlPoint(gr1, GCP);
UPDATE georaster_table SET georaster=gr1 WHERE georid=10;
COMMIT;
END;
/