[geos-commits] [SCM] GEOS branch master updated. 895ed59b613dc8ee071a2d41d9492323259cfefd

git at osgeo.org git at osgeo.org
Wed Sep 9 11:05:12 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  895ed59b613dc8ee071a2d41d9492323259cfefd (commit)
      from  675a2905e3cac127b8795ea0dde586e06096f32a (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 895ed59b613dc8ee071a2d41d9492323259cfefd
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Sep 9 11:04:58 2020 -0700

    Port https://github.com/dr-jts/jts/commit/1f41dd9906fb710ac0662423ae2f1a956f92c6e1, unit test testPolygonFlatCollapseIntersection

diff --git a/tests/unit/operation/overlayng/OverlayNGTest.cpp b/tests/unit/operation/overlayng/OverlayNGTest.cpp
index e4d1f08..a748208 100644
--- a/tests/unit/operation/overlayng/OverlayNGTest.cpp
+++ b/tests/unit/operation/overlayng/OverlayNGTest.cpp
@@ -494,7 +494,16 @@ void object::test<39> ()
     testOverlay(a, b, exp, OverlayNG::INTERSECTION, 1);
 }
 
-
+// testPolygonFlatCollapseIntersection
+template<>
+template<>
+void object::test<40> ()
+{
+    std::string a = "POLYGON ((200 100, 150 200, 250 200, 150 200, 100 100, 200 100))";
+    std::string b = "POLYGON ((50 150, 250 150, 250 50, 50 50, 50 150))";
+    std::string exp = "POLYGON ((175 150, 200 100, 100 100, 125 150, 175 150))";
+    testOverlay(a, b, exp, OverlayNG::INTERSECTION, 1);
+}
 
 
 } // namespace tut

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

Summary of changes:
 tests/unit/operation/overlayng/OverlayNGTest.cpp | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list