[geos-commits] [SCM] GEOS branch svn-3.6 updated. bad46e4da38414cee248e402b654b1cc8b40134f

git at osgeo.org git at osgeo.org
Mon Aug 27 15:11:25 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, svn-3.6 has been updated
       via  bad46e4da38414cee248e402b654b1cc8b40134f (commit)
      from  c79068d2c53f0219100e74eafde1c55d6d127ca5 (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 bad46e4da38414cee248e402b654b1cc8b40134f
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 4988ed8..74dc3c2 100644
--- a/capi/geos_c.h.in
+++ b/capi/geos_c.h.in
@@ -1666,10 +1666,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