Skip to content
On this page

geos.GEOSTouches ⇒ number

Tests if two geometries touch at one or more points.

Kind: Exported member
Returns: number - = 1 if true, 0 if false, -1 on error.

ParamTypeDescription
g1numberThe first geometry pointer.
g2numberThe second geometry pointer.

geos.GEOSTouches_r ⇒ number

Tests if two geometries touch at one or more points in a given context.

Kind: Exported member
Returns: number - = 1 if true, 0 if false, -1 on error.

ParamTypeDescription
contextnumberA pointer to the GEOS context handle.
g1numberThe first geometry pointer.
g2numberThe second geometry pointer.