Skip to main content
Returns a Series of dtype('bool') with value True for each aligned geometry that cross other. An object is said to cross other if its interior intersects the interior of the other but does not contain it, and the dimension of the intersection is less than the dimension of the one or the other. The underlying Sedona expression returns NULL when a GeometryCollection is involved. This GeoSeries method normalizes that result to False to preserve GeoPandas’ non-nullable boolean contract. 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 test if is crossed.
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 crosses any element of the other one.
See also
  • GeoSeries.disjoint
  • GeoSeries.intersects

Examples

We can check if each geometry of GeoSeries crosses a single 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:
Notice that a line does not cross a point that it contains.