15.30 SEM_APIS.CONVERT_TO_GML311_LITERAL
Format
SEM_APIS.CONVERT_TO_GML311_LITERAL(
geom IN SDO_GEOMETRY,
options IN VARCHAR2 default NULL
)RETURN CLOB;
Description
Serializes an SDO_GEOMETRY object into an ogc:gmlLiteral value.
Usage Notes
The procedure SDO_UTIL.TO_GML311GEOMETRY is used internally to create the geometry literal with a certain spatial reference system URI.
For more information about geometry serialization, see SDO_UTIL.TO_GML311GEOMETRY.
Examples
The following example shows the use of this function for a geometry with SRID 8307 The COLA_MARKETS table is the one from the simple example in Oracle Spatial Developer's Guide.
INSERT INTO cola_markets VALUES(
10,
'cola_x',
SDO_GEOMETRY(
2003,
8307, -- SRID
NULL,
SDO_ELEM_INFO_ARRAY(1,1003,3),
SDO_ORDINATE_ARRAY(1,1, 6,13)
)
);
commit;
SELECT
sem_apis.convert_to_gml311_literal(shape) as gml1
FROM cola_markets;
"<gml:Polygon srsName=\"SDO:8307\" xmlns:gml=\"http://www.opengis.net/gml\"><gml
:exterior><gml:LinearRing><gml:posList srsDimension=\"2\">1.0 1.0 6.0 1.0 6.0 13.0 1.0 13.0 1.0 1.0 </gml:posList></gml:LinearRing></gml:exterior></gml:Polygon>
"^^<http://www.opengis.net/ont/geosparql#gmlLiteral>
Parent topic: SEM_APIS Package Subprograms