[geos-commits] [SCM] GEOS branch master updated. 03a76a371bfe81adb0d6e18cde41b6aa7c494786
git at osgeo.org
git at osgeo.org
Fri Sep 20 16:07:58 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 03a76a371bfe81adb0d6e18cde41b6aa7c494786 (commit)
via 842593ebd97c5c6380421e0f10e08966269cea5e (commit)
from e4125d66bf4951a41d9d71a196769707b3d0431d (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 03a76a371bfe81adb0d6e18cde41b6aa7c494786
Merge: 842593e e4125d6
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Fri Sep 20 16:07:54 2019 -0700
Merge branch 'master' of https://git.osgeo.org/gogs/geos/geos
commit 842593ebd97c5c6380421e0f10e08966269cea5e
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Fri Sep 20 16:07:31 2019 -0700
Add robust determinant test files
References #591
diff --git a/tests/xmltester/Makefile.am b/tests/xmltester/Makefile.am
index 74c9477..a0e3db8 100644
--- a/tests/xmltester/Makefile.am
+++ b/tests/xmltester/Makefile.am
@@ -34,7 +34,9 @@ SAFE_XMLTESTS= \
$(srcdir)/tests/general/TestFunctionPLPrec.xml \
$(srcdir)/tests/general/TestFunctionPP.xml \
$(srcdir)/tests/general/TestInteriorPoint.xml \
+ $(srcdir)/tests/general/TestIntersectsPL.xml \
$(srcdir)/tests/general/TestMinimumClearance.xml \
+ $(srcdir)/tests/general/TestPreparedIntersectsPL.xml \
$(srcdir)/tests/general/TestPreparedPointPredicate.xml \
$(srcdir)/tests/general/TestPreparedPolygonPredicate.xml \
$(srcdir)/tests/general/TestPreparedPredicatesWithGeometryCollection.xml \
diff --git a/tests/xmltester/tests/general/TestIntersectsPL.xml b/tests/xmltester/tests/general/TestIntersectsPL.xml
new file mode 100644
index 0000000..3d2634a
--- /dev/null
+++ b/tests/xmltester/tests/general/TestIntersectsPL.xml
@@ -0,0 +1,37 @@
+<run>
+ <desc>Test P/L intersects cases that require robust determinant. See discussion http://trac.osgeo.org/geos/ticket/591</desc>
+ <!-- first occurrence is used -->
+ <precisionModel type="FLOATING"/> <!-- passes -->
+ <precisionModel scale="1.0" offsetx="0.0" offsety="0.0"/> <!-- passes -->
+
+<case>
+ <desc>Point on segment between 3rd and 4th vertex of line</desc>
+ <a>
+ POINT(-23.1094689600055 50.5195368635957)
+ </a>
+ <b>
+ LINESTRING(-23.122057005539 50.5201976774794,-23.1153476966995 50.5133404815199,-23.1094689600055 50.5223376452201,-23.1094689600055 50.5169177629559,-23.0961967920942 50.5330464848094,-23.0887991006034 50.5258515213185,-23.0852302622362 50.5264582238409)
+ </b>
+<test>
+ <op name="intersects" arg1="A" arg2="B">
+ true
+ </op>
+</test>
+</case>
+
+<case>
+ <desc>Point on the 3rd vertex of line</desc>
+ <a>
+ POINT(-23.1094689600055 50.5223376452201)
+ </a>
+ <b>
+ LINESTRING(-23.122057005539 50.5201976774794,-23.1153476966995 50.5133404815199,-23.1094689600055 50.5223376452201,-23.1094689600055 50.5169177629559,-23.0961967920942 50.5330464848094,-23.0887991006034 50.5258515213185,-23.0852302622362 50.5264582238409)
+ </b>
+<test>
+ <op name="intersects" arg1="A" arg2="B">
+ true
+ </op>
+</test>
+</case>
+
+</run>
diff --git a/tests/xmltester/tests/general/TestPreparedIntersectsPL.xml b/tests/xmltester/tests/general/TestPreparedIntersectsPL.xml
new file mode 100644
index 0000000..55c69a5
--- /dev/null
+++ b/tests/xmltester/tests/general/TestPreparedIntersectsPL.xml
@@ -0,0 +1,37 @@
+<run>
+ <desc>Test P/L intersects cases that require robust determinant. See discussion http://trac.osgeo.org/geos/ticket/591</desc>
+ <!-- first occurrence is used -->
+ <precisionModel type="FLOATING"/> <!-- passes -->
+ <precisionModel scale="1.0" offsetx="0.0" offsety="0.0"/> <!-- passes -->
+ <geometryOperation>com.vividsolutions.jtstest.geomop.PreparedGeometryOperation</geometryOperation>
+<case>
+ <desc>Point on segment between 3rd and 4th vertex of line</desc>
+ <a>
+ POINT(-23.1094689600055 50.5195368635957)
+ </a>
+ <b>
+ LINESTRING(-23.122057005539 50.5201976774794,-23.1153476966995 50.5133404815199,-23.1094689600055 50.5223376452201,-23.1094689600055 50.5169177629559,-23.0961967920942 50.5330464848094,-23.0887991006034 50.5258515213185,-23.0852302622362 50.5264582238409)
+ </b>
+<test>
+ <op name="intersects" arg1="A" arg2="B">
+ true
+ </op>
+</test>
+</case>
+
+<case>
+ <desc>Point on the 3rd vertex of line</desc>
+ <a>
+ POINT(-23.1094689600055 50.5223376452201)
+ </a>
+ <b>
+ LINESTRING(-23.122057005539 50.5201976774794,-23.1153476966995 50.5133404815199,-23.1094689600055 50.5223376452201,-23.1094689600055 50.5169177629559,-23.0961967920942 50.5330464848094,-23.0887991006034 50.5258515213185,-23.0852302622362 50.5264582238409)
+ </b>
+<test>
+ <op name="intersects" arg1="A" arg2="B">
+ true
+ </op>
+</test>
+</case>
+
+</run>
-----------------------------------------------------------------------
Summary of changes:
tests/xmltester/Makefile.am | 2 ++
tests/xmltester/tests/general/TestIntersectsPL.xml | 37 ++++++++++++++++++++++
.../tests/general/TestPreparedIntersectsPL.xml | 37 ++++++++++++++++++++++
3 files changed, 76 insertions(+)
create mode 100644 tests/xmltester/tests/general/TestIntersectsPL.xml
create mode 100644 tests/xmltester/tests/general/TestPreparedIntersectsPL.xml
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list