> ## 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.

# GeoSeries.polygonize

> Create polygons formed from the linework of a GeoSeries.

Create polygons formed from the linework of a GeoSeries.

Polygonizes the GeoSeries that contain linework which represents the
edges of a planar graph.  All geometries within the GeoSeries are
considered together and the resulting polygons therefore do not map 1:1
to input geometries.

## Signature

```python theme={"system"}
polygonize(node=True, full=False)
```

## Parameters

<ParamField path="node" type="bool" default="True">
  If True, the linework is noded together before polygonizing.
</ParamField>

<ParamField path="full" type="bool" default="False">
  If True, return the full polygonization result including cut edges,
  dangles, and invalid rings.
  Not supported in Sedona; passing `True` will raise
  `NotImplementedError`.
</ParamField>

## Returns

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

## Examples

```python theme={"system"}
>>> from sedona.spark.geopandas import GeoSeries
>>> from shapely.geometry import MultiLineString
>>> s = GeoSeries(
...     [
...         MultiLineString(
...             [[(0, 0), (0, 1), (1, 1)], [(1, 1), (1, 0), (0, 0)]]
...         ),
...     ]
... )
>>> s.polygonize()
0    POLYGON ((0 0, 0 1, 1 1, 1 0, 0 0))
Name: polygons, dtype: geometry
```


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