[geos-commits] [SCM] GEOS branch main updated. 47ae3352f7a96001b07690010406afff1ef177ff

git at osgeo.org git at osgeo.org
Thu Oct 9 13:58:52 PDT 2025


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  47ae3352f7a96001b07690010406afff1ef177ff (commit)
      from  16f53573f6bef38551801c2d449d4782775267bc (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 47ae3352f7a96001b07690010406afff1ef177ff
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Thu Oct 9 13:58:25 2025 -0700

    Add some ClipByRect tests to memorialize point/multipoint behaviour

diff --git a/tests/unit/capi/GEOSClipByRectTest.cpp b/tests/unit/capi/GEOSClipByRectTest.cpp
index 9ff33d336..c1c77aace 100644
--- a/tests/unit/capi/GEOSClipByRectTest.cpp
+++ b/tests/unit/capi/GEOSClipByRectTest.cpp
@@ -361,6 +361,43 @@ void object::test<22>()
         );
 }
 
+/// Multipoint overlapping
+template<>
+template<>
+void object::test<25>()
+{
+    checkClipByRectIdentical(
+        "MULTIPOINT((1 1),(6 4),(5 4))",
+        0, 0, 5, 5,
+        "POINT(1 1)"
+        );
+}
+
+
+/// Multipoint overlapping
+template<>
+template<>
+void object::test<26>()
+{
+    checkClipByRectIdentical(
+        "MULTIPOINT((1 1),(3 4),(5 4))",
+        0, 0, 5, 5,
+        "MULTIPOINT((1 1),(3 4))"
+        );
+}
+
+/// Linestring overlapping
+template<>
+template<>
+void object::test<27>()
+{
+    checkClipByRectIdentical(
+        "LINESTRING(0 0,1 1,3 4,5 4)",
+        0, 0, 5, 5,
+        "LINESTRING(0 0,1 1,3 4,5 4)"
+        );
+}
+
 
 } // namespace tut
 

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

Summary of changes:
 tests/unit/capi/GEOSClipByRectTest.cpp | 37 ++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list