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

git at osgeo.org git at osgeo.org
Mon Jul 29 16:06:24 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  ebd1e124d7e3a95df872c6c1120f87310d269abe (commit)
      from  79881bbd235f26e9f1d0ff0a49cc893baeda7ced (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 ebd1e124d7e3a95df872c6c1120f87310d269abe
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Jul 29 16:05:57 2024 -0700

    Fix for GC

diff --git a/src/operation/relateng/RelateGeometry.cpp b/src/operation/relateng/RelateGeometry.cpp
index b2691ba4c..e07c3f602 100644
--- a/src/operation/relateng/RelateGeometry.cpp
+++ b/src/operation/relateng/RelateGeometry.cpp
@@ -346,6 +346,8 @@ RelateGeometry::getEffectivePoints()
     //-- only return Points not covered by another element
     std::vector<const Point*> ptList;
     for (const Point* p : ptListAll) {
+        if (p->isEmpty())
+            continue;
         int locDim = locateWithDim(p->getCoordinate());
         if (DimensionLocation::dimension(locDim) == Dimension::P) {
             ptList.push_back(p);
diff --git a/tests/unit/operation/relateng/RelateNGGCTest.cpp b/tests/unit/operation/relateng/RelateNGGCTest.cpp
index 0e0467222..5ca0bf8ff 100644
--- a/tests/unit/operation/relateng/RelateNGGCTest.cpp
+++ b/tests/unit/operation/relateng/RelateNGGCTest.cpp
@@ -300,6 +300,15 @@ void object::test<21> ()
     checkCoversCoveredBy(a, b, true);
 }
   
+// https://trac.osgeo.org/geos/ticket/1110
+template<>
+template<>
+void object::test<22> ()
+{
+    std::string a = "POLYGON ((3 7, 7 7, 7 3, 3 3, 3 7))";
+    std::string b = "GEOMETRYCOLLECTION (MULTIPOINT (EMPTY, (5 5)), LINESTRING (1 9, 4 9))";
+    checkIntersectsDisjoint(a, b, true);
+}
 
 
 

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

Summary of changes:
 src/operation/relateng/RelateGeometry.cpp        | 2 ++
 tests/unit/operation/relateng/RelateNGGCTest.cpp | 9 +++++++++
 2 files changed, 11 insertions(+)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list