Skip to content
On this page

geos.GEOSEquals ⇒ number

Tests whether two geometries are topologically equal.

Kind: Exported member
Returns: number - 1 if they are equal, 0 if they are not, or -1 on error
See: GEOSEquals

ParamTypeDescription
g1numberA pointer to a GEOSGeometry object
g2numberA pointer to another GEOSGeometry object

geos.GEOSEqualsExact ⇒ number

Tests whether two geometries are exactly equal, up to a specified tolerance.

Kind: Exported member
Returns: number - 1 if equal, 0 if not, -1 on exception.

ParamTypeDescription
g1numberThe first geometry to compare.
g2numberThe second geometry to compare.
tolerancenumberThe maximum distance between any pair of points that are considered equal.

geos.GEOSEqualsExact_r ⇒ number

Tests whether two geometries are exactly equal, up to a specified tolerance.

Kind: Exported member
Returns: number - 1 if equal, 0 if not, -1 on exception.

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
g1numberThe first geometry to compare.
g2numberThe second geometry to compare.
tolerancenumberThe maximum distance between any pair of points that are considered equal.

geos.GEOSEquals_r ⇒ number

Tests whether two geometries are topologically equal.

Kind: Exported member
Returns: number - 1 if equal, 0 if not, -1 on exception.

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