[geos-commits] [SCM] GEOS branch master updated. 208a6f5090deac573597f54471b0651f91ae415f

git at osgeo.org git at osgeo.org
Wed Sep 9 11:15:15 PDT 2020


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, master has been updated
       via  208a6f5090deac573597f54471b0651f91ae415f (commit)
      from  895ed59b613dc8ee071a2d41d9492323259cfefd (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 208a6f5090deac573597f54471b0651f91ae415f
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Sep 9 11:15:11 2020 -0700

    Port https://github.com/dr-jts/jts/commit/c9cd451e7b6f21ae4d8ddde95757433587a4ec76, Add SnapRoundingNoder unit test

diff --git a/tests/unit/noding/snapround/SnapRoundingNoderTest.cpp b/tests/unit/noding/snapround/SnapRoundingNoderTest.cpp
index 908aa90..dc1531a 100644
--- a/tests/unit/noding/snapround/SnapRoundingNoderTest.cpp
+++ b/tests/unit/noding/snapround/SnapRoundingNoderTest.cpp
@@ -270,8 +270,18 @@ void object::test<16> ()
     checkRounding(wkt, 1, expected);
 }
 
-
-
+/**
+* Complex lines are snapped to a simpler arrangement
+*/
+// testHammerheads
+template<>
+template<>
+void object::test<17> ()
+{
+    std::string wkt =      "MULTILINESTRING ((1 3.3, 1.3 1.4, 3.1 1.4, 3.1 0.9, 1.3 0.9, 1 -0.2, 0.8 1.3, 1 3.3), (1 2.9, 2.9 2.9, 2.9 1.3, 1.7 1, 1.3 0.9, 1 0.4, 1 2.9))";
+    std::string expected = "MULTILINESTRING ((1 3, 1 1), (1 1, 2 1), (2 1, 3 1), (3 1, 2 1), (2 1, 1 1), (1 1, 1 0), (1 0, 1 1), (1 1, 1 3), (1 3, 3 3, 3 1), (3 1, 2 1), (2 1, 1 1), (1 1, 1 0), (1 0, 1 1), (1 1, 1 3))";
+    checkRounding(wkt, 1.0, expected);
+}
 
 
 } // namespace tut

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

Summary of changes:
 tests/unit/noding/snapround/SnapRoundingNoderTest.cpp | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list