[geos-commits] [SCM] GEOS branch main updated. 37f7600b591d40d1afd5035d3f40f1a19bc85cc2

git at osgeo.org git at osgeo.org
Thu Jun 13 09:32:32 PDT 2024


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, main has been updated
       via  37f7600b591d40d1afd5035d3f40f1a19bc85cc2 (commit)
      from  72c76d060606e511e50c24dacf533a6f28c7f69e (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 37f7600b591d40d1afd5035d3f40f1a19bc85cc2
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Thu Jun 13 09:32:06 2024 -0700

    Improve GEOSTopologyPreserveSimplifyStableTest logging

diff --git a/benchmarks/capi/GEOSTopologyPreserveSimplifyStableTest.cpp b/benchmarks/capi/GEOSTopologyPreserveSimplifyStableTest.cpp
index a73906989..406d5d1ec 100644
--- a/benchmarks/capi/GEOSTopologyPreserveSimplifyStableTest.cpp
+++ b/benchmarks/capi/GEOSTopologyPreserveSimplifyStableTest.cpp
@@ -38,6 +38,15 @@ GEOSGeometry* readGeom(std::string& fname) {
     return geom;
 }
 
+void write(GEOSGeometry* g) 
+{
+    GEOSWKTWriter* writer = GEOSWKTWriter_create();
+    char* wkt = GEOSWKTWriter_write(writer, g);
+    GEOSWKTWriter_destroy(writer);
+    std::cout << wkt << std::endl;
+    GEOSFree(wkt);
+}
+
     //----------  Run test  ---------------
 void run(std::string& fname, int nRuns, double tolerance)
 {
@@ -57,8 +66,8 @@ void run(std::string& fname, int nRuns, double tolerance)
         //std::cout << "Run " << i << std::endl;
         if (! isEqualExact || ! isDiffEmpty) {
             nErrors++;
-            std::cout << "simplified results are not identical" << std::endl;
-            std::cout << diff << std::endl;
+            std::cout << "Run " << i << " - simplified results not identical: equals=" << isEqualExact << ", empty=" << isDiffEmpty << std::endl;
+            write(diff);
         }
 
         GEOSGeom_destroy(simp1);

-----------------------------------------------------------------------

Summary of changes:
 benchmarks/capi/GEOSTopologyPreserveSimplifyStableTest.cpp | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list