shapely.relate

Contents

shapely.relate#

relate(a, b, **kwargs)#

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

Parameters:
a, bGeometry or array_like
**kwargs

See NumPy ufunc docs for other keyword arguments.

Examples

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