Appearance
ST_ASGML
Returns the Geography Markup Language (GML) representation of a GEOGRAPHY object.
See also:
Syntax
sql
ST_ASGML(<input>)Arguments
<input>: AGEOGRAPHYobject to be converted
Returns
Returns a VARCHAR containing the GML representation of the input GEOGRAPHY.
Example
sql
SELECT ST_ASGML('POINT(1 1)'::GEOGRAPHY);
-- '<gml:Point srsName="EPSG:4326"><gml:coordinates>1,1</gml:coordinates></gml:Point>'