Skip to content

geos.GEOSEquals ⇒ number

Tests if two geometries contain the same set of points in the plane.

Kind: global property of geos
Returns: number - 1 on true, 0 on false, 2 on exception

ParamTypeDescription
g1GEOSGeometryInput geometry
g2GEOSGeometryInput geometry

geos.GEOSEqualsExact ⇒ number

Determine pointwise equality of two geometries, by checking that they have identical structure and that each vertex of g2 is within the distance tolerance of the corresponding vertex in g1. Z and M values are ignored by GEOSEqualsExact, and this function may return true for inputs with different dimensionality. Unlike GEOSEquals(), geometries that are topologically equivalent but have different representations (e.g., LINESTRING (0 0, 1 1) and MULTILINESTRING ((0 0, 1 1)) ) are not considered equal by GEOSEqualsExact().

Kind: global property of geos
Returns: number - 1 on true, 0 on false, 2 on exception

ParamTypeDescription
g1GEOSGeometryInput geometry
g2GEOSGeometryInput geometry
tolerancenumberTolerance to determine vertex equality

geos.GEOSEqualsExact_r ⇒ number

Determine pointwise equality of two geometries, by checking that they have identical structure and that each vertex of g2 is within the distance tolerance of the corresponding vertex in g1. Z and M values are ignored by GEOSEqualsExact, and this function may return true for inputs with different dimensionality. Unlike GEOSEquals(), geometries that are topologically equivalent but have different representations (e.g., LINESTRING (0 0, 1 1) and MULTILINESTRING ((0 0, 1 1)) ) are not considered equal by GEOSEqualsExact().

Kind: global property of geos
Returns: number - 1 on true, 0 on false, 2 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
g1GEOSGeometryInput geometry
g2GEOSGeometryInput geometry
tolerancenumberTolerance to determine vertex equality

geos.GEOSEqualsIdentical ⇒ number

Determine pointwise equality of two geometries by checking that the structure, ordering, and values of all vertices are identical in all dimensions. NaN values are considered to be equal to other NaN values.

Kind: global property of geos
Returns: number - 1 on true, 0 on false, 2 on exception

ParamTypeDescription
g1GEOSGeometryInput geometry
g2GEOSGeometryInput geometry

geos.GEOSEqualsIdentical_r ⇒ number

Determine pointwise equality of two geometries by checking that the structure, ordering, and values of all vertices are identical in all dimensions. NaN values are considered to be equal to other NaN values.

Kind: global property of geos
Returns: number - 1 on true, 0 on false, 2 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
g1GEOSGeometryInput geometry
g2GEOSGeometryInput geometry

geos.GEOSEquals_r ⇒ number

Tests if two geometries contain the same set of points in the plane.

Kind: global property of geos
Returns: number - 1 on true, 0 on false, 2 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
g1GEOSGeometryInput geometry
g2GEOSGeometryInput geometry