Skip to content

Commit

Permalink
Add TestRelatePA tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Nov 9, 2023
1 parent f95b42e commit 1915fdc
Showing 1 changed file with 63 additions and 6 deletions.
69 changes: 63 additions & 6 deletions modules/tests/src/test/resources/testxml/general/TestRelatePA.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
true
</op>
</test>
<test><op name="contains" arg1="A" arg2="B"> false </op></test>
<test><op name="coveredBy" arg1="A" arg2="B"> false </op></test>
<test><op name="covers" arg1="A" arg2="B"> false </op></test>
<test><op name="crosses" arg1="A" arg2="B"> false </op></test>
<test><op name="disjoint" arg1="A" arg2="B"> true </op></test>
<test><op name="equalsTopo" arg1="A" arg2="B"> false </op></test>
<test><op name="intersects" arg1="A" arg2="B"> false </op></test>
<test><op name="overlaps" arg1="A" arg2="B"> false </op></test>
<test><op name="touches" arg1="A" arg2="B"> false </op></test>
<test><op name="within" arg1="A" arg2="B"> false </op></test>
</case>

<case>
Expand All @@ -31,6 +41,16 @@
true
</op>
</test>
<test><op name="contains" arg1="A" arg2="B"> false </op></test>
<test><op name="coveredBy" arg1="A" arg2="B"> false </op></test>
<test><op name="covers" arg1="A" arg2="B"> false </op></test>
<test><op name="crosses" arg1="A" arg2="B"> true </op></test>
<test><op name="disjoint" arg1="A" arg2="B"> false </op></test>
<test><op name="equalsTopo" arg1="A" arg2="B"> false </op></test>
<test><op name="intersects" arg1="A" arg2="B"> true </op></test>
<test><op name="overlaps" arg1="A" arg2="B"> false </op></test>
<test><op name="touches" arg1="A" arg2="B"> false </op></test>
<test><op name="within" arg1="A" arg2="B"> false </op></test>
</case>

<case>
Expand All @@ -39,14 +59,23 @@
MULTIPOINT((0 20), (20 20))
</a>
<b>
POLYGON(
(20 40, 20 0, 60 0, 60 40, 20 40))
POLYGON((20 40, 20 0, 60 0, 60 40, 20 40))
</b>
<test>
<op name="relate" arg3="F00FFF212" arg1="A" arg2="B">
true
</op>
</test>
<test><op name="contains" arg1="A" arg2="B"> false </op></test>
<test><op name="coveredBy" arg1="A" arg2="B"> false </op></test>
<test><op name="covers" arg1="A" arg2="B"> false </op></test>
<test><op name="crosses" arg1="A" arg2="B"> false </op></test>
<test><op name="disjoint" arg1="A" arg2="B"> false </op></test>
<test><op name="equalsTopo" arg1="A" arg2="B"> false </op></test>
<test><op name="intersects" arg1="A" arg2="B"> true </op></test>
<test><op name="overlaps" arg1="A" arg2="B"> false </op></test>
<test><op name="touches" arg1="A" arg2="B"> true </op></test>
<test><op name="within" arg1="A" arg2="B"> false </op></test>
</case>

<case>
Expand All @@ -55,14 +84,23 @@
MULTIPOINT((20 20), (40 20))
</a>
<b>
POLYGON(
(20 40, 20 0, 60 0, 60 40, 20 40))
POLYGON((20 40, 20 0, 60 0, 60 40, 20 40))
</b>
<test>
<op name="relate" arg3="00FFFF212" arg1="A" arg2="B">
true
</op>
</test>
<test><op name="contains" arg1="A" arg2="B"> false </op></test>
<test><op name="coveredBy" arg1="A" arg2="B"> true </op></test>
<test><op name="covers" arg1="A" arg2="B"> false </op></test>
<test><op name="crosses" arg1="A" arg2="B"> false </op></test>
<test><op name="disjoint" arg1="A" arg2="B"> false </op></test>
<test><op name="equalsTopo" arg1="A" arg2="B"> false </op></test>
<test><op name="intersects" arg1="A" arg2="B"> true </op></test>
<test><op name="overlaps" arg1="A" arg2="B"> false </op></test>
<test><op name="touches" arg1="A" arg2="B"> false </op></test>
<test><op name="within" arg1="A" arg2="B"> true </op></test>
</case>

<case>
Expand All @@ -71,14 +109,23 @@
MULTIPOINT((80 260), (140 260), (180 260))
</a>
<b>
POLYGON(
(40 320, 140 320, 140 200, 40 200, 40 320))
POLYGON((40 320, 140 320, 140 200, 40 200, 40 320))
</b>
<test>
<op name="relate" arg3="000FFF212" arg1="A" arg2="B">
true
</op>
</test>
<test><op name="contains" arg1="A" arg2="B"> false </op></test>
<test><op name="coveredBy" arg1="A" arg2="B"> false </op></test>
<test><op name="covers" arg1="A" arg2="B"> false </op></test>
<test><op name="crosses" arg1="A" arg2="B"> true </op></test>
<test><op name="disjoint" arg1="A" arg2="B"> false </op></test>
<test><op name="equalsTopo" arg1="A" arg2="B"> false </op></test>
<test><op name="intersects" arg1="A" arg2="B"> true </op></test>
<test><op name="overlaps" arg1="A" arg2="B"> false </op></test>
<test><op name="touches" arg1="A" arg2="B"> false </op></test>
<test><op name="within" arg1="A" arg2="B"> false </op></test>
</case>

<case>
Expand All @@ -98,6 +145,16 @@
true
</op>
</test>
<test><op name="contains" arg1="A" arg2="B"> false </op></test>
<test><op name="coveredBy" arg1="A" arg2="B"> true </op></test>
<test><op name="covers" arg1="A" arg2="B"> false </op></test>
<test><op name="crosses" arg1="A" arg2="B"> false </op></test>
<test><op name="disjoint" arg1="A" arg2="B"> false </op></test>
<test><op name="equalsTopo" arg1="A" arg2="B"> false </op></test>
<test><op name="intersects" arg1="A" arg2="B"> true </op></test>
<test><op name="overlaps" arg1="A" arg2="B"> false </op></test>
<test><op name="touches" arg1="A" arg2="B"> true </op></test>
<test><op name="within" arg1="A" arg2="B"> false </op></test>
</case>

<case>
Expand Down

0 comments on commit 1915fdc

Please sign in to comment.