overlaps
Returns true if geometries a and b spatially overlap.
Geometry a overlaps geometry b if both geometries have some, but not all
points in common, they have the same dimension and the intersection of their
interiors has the same dimension as the geometries themselves.
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 geometry a overlaps geometry b
Throws
GEOSErroron unsupported geometry types (curved)
See also
prepareimproves performance of repeated calls against a single geometry
Examples
overlaps: true
overlaps: false