Skip to main content
Return a GeoSeries of the symmetric difference of points in each aligned geometry with other. For each geometry, the symmetric difference consists of points in the geometry not in other, and points in other not in the geometry. 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 symmetric difference to.
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.difference
  • GeoSeries.union
  • GeoSeries.intersection

Examples

We can do symmetric difference 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: