[geos-commits] [SCM] GEOS branch 3.12 updated. 604e2f04970a87189351016d84c0c727b576ea7d

git at osgeo.org git at osgeo.org
Tue Nov 28 17:42:59 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.12 has been updated
       via  604e2f04970a87189351016d84c0c727b576ea7d (commit)
       via  cd5490fc50edad8e32f0f3b6574aaf6421160630 (commit)
      from  8b90b0b366dbb2d42828c39617b3893e7ae7da99 (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 604e2f04970a87189351016d84c0c727b576ea7d
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Tue Nov 28 17:42:32 2023 -0800

    News entry for GH-1002

diff --git a/NEWS.md b/NEWS.md
index 6f3a81273..06eaca969 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -6,6 +6,7 @@ xxxx-xx-xx
   - Buffer mitre join error (GH-995, Paul Ramsey)
   - Return 2D empty linestring on GEOSGeom_createLineString(NULL) (GH-998, Paul Ramsey)
   - Fix DiscreteHausdorffDistance for LinearRing (GH-1000, Martin Davis)
+  - PointOnSurface crashes with a collection containing a empty linestring (GH-1002, Paul Ramsey)
 
 ## Changes in 3.12.1
 2023-11-11

commit cd5490fc50edad8e32f0f3b6574aaf6421160630
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