Skip to content
On this page

geos.GEOSCovers ⇒ number

Tests whether the first geometry covers the second geometry.

Kind: Exported member
Returns: number - 1 if the first geometry covers the second geometry, 0 if not, or -1 on error.

ParamTypeDescription
g1numberThe first geometry.
g2numberThe second geometry.

geos.GEOSCovers_r ⇒ number

Tests whether the first geometry covers the second geometry in a given context.

Kind: Exported member
Returns: number - 1 if the first geometry covers the second geometry, 0 if not, or -1 on error.

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