> ## 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_AsKML

Return the [KML](https://www.ogc.org/standards/kml) string representation of a geometry

## Signatures

```sql theme={"system"}
ST_AsKML (A: Geometry)
```

## Parameters

<ParamField body="A" type="Geometry" required>
  The input geometry.
</ParamField>

## Return type

<ResponseField type="String">
  A string representation.
</ResponseField>

## Example

```sql theme={"system"}
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
```
