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

> Simplify a geometry within a specified tolerance while preserving topological relationships.

Simplify a geometry within a specified tolerance while preserving topological relationships.

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

## Signature

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

ST_SimplifyPreserveTopology(
    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.