[geos-commits] [SCM] GEOS branch 3.10 updated. b9d9262fc3f87570889a78040b8592361fe2b9de

git at osgeo.org git at osgeo.org
Tue Nov 28 17:46:15 PST 2023


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, 3.10 has been updated
       via  b9d9262fc3f87570889a78040b8592361fe2b9de (commit)
       via  d07db7e50dae19b3dffad7796a2faafee5fdfcaa (commit)
      from  b4e7c5b3b320c9ffe52737d6b32e238c5feeb9bd (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 b9d9262fc3f87570889a78040b8592361fe2b9de
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Tue Nov 28 17:45:53 2023 -0800

    News entry for GH-1002

diff --git a/NEWS b/NEWS
index aa178ccbe..885e99ea5 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@
 
 - Fixes/Improvements:
   - Fix build on Illumus (GH-971)
+  - PointOnSurface crashes with a collection containing a empty linestring (GH-1002, Paul Ramsey)
 
 ## Changes in 3.10.6
 2023-11-11

commit d07db7e50dae19b3dffad7796a2faafee5fdfcaa
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Tue Nov 28 17:41:28 2023 -0800

    PointOnSurface crashes with a collection containing a empty linestring GH-1002

diff --git a/src/algorithm/InteriorPointLine.cpp b/src/algorithm/InteriorPointLine.cpp
index 7982a4ade..408f9bcda 100644
--- a/src/algorithm/InteriorPointLine.cpp
+++ b/src/algorithm/InteriorPointLine.cpp
@@ -65,6 +65,7 @@ InteriorPointLine::addInterior(const Geometry* geom)
 {
     const LineString* ls = dynamic_cast<const LineString*>(geom);
     if (ls) {
+        if (ls->isEmpty()) return;
         addInterior(ls->getCoordinatesRO());
         return;
     }

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

Summary of changes:
 NEWS                                | 1 +
 src/algorithm/InteriorPointLine.cpp | 1 +
 2 files changed, 2 insertions(+)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list