~ubuntu-branches/ubuntu/natty/jts/natty

« back to all changes in this revision

Viewing changes to test/vivid/TestRectanglePredicate.xml

  • Committer: Bazaar Package Importer
  • Author(s): Wolfgang Baer
  • Date: 2005-08-07 14:12:35 UTC
  • Revision ID: james.westby@ubuntu.com-20050807141235-7hy3ll3xpq79djcb
Tags: upstream-1.6
ImportĀ upstreamĀ versionĀ 1.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<run>
 
2
  <precisionModel scale="1.0" offsetx="0.0" offsety="0.0"/>
 
3
 
 
4
<case>
 
5
  <desc>A disjoint</desc>
 
6
  <a>
 
7
    POLYGON(
 
8
      (0 0, 80 0, 80 80, 0 80, 0 0))
 
9
  </a>
 
10
  <b>
 
11
    POLYGON(
 
12
      (100 200, 100 140, 180 140, 180 200, 100 200))
 
13
  </b>
 
14
<test>  <op name="intersects" arg1="A" arg2="B">   false   </op> </test>
 
15
<test>  <op name="contains" arg1="A" arg2="B">   false   </op> </test>
 
16
</case>
 
17
 
 
18
<case>
 
19
  <desc>A contained in rectangle</desc>
 
20
  <a>
 
21
    POLYGON((0 0, 100 0, 100 100, 0 100, 0 0))
 
22
  </a>
 
23
  <b>
 
24
    POLYGON((10 10, 10 90, 90 90, 90 10, 10 10))
 
25
  </b>
 
26
<test>  <op name="intersects" arg1="A" arg2="B">   true   </op> </test>
 
27
<test>  <op name="contains" arg1="A" arg2="B">   true   </op> </test>
 
28
</case>
 
29
 
 
30
<case>
 
31
  <desc>A containing rectangle</desc>
 
32
  <a>
 
33
    POLYGON((0 0, 100 0, 100 100, 0 100, 0 0))
 
34
  </a>
 
35
  <b>
 
36
    POLYGON ((60 180, -100 120, -140 60, -40 20, -100 -80, 40 -20, 140 -100, 140 40, 260 160, 80 120, 60 180))
 
37
  </b>
 
38
<test>  <op name="intersects" arg1="A" arg2="B">   true   </op> </test>
 
39
<test>  <op name="contains" arg1="A" arg2="B">   false   </op> </test>
 
40
</case>
 
41
 
 
42
<case>
 
43
  <desc>mA containing rectangle</desc>
 
44
  <a>
 
45
    POLYGON((0 0, 100 0, 100 100, 0 100, 0 0))
 
46
  </a>
 
47
  <b>
 
48
        MULTIPOLYGON (((-60 180, -60 -60, 40 -20, 140 -100, 180 120, -20 140, -60 180)), 
 
49
        ((20 280, 0 180, 180 160, 200 280, 20 280)))
 
50
  </b>
 
51
<test>  <op name="intersects" arg1="A" arg2="B">   true   </op> </test>
 
52
<test>  <op name="contains" arg1="A" arg2="B">   false   </op> </test>
 
53
</case>
 
54
 
 
55
<case>
 
56
  <desc>L overlaps thru Y axis side</desc>
 
57
  <a>
 
58
    POLYGON((0 0, 100 0, 100 100, 0 100, 0 0))
 
59
  </a>
 
60
  <b>
 
61
    LINESTRING(10 10, 200 10)
 
62
  </b>
 
63
<test>  <op name="intersects" arg1="A" arg2="B">   true   </op> </test>
 
64
</case>
 
65
 
 
66
<case>
 
67
  <desc>L overlaps thru X axis side</desc>
 
68
  <a>
 
69
    POLYGON((0 0, 100 0, 100 100, 0 100, 0 0))
 
70
  </a>
 
71
  <b>
 
72
    LINESTRING(10 10, 10 2000)
 
73
  </b>
 
74
<test>  <op name="intersects" arg1="A" arg2="B">   true   </op> </test>
 
75
</case>
 
76
 
 
77
<case>
 
78
  <desc>L line intersection</desc>
 
79
  <a>
 
80
    POLYGON((0 0, 100 0, 100 100, 0 100, 0 0))
 
81
  </a>
 
82
  <b>
 
83
    LINESTRING( 10 10, -10 -20 )
 
84
  </b>
 
85
<test>  <op name="intersects" arg1="A" arg2="B">   true   </op> </test>
 
86
</case>
 
87
 
 
88
<case>
 
89
  <desc>mL with one component contained</desc>
 
90
  <a>
 
91
    POLYGON((0 0, 100 0, 100 100, 0 100, 0 0))
 
92
  </a>
 
93
  <b>
 
94
    MULTILINESTRING( (10 10, 10 20), (200 10, 200 20) )
 
95
  </b>
 
96
<test>  <op name="intersects" arg1="A" arg2="B">   true   </op> </test>
 
97
<test>  <op name="contains" arg1="A" arg2="B">   false   </op> </test>
 
98
</case>
 
99
 
 
100
 
 
101
</run>