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

> Simplify a geometry using Douglas-Peucker algorithm within a specified tolerance while preserving topological relationships.

Simplify a geometry using Douglas-Peucker algorithm within a specified tolerance while preserving topological relationships.

SQL reference: [`ST_Simplify`](/reference/wherobots-db/geometry-data/processing/ST_Simplify)

## Signature

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

ST_Simplify(geometry: ColumnOrName, distance_tolerance: ColumnOrNameOrNumber) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry column to simplify.
</ParamField>

<ParamField path="distance_tolerance" type="ColumnOrNameOrNumber" required>
  Tolerance for merging points together to simplify the geometry as either a number or numeric column.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Simplified geometry as a geometry column.
</ResponseField>


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