[geos-commits] [SCM] GEOS branch main-relate-ng updated. bccce512e6c87284ba0037fb343943019b440b01

git at osgeo.org git at osgeo.org
Mon Jul 29 13:39:34 PDT 2024


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-relate-ng has been updated
       via  bccce512e6c87284ba0037fb343943019b440b01 (commit)
      from  02aae25f7a243d65e2dcf4092dd6be84a731f818 (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 bccce512e6c87284ba0037fb343943019b440b01
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Jul 29 13:39:09 2024 -0700

    Fix extractSegmentStrings to extract from all collections

diff --git a/src/operation/relateng/RelateGeometry.cpp b/src/operation/relateng/RelateGeometry.cpp
index 7fd7998fa..b2691ba4c 100644
--- a/src/operation/relateng/RelateGeometry.cpp
+++ b/src/operation/relateng/RelateGeometry.cpp
@@ -380,7 +380,8 @@ RelateGeometry::extractSegmentStrings(bool isA,
 
     for (std::size_t i = 0; i < p_geom->getNumGeometries(); i++) {
         const Geometry* g = p_geom->getGeometryN(i);
-        if (g->getGeometryTypeId() == GEOS_GEOMETRYCOLLECTION) {
+        // if (g->getGeometryTypeId() == GEOS_GEOMETRYCOLLECTION) {
+        if (g->isCollection()) {
             extractSegmentStrings(isA, env, g, segStrings);
         }
         else {

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

Summary of changes:
 src/operation/relateng/RelateGeometry.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list