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

# GeoDataFrame.union_all

> Returns a geometry containing the union of all geometries in the GeoSeries.

Returns a geometry containing the union of all geometries in the
`GeoSeries`.

Sedona does not support the method or grid\_size argument, so the user does not need to manually
decide the algorithm being used.

## Signature

```python theme={"system"}
union_all(method='unary', grid_size=None) -> BaseGeometry
```

## Parameters

<ParamField path="method" type="str (default ``'unary'``)" default="'unary'">
  Not supported in Sedona.
</ParamField>

<ParamField path="grid_size" type="float" default="None">
  Not supported in Sedona.
</ParamField>

## Examples

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

```python theme={"system"}
>>> s.union_all()
<POLYGON ((0 1, 0 2, 2 2, 2 0, 1 0, 0 0, 0 1))>
```


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