[geos-commits] [SCM] GEOS branch main updated. 969b0019dbadf2095e21fa2a868cbf1e6e3b5ff8
git at osgeo.org
git at osgeo.org
Tue Mar 18 10:43:27 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 969b0019dbadf2095e21fa2a868cbf1e6e3b5ff8 (commit)
from c1a3d838ced34c29f2d4ba9982dbde31f79b2a05 (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 969b0019dbadf2095e21fa2a868cbf1e6e3b5ff8
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Tue Mar 18 10:43:03 2025 -0700
Add test for intersection on linearrings
diff --git a/tests/unit/operation/overlayng/OverlayNGGeometryCollectionTest.cpp b/tests/unit/operation/overlayng/OverlayNGGeometryCollectionTest.cpp
index 55d32d515..3edf40cce 100644
--- a/tests/unit/operation/overlayng/OverlayNGGeometryCollectionTest.cpp
+++ b/tests/unit/operation/overlayng/OverlayNGGeometryCollectionTest.cpp
@@ -152,4 +152,17 @@ void object::test<7> ()
"POLYGON ((1 1, 1 5, 2 5, 2 8, 5 8, 5 9, 9 9, 9 5, 8 5, 8 2, 5 2, 5 1, 1 1))");
}
+//
+// Confirm that intersection works against linearrings
+//
+template<>
+template<>
+void object::test<9> ()
+{
+ std::string a = "LINEARRING (2 8, 8 8, 8 2, 2 2, 2 8)";
+ std::string b = "GEOMETRYCOLLECTION (LINESTRING (0 0, 10 10))";
+ testIntersection(a, b,
+ "MULTIPOINT ((2 2), (8 8))");
+}
+
} // namespace tut
-----------------------------------------------------------------------
Summary of changes:
.../operation/overlayng/OverlayNGGeometryCollectionTest.cpp | 13 +++++++++++++
1 file changed, 13 insertions(+)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list