[geos-commits] [SCM] GEOS branch master updated. 2b85f6e862bc289b648b2bd362db136e93bba2e0

git at osgeo.org git at osgeo.org
Tue Aug 18 14:55:27 PDT 2020


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  2b85f6e862bc289b648b2bd362db136e93bba2e0 (commit)
      from  e6ffc18a8de531f487088e7275a0af9d1d6736bc (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 2b85f6e862bc289b648b2bd362db136e93bba2e0
Author: Sandro Santilli <strk at kbt.io>
Date:   Tue Aug 18 23:54:51 2020 +0200

    Add debugging lines

diff --git a/src/operation/overlayng/OverlayNGSnapIfNeeded.cpp b/src/operation/overlayng/OverlayNGSnapIfNeeded.cpp
index c127850..bc1f6b6 100644
--- a/src/operation/overlayng/OverlayNGSnapIfNeeded.cpp
+++ b/src/operation/overlayng/OverlayNGSnapIfNeeded.cpp
@@ -26,6 +26,10 @@
 
 #include <stdexcept>
 
+#ifndef GEOS_DEBUG
+# define GEOS_DEBUG 0
+#endif
+
 namespace geos {      // geos
 namespace operation { // geos.operation
 namespace overlayng { // geos.operation.overlayng
@@ -83,7 +87,9 @@ OverlayNGSnapIfNeeded::Overlay(const Geometry* geom0, const Geometry* geom1, int
     * in snap-rounding mode with that precision.
     */
     if (!geom0->getPrecisionModel()->isFloating()) {
-        // std::cout << std::endl << "Using fixed precision overlay." << std::endl;
+#if GEOS_DEBUG
+        std::cout << std::endl << "Using fixed precision overlay." << std::endl;
+#endif
         return OverlayNG::overlay(geom0, geom1, opCode, geom0->getPrecisionModel());
     }
 
@@ -114,7 +120,9 @@ OverlayNGSnapIfNeeded::Overlay(const Geometry* geom0, const Geometry* geom1, int
         exOriginal = ex;
     }
 
-    // std::cout << std::endl << "Floating point overlay FAILURE." << std::endl;
+#if GEOS_DEBUG
+    std::cout << std::endl << "Floating point overlay FAILURE." << std::endl;
+#endif
 
     /**
      * On failure retry using snapping noding with a "safe" tolerance.

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

Summary of changes:
 src/operation/overlayng/OverlayNGSnapIfNeeded.cpp | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list