[geos-commits] [SCM] GEOS branch master updated. 1be02b3644672ac97842bfa2ad4cb2810696dc75
git at osgeo.org
git at osgeo.org
Mon Aug 27 15:10:34 PDT 2018
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".
The branch, master has been updated
via 1be02b3644672ac97842bfa2ad4cb2810696dc75 (commit)
from bf8567cec47717f15ae19107b4538739e53f6610 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1be02b3644672ac97842bfa2ad4cb2810696dc75
Author: Daniel Baston <dbaston at gmail.com>
Date: Mon Aug 27 18:09:31 2018 -0400
Add comment explaining GEOSEqualsExact
Closes #731
diff --git a/capi/geos_c.h.in b/capi/geos_c.h.in
index 8ca376b..608de40 100644
--- a/capi/geos_c.h.in
+++ b/capi/geos_c.h.in
@@ -1750,10 +1750,19 @@ extern char GEOS_DLL GEOSWithin(const GEOSGeometry* g1, const GEOSGeometry* g2);
extern char GEOS_DLL GEOSContains(const GEOSGeometry* g1, const GEOSGeometry* g2);
extern char GEOS_DLL GEOSOverlaps(const GEOSGeometry* g1, const GEOSGeometry* g2);
extern char GEOS_DLL GEOSEquals(const GEOSGeometry* g1, const GEOSGeometry* g2);
-extern char GEOS_DLL GEOSEqualsExact(const GEOSGeometry* g1, const GEOSGeometry* g2, double tolerance);
extern char GEOS_DLL GEOSCovers(const GEOSGeometry* g1, const GEOSGeometry* g2);
extern char GEOS_DLL GEOSCoveredBy(const GEOSGeometry* g1, const GEOSGeometry* g2);
+/**
+ * Determine pointwise equivalence of two geometries, by checking if each vertex of g2 is
+ * within tolerance of the corresponding vertex in g1.
+ * 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 equivalent by GEOSEqualsExact.
+ * returns 2 on exception, 1 on true, 0 on false
+ */
+extern char GEOS_DLL GEOSEqualsExact(const GEOSGeometry* g1, const GEOSGeometry* g2, double tolerance);
+
/************************************************************************
*
* Prepared Geometry Binary predicates - return 2 on exception, 1 on true, 0 on false
-----------------------------------------------------------------------
Summary of changes:
capi/geos_c.h.in | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list