> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_GeomFromKML

Construct a Geometry from KML.

## Signatures

```sql theme={"system"}
ST_GeomFromKML (kml: String)
```

## Parameters

<ParamField body="kml" type="String" required>
  A KML string representation of a geometry.
</ParamField>

## Return type

<ResponseField type="Geometry">
  The resulting geometry.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_GeomFromKML('
	<LineString>
		<coordinates>
			-71.1663,42.2614
			-71.1667,42.2616
		</coordinates>
	</LineString>
')
```

```
LINESTRING (-71.1663 42.2614, -71.1667 42.2616)
```
