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

> Subdivide a geometry into an array of geometries with at maximum number of vertices in each.

Subdivide a geometry into an array of geometries with at maximum number of vertices in each.

SQL reference: [`ST_SubDivide`](/reference/wherobots-db/geometry-data/overlay/ST_SubDivide)

## Signature

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

ST_SubDivide(geometry: ColumnOrName, max_vertices: Union[ColumnOrName, int]) -> Column
```

## Parameters

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

<ParamField path="max_vertices" type="Union[ColumnOrName, int]" required>
  Maximum number of vertices to have in each subdivision.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Array of geometries that represent the subdivision of the original geometry.
</ResponseField>


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