ST_AsGML¶
Introduction: Return the GML string representation of a geometry
Format: ST_AsGML (A: Geometry)
Since: v1.3.0
SQL Example
SELECT ST_AsGML(ST_GeomFromWKT('POLYGON((1 1, 8 1, 8 8, 1 8, 1 1))'))
Output:
1.0,1.0 8.0,1.0 8.0,8.0 1.0,8.0 1.0,1.0