shapely.disjoint
shapely.disjoint#
- disjoint(a, b, **kwargs)#
Returns True if A and B do not share any point in space.
Disjoint implies that overlaps, touches, within, and intersects are False. Note missing (None) values are never disjoint.
- Parameters
- a, bGeometry or array_like
- **kwargs
For other keyword-only arguments, see the NumPy ufunc docs.
See also
intersects
disjoint(A, B) == ~intersects(A, B)
prepare
improve performance by preparing
a
(the first argument)
Examples
>>> from shapely import GeometryCollection, LineString, Point >>> line = LineString([(0, 0), (1, 1)]) >>> disjoint(line, Point(0, 0)) False >>> disjoint(line, Point(0, 1)) True >>> disjoint(line, LineString([(0, 2), (2, 0)])) False >>> empty = GeometryCollection() >>> disjoint(line, empty) True >>> disjoint(empty, empty) True >>> disjoint(empty, None) False >>> disjoint(None, None) False