disjoint
Returns true if geometries a and b have no points in common.
Disjoint implies that intersects and (contains,
containsProperly, within, covers, coveredBy,
crosses, overlaps and touches) are all false.
warning
Do not use this function with invalid geometries. You will get unexpected results.
Parameters
| Name | Type | Description |
|---|---|---|
a | Geometry | Prepared<Geometry> | First geometry |
b | Geometry | Second geometry |
Returns
boolean
true if the intersection of geometry a and b is an empty set
Throws
GEOSErroron unsupported geometry types (curved)
See also
intersectsreturns whether geometries intersect;disjoint(a, b) === !intersects(a, b)prepareimproves performance of repeated calls against a single geometry