Returns True for all aligned geometries that overlap other, else False.
Returns True for all aligned geometries that overlap other, else False.In the original Geopandas, Geometries overlap if they have more than one but not all
points in common, have the same dimension, and the intersection of the
interiors of the geometries has the same dimension as the geometries
themselves.However, in Sedona, we return True in the case where the geometries points match.Note: Sedona’s behavior may also differ from Geopandas for GeometryCollections.The operation works on a 1-to-1 row-wise manner.
Signature
overlaps(other, align=None) -> pspd.Series
Parameters
GeoSeries or geometric object
required
The GeoSeries (elementwise) or geometric object to test if
overlaps.
bool | None (default None)
default:"None"
If True, automatically aligns GeoSeries based on their indices. None defaults to True.
If False, the order of elements is preserved.
Returns
Series(bool)
This method works in a row-wise manner. It does not check if an element
of one GeoSeries overlapsany element of the other one.
We can also check two GeoSeries against each other, row by row.
The GeoSeries above have different indices. We align both GeoSeries
based on index values and compare elements with the same index.