touches
Returns true if the only points in common between geometry a and b
are on their boundaries.
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 a intersect with b, but their interiors do not intersect
Throws
GEOSErroron unsupported geometry types (curved)
See also
prepareimproves performance of repeated calls against a single geometry
Examples
touches: true
touches: false