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

> Returns a modified geometry/geography having no segment longer than max_segment_length.

Returns a modified geometry/geography having no segment longer than max\_segment\_length. Length is computed in 2D. Segments are always split into equal-length subsegments.

SQL reference: [`ST_Segmentize`](/reference/wherobots-db/geometry-data/editors/ST_Segmentize)

## Signature

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

ST_Segmentize(
    geometry: ColumnOrName,
    maxSegmentLength: Union[ColumnOrName, float],
) -> Column
```

## Parameters

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

<ParamField path="maxSegmentLength" type="Union[ColumnOrName, float]" required>
  Maximum segment length
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Column
</ResponseField>


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