> ## 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_AsGML (Python)

> Generate the Geography Markup Language (GML) representation of a geometry column.

Generate the Geography Markup Language (GML) representation of a
geometry column.

SQL reference: [`ST_AsGML`](/reference/wherobots-db/geometry-data/output/ST_AsGML)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_functions import ST_AsGML

ST_AsGML(geometry: ColumnOrName) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry column to generate GML for.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  GML representation of geometry as a string column.
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.