Skip to main content
Returns a Series of dtype('bool') with value True if the DE-9IM relationship between each geometry and other matches the specified pattern. 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 relate to.
str
required
The DE-9IM pattern to match. A 9-character string where each character is one of: ‘T’ (matches any non-empty intersection), ‘F’ (matches empty intersection), ’*’ (matches anything), ‘0’, ‘1’, ‘2’ (matches specific dimensions).
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.
See also
  • GeoSeries.relate
  • GeoSeries.contains
  • GeoSeries.intersects

Examples