shapely.relate#

relate(a, b, **kwargs)#

Returns a string representation of the DE-9IM intersection matrix.

Parameters
a, bGeometry or array_like
**kwargs

For other keyword-only arguments, see the NumPy ufunc docs.

Examples

>>> from shapely import LineString, Point
>>> point = Point(0, 0)
>>> line = LineString([(0, 0), (1, 1)])
>>> relate(point, line)
'F0FFFF102'