[geos-commits] [SCM] GEOS branch main updated. 190b0d5ccdefa2d143ef24c728db1213aa1cae2e

git at osgeo.org git at osgeo.org
Tue Sep 8 12:50:06 PDT 2026


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  190b0d5ccdefa2d143ef24c728db1213aa1cae2e (commit)
      from  c37228780e88afdf356e7f14d87c3d36a4da25ec (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 190b0d5ccdefa2d143ef24c728db1213aa1cae2e
Author: Daniel Baston <dbaston at gmail.com>
Date:   Tue Sep 8 15:24:16 2026 -0400

    GeometrySplitter: Add test
    
    References https://github.com/libgeos/geos/issues/1508

diff --git a/tests/unit/operation/split/GeometrySplitterTest.cpp b/tests/unit/operation/split/GeometrySplitterTest.cpp
index d4700ec47..4e91f7230 100644
--- a/tests/unit/operation/split/GeometrySplitterTest.cpp
+++ b/tests/unit/operation/split/GeometrySplitterTest.cpp
@@ -912,4 +912,17 @@ void object::test<75>()
         "GEOMETRYCOLLECTION (CURVEPOLYGON (COMPOUNDCURVE ((5 0, 0 0, 5 5), CIRCULARSTRING (5 5, 7 1, 5 0))), POLYGON ((0 0, 0 5, 5 5, 0 0)))");
 }
 
+template<>
+template<>
+void object::test<76>()
+{
+    set_test_name("split very narrow Polygon with LineString");
+
+    auto poly = reader_.read("POLYGON ((492980.38648063864093274 7082334.45244149677455425, 493082.65415841294452548 7082319.87918917648494244, 492980.38648063858272508 7082334.45244149677455425, 492980.38648063864093274 7082334.45244149677455425))");
+    auto line = reader_.read("LINESTRING (493825.46541286131832749 7082214.02779923938214779, 492955.04876351181883365 7082338.06309300474822521)");
+
+    // Fails because split polygon does not preserve area (precision issue)
+    ensure_THROW(GeometrySplitter::split(*poly, *line), geos::util::GEOSException);
+}
+
 }

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

Summary of changes:
 tests/unit/operation/split/GeometrySplitterTest.cpp | 13 +++++++++++++
 1 file changed, 13 insertions(+)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list