shapely.relate

Contents

shapely.relate#

relate(a, b, **kwargs)#

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

Parameters:
a, bGeometry or array_like

Geometry or geometries to check.

**kwargs

See NumPy ufunc docs for other keyword arguments.

Examples

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