[geos-commits] [SCM] GEOS branch 3.11 updated. 7983266a00b9d08d6117b81768f7ee4aea117d26

git at osgeo.org git at osgeo.org
Tue Nov 28 17:45:24 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.11 has been updated
       via  7983266a00b9d08d6117b81768f7ee4aea117d26 (commit)
       via  24cc1c4ffea204159a917a6e05f45e69b602e17e (commit)
      from  933cd8b9057db298db5d183065d5b9f198b23928 (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 7983266a00b9d08d6117b81768f7ee4aea117d26
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Tue Nov 28 17:43:45 2023 -0800

    News entry for GH-1002

diff --git a/NEWS.md b/NEWS.md
index 2ce02949a..aa308b3bb 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -4,6 +4,7 @@ xxxx-xx-xx
 - Fixes/Improvements:
   - Fix build on Illumus (GH-971)
   - Fix DiscreteHausdorffDistance for LinearRing (GH-1000, Martin Davis)
+  - PointOnSurface crashes with a collection containing a empty linestring (GH-1002, Paul Ramsey)
 
 ## Changes in 3.11.3
 2023-11-11

commit 24cc1c4ffea204159a917a6e05f45e69b602e17e
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 85d6bd459..5d791d8d2 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.md                             | 1 +
 src/algorithm/InteriorPointLine.cpp | 1 +
 2 files changed, 2 insertions(+)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list