7.86 SDO_GEOR.getSourceInfo
Format
SDO_GEOR.getSourceInfo( georaster IN OUT SDO_GEORASTER, ) RETURN SDO_STRING2_ARRAY;
Description
Gets the source information for a GeoRaster object.
Usage Notes
This function returns the source information stored in the <sourceInfo>
element in the metadata for the GeoRaster object (described in GeoRaster Metadata XML Schema).
The SDO_STRING2_ARRAY type is defined as VARRAY(2147483647) OF VARCHAR2(4096)
.
To replace or delete source information, use the SDO_GEOR.setSourceInfo procedure. To add source information, use the SDO_GEOR.addSourceInfo procedure.
Examples
The following example sets and adds some source information for a specified GeoRaster object, and then retrieves the information.
declare gr sdo_georaster; begin select georaster into gr from georaster_table where georid=1 for update; sdo_geor.setSourceInfo(gr, 'Copyright (c) 2002, 2007, Oracle Corporation.'); sdo_geor.addSourceInfo(gr, 'All rights reserved.'); update georaster_table set georaster=gr where georid=1; end; / select * from table(select sdo_geor.getSourceInfo(georaster) from georaster_table where id=1); COLUMN_VALUE -------------------------------------------------------------------------------- Copyright (c) 2002, 2007, Oracle Corporation. All rights reserved.
Parent topic: SDO_GEOR Package Reference