Skip to main content
Return a GeoSeries of the union of points in each aligned geometry with other. The operation works on a 1-to-1 row-wise manner.

Signature

Parameters

Geoseries or geometric object
required
The Geoseries (elementwise) or geometric object to find the union with.
bool | None (default None)
default:"None"
If True, automatically aligns GeoSeries based on their indices. If False, the order of elements is preserved. None defaults to True.

Returns

GeoSeries
See also
  • GeoSeries.symmetric_difference
  • GeoSeries.difference
  • GeoSeries.intersection

Examples

We can do union of each geometry and a single shapely geometry:
We can also check two GeoSeries against each other, row by row. The GeoSeries above have different indices. We can either align both GeoSeries based on index values and compare elements with the same index using align=True or ignore index and compare elements based on their matching order using align=False: