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

git at osgeo.org git at osgeo.org
Sun Jan 10 17:19:06 PST 2021


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  f038da4f59a6acc1084b22c884bfe239f5cf401e (commit)
      from  e94fd6809701af467b1abbef93dff23b947554b2 (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 f038da4f59a6acc1084b22c884bfe239f5cf401e
Author: Daniel Baston <dbaston at gmail.com>
Date:   Sun Jan 10 20:18:33 2021 -0500

    Throw exception instead of dumping to stderr

diff --git a/src/simplify/TopologyPreservingSimplifier.cpp b/src/simplify/TopologyPreservingSimplifier.cpp
index c987ba3..bd99e12 100644
--- a/src/simplify/TopologyPreservingSimplifier.cpp
+++ b/src/simplify/TopologyPreservingSimplifier.cpp
@@ -233,11 +233,8 @@ LineStringMapBuilderFilter::filter_ro(const Geometry* geom)
 
     // Duplicated Geometry pointers shouldn't happen
     if(! linestringMap.insert(std::make_pair(geom, taggedLine)).second) {
-        std::cerr << __FILE__ << ":" << __LINE__
-                  << "Duplicated Geometry components detected"
-                  << std::endl;
-
         delete taggedLine;
+        throw util::GEOSException("Duplicated Geometry components detected");
     }
 }
 

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

Summary of changes:
 src/simplify/TopologyPreservingSimplifier.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list