[geos-commits] [SCM] GEOS branch main updated. bb1a02679949868419baf73c6c11ee6179a21627

git at osgeo.org git at osgeo.org
Tue Nov 28 17:42:03 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, main has been updated
       via  bb1a02679949868419baf73c6c11ee6179a21627 (commit)
      from  34b29f889987fc528b490491d5595bb3c791ea9e (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 bb1a02679949868419baf73c6c11ee6179a21627
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:
 src/algorithm/InteriorPointLine.cpp | 1 +
 1 file changed, 1 insertion(+)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list