[geos-commits] [SCM] GEOS branch master updated. cda30a1b8d4374b873c2ebcceac1878f87df8126

git at osgeo.org git at osgeo.org
Mon Dec 17 12:21:25 PST 2018


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  cda30a1b8d4374b873c2ebcceac1878f87df8126 (commit)
      from  5ce4076b7e67f8f978ad34f0127728957edc1c3a (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 cda30a1b8d4374b873c2ebcceac1878f87df8126
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Dec 17 12:20:56 2018 -0800

    Add some robustness failure tests
    (Unfortunately these currently fail on GEOS)
    JTS 5b30e1334e5999461eb3d9b80c51375ffa53f810

diff --git a/tests/xmltester/CMakeLists.txt b/tests/xmltester/CMakeLists.txt
index a1c1435..0ea8f77 100644
--- a/tests/xmltester/CMakeLists.txt
+++ b/tests/xmltester/CMakeLists.txt
@@ -145,6 +145,7 @@ if(GEOS_ENABLE_TESTS)
   set(FAILING_XMLTESTS
     ${XMLTESTS_DIR}/ticket/bug488.xml
     ${XMLTESTS_DIR}/ticket/bug344.xml
+    ${XMLTESTS_DIR}/robust/TestRobustRelateFloat.xml
     ${XMLTESTS_DIR}/TestBigNastyBuffer.xml
     ${XMLTESTS_DIR}/failure/TestOverlay.xml
     )
diff --git a/tests/xmltester/Makefile.am b/tests/xmltester/Makefile.am
index ace4c84..2f7cff5 100644
--- a/tests/xmltester/Makefile.am
+++ b/tests/xmltester/Makefile.am
@@ -116,6 +116,7 @@ FAILING_XMLTESTS = \
 	$(srcdir)/tests/failure/TestOverlay.xml \
 	$(srcdir)/tests/ticket/bug488.xml \
 	$(srcdir)/tests/ticket/bug344.xml \
+	$(srcdir)/tests/robust/TestRobustRelateFloat.xml \
 	$(srcdir)/tests/TestBigNastyBuffer.xml
 
 XMLTESTS=$(SAFE_XMLTESTS) $(INVALID_OUTPUT_XMLTESTS) $(FAILING_XMLTESTS)
diff --git a/tests/xmltester/tests/robust/TestRobustRelateFloat.xml b/tests/xmltester/tests/robust/TestRobustRelateFloat.xml
new file mode 100644
index 0000000..5ac5abb
--- /dev/null
+++ b/tests/xmltester/tests/robust/TestRobustRelateFloat.xml
@@ -0,0 +1,38 @@
+<run>
+  <precisionModel type="FLOATING" />
+
+  <case>
+    <desc>
+      A/P - Point is on boundary of polygon.
+      Orientation algorithms (including CGAlgorithmsDD) fail by incorrectly reporting the point to not be on the boundary.
+      See https://trac.osgeo.org/geos/ticket/841
+    </desc>
+    <a>
+      POLYGON ((0 0, 1 0, 0 1, 0 0))
+    </a>
+    <b>
+      POINT (0.95 0.05)
+    </b>
+    <test>
+      <op name="contains" arg1="A" arg2="B">false</op>
+    </test>
+  </case>
+
+  <case>
+    <desc>
+      L/L - Line A contains Line B.
+      Fails due to imprecision of computed self-node in A.
+      See https://trac.osgeo.org/geos/ticket/572
+    </desc>
+    <a>
+      LINESTRING (1 0, 0 2, 0 0, 2 2)
+    </a>
+    <b>
+      LINESTRING (0 0, 2 2)
+    </b>
+    <test>
+      <op name="contains" arg1="A" arg2="B">true</op>
+    </test>
+  </case>
+
+</run>

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

Summary of changes:
 tests/xmltester/CMakeLists.txt                     |  1 +
 tests/xmltester/Makefile.am                        |  1 +
 .../tests/robust/TestRobustRelateFloat.xml         | 38 ++++++++++++++++++++++
 3 files changed, 40 insertions(+)
 create mode 100644 tests/xmltester/tests/robust/TestRobustRelateFloat.xml


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list