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

> Get a linestring representing the exterior ring of a polygon geometry column.

Get a linestring representing the exterior ring of a polygon geometry
column.

SQL reference: [`ST_ExteriorRing`](/reference/wherobots-db/geometry-data/accessors/ST_ExteriorRing)

## Signature

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

ST_ExteriorRing(polygon: ColumnOrName) -> Column
```

## Parameters

<ParamField path="polygon" type="ColumnOrName" required>
  Polygon geometry column to get the exterior ring of.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Exterior ring of polygon as a linestring geometry column.
</ResponseField>


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