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

> Generates a GeometryCollection composed of polygons that are formed from the linework of a set of input geometries.

Generates a GeometryCollection composed of polygons that are formed from the linework of a set of input geometries.

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

## Signature

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

ST_Polygonize(geometry: ColumnOrName) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  input geometry of type GeometryCollection
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  GeometryCollection geometry column created from the input geometry.
</ResponseField>


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