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

« back to all changes in this revision

Viewing changes to test/vivid/TestFunctionPP.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>PP - point contained in both A and B</desc>
 
6
  <a>
 
7
    POINT(100 100)
 
8
  </a>
 
9
  <b>
 
10
    POINT(100 100)
 
11
  </b>
 
12
<test>
 
13
  <op name="intersection" arg1="A" arg2="B">
 
14
    POINT(100 100)
 
15
  </op>
 
16
</test>
 
17
</case>
 
18
 
 
19
<case>
 
20
  <desc>PP - A different from B</desc>
 
21
  <a>
 
22
    POINT(100 100)
 
23
  </a>
 
24
  <b>
 
25
    POINT(200 200)
 
26
  </b>
 
27
<test>
 
28
  <op name="intersection" arg1="A" arg2="B">
 
29
    GEOMETRYCOLLECTION EMPTY
 
30
  </op>
 
31
</test>
 
32
<test>
 
33
  <op name="union" arg1="A" arg2="B">
 
34
    MULTIPOINT(100 100, 200 200)
 
35
  </op>
 
36
</test>
 
37
<test>
 
38
  <op name="difference" arg1="A" arg2="B">
 
39
    POINT(100 100)
 
40
  </op>
 
41
</test>
 
42
<test>
 
43
  <op name="symdifference" arg1="A" arg2="B">
 
44
    MULTIPOINT(100 100, 200 200)
 
45
  </op>
 
46
</test>
 
47
</case>
 
48
 
 
49
<case>
 
50
  <desc>PmP - point in A contained in B</desc>
 
51
  <a>
 
52
    POINT(100 100)
 
53
  </a>
 
54
  <b>
 
55
    MULTIPOINT(100 100, 200 200)
 
56
  </b>
 
57
<test>
 
58
  <op name="intersection" arg1="A" arg2="B">
 
59
    POINT(100 100)
 
60
  </op>
 
61
</test>
 
62
<test>
 
63
  <op name="union" arg1="A" arg2="B">
 
64
    MULTIPOINT(100 100, 200 200)
 
65
  </op>
 
66
</test>
 
67
<test>
 
68
  <op name="difference" arg1="A" arg2="B">
 
69
    GEOMETRYCOLLECTION EMPTY
 
70
  </op>
 
71
</test>
 
72
<test>
 
73
  <op name="symdifference" arg1="A" arg2="B">
 
74
    POINT(200 200)
 
75
  </op>
 
76
</test>
 
77
</case>
 
78
 
 
79
<case>
 
80
  <desc>mPmP - points in A only, B only, and in both</desc>
 
81
  <a>
 
82
    MULTIPOINT(100 100, 200 200, 300 300, 500 500)
 
83
  </a>
 
84
  <b>
 
85
    MULTIPOINT(100 100, 200 200, 400 400, 600 600)
 
86
  </b>
 
87
<test>
 
88
  <op name="intersection" arg1="A" arg2="B">
 
89
    MULTIPOINT(100 100, 200 200)
 
90
  </op>
 
91
</test>
 
92
<test>
 
93
  <op name="union" arg1="A" arg2="B">
 
94
    MULTIPOINT(100 100, 200 200, 300 300, 400 400, 500 500, 600 600)
 
95
  </op>
 
96
</test>
 
97
<test>
 
98
  <op name="difference" arg1="A" arg2="B">
 
99
    MULTIPOINT(300 300, 500 500)
 
100
  </op>
 
101
</test>
 
102
<test>
 
103
  <op name="symdifference" arg1="A" arg2="B">
 
104
    MULTIPOINT(300 300, 400 400, 500 500, 600 600)
 
105
  </op>
 
106
</test>
 
107
</case>
 
108
 
 
109
<case>
 
110
  <desc>PP - point contained in both A and B</desc>
 
111
  <a>
 
112
    POINT(80 200)
 
113
  </a>
 
114
  <b>
 
115
    POINT(80 200)
 
116
  </b>
 
117
<test>
 
118
  <op name="getboundary" arg1="A">
 
119
    GEOMETRYCOLLECTION EMPTY
 
120
  </op>
 
121
</test>
 
122
<test>
 
123
  <op name="convexhull" arg1="A">
 
124
    POINT(80 200)
 
125
  </op>
 
126
</test>
 
127
<test>
 
128
  <op name="intersection" arg1="A" arg2="B">
 
129
    POINT(80 200)
 
130
  </op>
 
131
</test>
 
132
<test>
 
133
  <op name="union" arg1="A" arg2="B">
 
134
    POINT(80 200)
 
135
  </op>
 
136
</test>
 
137
<test>
 
138
  <op name="difference" arg1="A" arg2="B">
 
139
    GEOMETRYCOLLECTION EMPTY
 
140
  </op>
 
141
</test>
 
142
<test>
 
143
  <op name="symdifference" arg1="A" arg2="B">
 
144
    GEOMETRYCOLLECTION EMPTY
 
145
  </op>
 
146
</test>
 
147
</case>
 
148
 
 
149
<case>
 
150
  <desc>PP - A different from B</desc>
 
151
  <a>
 
152
    POINT(80 200)
 
153
  </a>
 
154
  <b>
 
155
    POINT(260 80)
 
156
  </b>
 
157
<test>
 
158
  <op name="getboundary" arg1="A">
 
159
    GEOMETRYCOLLECTION EMPTY
 
160
  </op>
 
161
</test>
 
162
<test>
 
163
  <op name="convexhull" arg1="A">
 
164
    POINT(80 200)
 
165
  </op>
 
166
</test>
 
167
<test>
 
168
  <op name="intersection" arg1="A" arg2="B">
 
169
    GEOMETRYCOLLECTION EMPTY
 
170
  </op>
 
171
</test>
 
172
<test>
 
173
  <op name="union" arg1="A" arg2="B">
 
174
    MULTIPOINT(80 200, 260 80)
 
175
  </op>
 
176
</test>
 
177
<test>
 
178
  <op name="difference" arg1="A" arg2="B">
 
179
    POINT(80 200)
 
180
  </op>
 
181
</test>
 
182
<test>
 
183
  <op name="symdifference" arg1="A" arg2="B">
 
184
    MULTIPOINT(80 200, 260 80)
 
185
  </op>
 
186
</test>
 
187
</case>
 
188
 
 
189
<case>
 
190
  <desc>PP - A different from B, same y</desc>
 
191
  <a>
 
192
    POINT(60 260)
 
193
  </a>
 
194
  <b>
 
195
    POINT(120 260)
 
196
  </b>
 
197
<test>
 
198
  <op name="getboundary" arg1="A">
 
199
    GEOMETRYCOLLECTION EMPTY
 
200
  </op>
 
201
</test>
 
202
<test>
 
203
  <op name="convexhull" arg1="A">
 
204
    POINT(60 260)
 
205
  </op>
 
206
</test>
 
207
<test>
 
208
  <op name="intersection" arg1="A" arg2="B">
 
209
    GEOMETRYCOLLECTION EMPTY
 
210
  </op>
 
211
</test>
 
212
<test>
 
213
  <op name="union" arg1="A" arg2="B">
 
214
    MULTIPOINT(60 260, 120 260)
 
215
  </op>
 
216
</test>
 
217
<test>
 
218
  <op name="difference" arg1="A" arg2="B">
 
219
    POINT(60 260)
 
220
  </op>
 
221
</test>
 
222
<test>
 
223
  <op name="symdifference" arg1="A" arg2="B">
 
224
    MULTIPOINT(60 260, 120 260)
 
225
  </op>
 
226
</test>
 
227
</case>
 
228
 
 
229
<case>
 
230
  <desc>PP - A different from B, same x</desc>
 
231
  <a>
 
232
    POINT(80 80)
 
233
  </a>
 
234
  <b>
 
235
    POINT(80 280)
 
236
  </b>
 
237
<test>
 
238
  <op name="getboundary" arg1="A">
 
239
    GEOMETRYCOLLECTION EMPTY
 
240
  </op>
 
241
</test>
 
242
<test>
 
243
  <op name="convexhull" arg1="A">
 
244
    POINT(80 80)
 
245
  </op>
 
246
</test>
 
247
<test>
 
248
  <op name="intersection" arg1="A" arg2="B">
 
249
    GEOMETRYCOLLECTION EMPTY
 
250
  </op>
 
251
</test>
 
252
<test>
 
253
  <op name="union" arg1="A" arg2="B">
 
254
    MULTIPOINT(80 80, 80 280)
 
255
  </op>
 
256
</test>
 
257
<test>
 
258
  <op name="difference" arg1="A" arg2="B">
 
259
    POINT(80 80)
 
260
  </op>
 
261
</test>
 
262
<test>
 
263
  <op name="symdifference" arg1="A" arg2="B">
 
264
    MULTIPOINT(80 80, 80 280)
 
265
  </op>
 
266
</test>
 
267
</case>
 
268
 
 
269
</run>