Skip to main content
Construct a Geometry from KML.

Signatures

ST_GeomFromKML (kml: String)

Parameters

kml
String
required
A KML string representation of a geometry.

Return type

The resulting geometry.

Example

SELECT ST_GeomFromKML('
	<LineString>
		<coordinates>
			-71.1663,42.2614
			-71.1667,42.2616
		</coordinates>
	</LineString>
')
LINESTRING (-71.1663 42.2614, -71.1667 42.2616)