Skip to main content
Return the KML string representation of a geometry

Signatures

ST_AsKML (A: Geometry)

Parameters

A
Geometry
required
The input geometry.

Return type

A string representation.

Example

SELECT ST_AsKML(ST_GeomFromWKT('POLYGON((1 1, 8 1, 8 8, 1 8, 1 1))'))
1.0,1.0 8.0,1.0 8.0,8.0 1.0,8.0 1.0,1.0