[geos-commits] [SCM] GEOS branch master updated. cd3af0d40a9ab78fddf16abf29bd4d7bce099868
git at osgeo.org
git at osgeo.org
Tue Aug 27 11:33:33 PDT 2019
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 cd3af0d40a9ab78fddf16abf29bd4d7bce099868 (commit)
via c2bbf31c03ec7a87256caff00917c44b69c4d806 (commit)
from 4c8e68a1cf16637be0ef3826c18fc3df628039c8 (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 cd3af0d40a9ab78fddf16abf29bd4d7bce099868
Author: Daniel Baston <dbaston at gmail.com>
Date: Tue Aug 27 14:33:21 2019 -0400
Add test case for #523
diff --git a/tests/unit/operation/overlay/OverlayOpUnionTest.cpp b/tests/unit/operation/overlay/OverlayOpUnionTest.cpp
index 8b2dbfd..ff2abb9 100644
--- a/tests/unit/operation/overlay/OverlayOpUnionTest.cpp
+++ b/tests/unit/operation/overlay/OverlayOpUnionTest.cpp
@@ -11,6 +11,7 @@
#include <geos/io/WKTReader.h>
// std
#include <string>
+#include <sstream>
#include <memory>
using namespace geos::geom;
@@ -62,4 +63,33 @@ void object::test<1>
// See LineMergerTest where the test triangle is generated as a single LineString.
}
+// https://trac.osgeo.org/geos/ticket/523
+template<>
+template<>
+void object::test<2>
+()
+{
+ std::istringstream wkb1("010300000001000000080000000000000087523A41000000402C625241000"
+ "00000B0523A41000000C01E6252410000000084523A41000000C023625241"
+ "858C4F2488523A4151F8EEAC2562524111A0F52288523A414F50F3AC25625"
+ "241D59FF52288523A414F50F3AC25625241000000007F523A410000008025"
+ "6252410000000087523A41000000402C625241");
+
+ std::istringstream wkb2("01030000000100000004000000A871502388523A4158FEF2AC2562524100A"
+ "0F52288523A414F50F3AC2562524111A0F52288523A414F50F3AC25625241"
+ "A871502388523A4158FEF2AC25625241");
+
+ geos::io::WKBReader reader;
+
+ auto g1 = reader.readHEX(wkb1);
+ auto g2 = reader.readHEX(wkb2);
+
+ ensure(g1->isValid());
+ ensure(g2->isValid());
+
+ auto g3 = g1->symDifference(g2.get());
+
+ ensure(g3->isValid());
+}
+
} // namespace tut
commit c2bbf31c03ec7a87256caff00917c44b69c4d806
Author: Daniel Baston <dbaston at gmail.com>
Date: Tue Aug 27 14:32:49 2019 -0400
Add comment referring to ticket
diff --git a/tests/unit/operation/valid/IsValidTest.cpp b/tests/unit/operation/valid/IsValidTest.cpp
index fe6bde5..ddce52d 100644
--- a/tests/unit/operation/valid/IsValidTest.cpp
+++ b/tests/unit/operation/valid/IsValidTest.cpp
@@ -106,6 +106,8 @@ template<>
void object::test<3>
()
{
+ // https://trac.osgeo.org/geos/ticket/588
+
std::string wkt("POLYGON (( -86.3958130146539250 114.3482370100377900, 64.7285128575111490 156.9678884302379600, 138.3490775437400700 43.1639042523018260, 87.9271046586986810 -10.5302909001479570, 87.9271046586986810 -10.5302909001479530, 55.7321237336437390 -44.8146215164960250, -86.3958130146539250 114.3482370100377900))");
auto g = wktreader.read(wkt);
-----------------------------------------------------------------------
Summary of changes:
.../unit/operation/overlay/OverlayOpUnionTest.cpp | 30 ++++++++++++++++++++++
tests/unit/operation/valid/IsValidTest.cpp | 2 ++
2 files changed, 32 insertions(+)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list