[geos-commits] [SCM] GEOS branch master updated. b2da5ce9c35b59a0a7852526bfb037381ab521b1

git at osgeo.org git at osgeo.org
Wed Jul 29 13:57:01 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  b2da5ce9c35b59a0a7852526bfb037381ab521b1 (commit)
      from  c6774a6a48b2260a370844ffe2de13f69f6de282 (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 b2da5ce9c35b59a0a7852526bfb037381ab521b1
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Jul 29 13:56:52 2020 -0700

    Run a snap-rounded overlay when provided with geometries that have fixed precision model

diff --git a/src/operation/overlayng/OverlayNGSnapIfNeeded.cpp b/src/operation/overlayng/OverlayNGSnapIfNeeded.cpp
index e5ca8a7..6cc677f 100644
--- a/src/operation/overlayng/OverlayNGSnapIfNeeded.cpp
+++ b/src/operation/overlayng/OverlayNGSnapIfNeeded.cpp
@@ -79,6 +79,14 @@ OverlayNGSnapIfNeeded::Overlay(const Geometry* geom0, const Geometry* geom1, int
     std::runtime_error exOriginal("");
 
     /**
+    * If input geometry has a non-floating precision model, just run
+    * in snap-rounding mode with that precision.
+    */
+    if (!geom0->getPrecisionModel()->isFloating()) {
+        return OverlayNG::overlay(geom0, geom1, opCode, geom0->getPrecisionModel());
+    }
+
+    /**
      * First try overlay with a FLOAT noder, which is fastest and causes least
      * change to geometry coordinates
      * By default the noder is validated, which is required in order

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

Summary of changes:
 src/operation/overlayng/OverlayNGSnapIfNeeded.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list