dask_geopandas.GeoSeries.unary_union

dask_geopandas.GeoSeries.unary_union#

property GeoSeries.unary_union#

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

This docstring was copied from geopandas.base.GeoPandasBase.unary_union.

Some inconsistencies with the Dask version may exist.

The unary_union attribute is deprecated. Use union_all() instead.

See also

GeoSeries.union_all

Examples

>>> from shapely.geometry import box
>>> s = geopandas.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
>>> union = s.unary_union
>>> print(union)
POLYGON ((0 1, 0 2, 2 2, 2 0, 1 0, 0 0, 0 1))