qualityAde.xsd 16.5 KB
Newer Older
1
2
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
3
4
	xmlns:qual="https://transfer.hft-stuttgart.de/pages/citydoctor/qualityade/0.1.2"
	targetNamespace="https://transfer.hft-stuttgart.de/pages/citydoctor/qualityade/0.1.2"
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
	xmlns:core="http://www.opengis.net/citygml/2.0"
	xmlns:bldg="http://www.opengis.net/citygml/building/2.0"
	xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified"
	version="1.0">
	<import namespace="http://www.opengis.net/citygml/2.0"
		schemaLocation="http://schemas.opengis.net/citygml/2.0/cityGMLBase.xsd" />
	<import namespace="http://www.opengis.net/citygml/building/2.0"
		schemaLocation="http://schemas.opengis.net/citygml/building/2.0/building.xsd" />
	<import
		namespace="http://www.opengis.net/citygml/appearance/2.0"
		schemaLocation="http://schemas.opengis.net/citygml/appearance/2.0/appearance.xsd" />
	<import namespace="http://www.opengis.net/citygml/generics/2.0"
		schemaLocation="http://schemas.opengis.net/citygml/generics/2.0/generics.xsd" />
	<import namespace="http://www.opengis.net/gml"
		schemaLocation="http://schemas.opengis.net/gml/2.1.2/gml.xsd" />

	<element name="validationResult"
		type="qual:validationResultType"
		substitutionGroup="core:_GenericApplicationPropertyOfCityObject" />

	<simpleType name="result" final="restriction">
		<annotation>
			<documentation>Enumeration for status of check result</documentation>
		</annotation>
		<restriction base="string">
			<enumeration value="ERROR">
				<annotation>
					<documentation>One or more errors were found</documentation>
				</annotation>
			</enumeration>
			<enumeration value="NOT_CHECKED">
				<annotation>
					<documentation>Feature was not checked</documentation>
				</annotation>
			</enumeration>
			<enumeration value="OK">
				<annotation>
					<documentation>No errors were found</documentation>
				</annotation>
			</enumeration>
		</restriction>
	</simpleType>

	<complexType name="GE_R_CONSECUTIVE_POINTS_SAME">
		<annotation>
			<documentation>Consecutive point are the same</documentation>
		</annotation>
		<sequence>
			<element name="linearRingId" type="string" />
			<element name="vertex1" type="gml:DirectPositionType" />
			<element name="vertex2" type="gml:DirectPositionType" />
		</sequence>
	</complexType>

	<complexType name="GE_R_TOO_FEW_POINTS">
		<sequence>
			<element name="linearRingId" type="string" />
		</sequence>
	</complexType>

	<complexType name="GE_R_SELF_INTERSECTION">
		<sequence>
			<element name="linearRingId" type="string" />
			<element name="type" type="qual:ringSelfIntType" />
			<element name="edge1" type="qual:edgeType" minOccurs="0" />
			<element name="edge2" type="qual:edgeType" minOccurs="0" />
			<element name="vertex1" type="gml:DirectPositionType"
				minOccurs="0" />
			<element name="vertex2" type="gml:DirectPositionType"
				minOccurs="0" />
		</sequence>
	</complexType>

	<simpleType name="ringSelfIntType">
		<restriction base="string">
			<enumeration value="DUPLICATE_POINT" />
			<enumeration value="POINT_TOUCHES_EDGE" />
			<enumeration value="EDGE_INTERSECTS_EDGE" />
		</restriction>
	</simpleType>

	<complexType name="edgeType">
		<sequence>
			<element name="from" type="gml:DirectPositionType" />
			<element name="to" type="gml:DirectPositionType" />
		</sequence>
	</complexType>

	<complexType name="GE_R_NOT_CLOSED">
		<sequence>
			<element name="linearRingId" type="string" />
		</sequence>
	</complexType>

	<complexType name="GE_P_INTERIOR_DISCONNECTED">
		<sequence>
			<element name="polygonId" type="string" />
		</sequence>
	</complexType>

	<complexType name="GE_P_INTERSECTING_RINGS">
		<sequence>
			<element name="polygonId" type="string" />
			<element name="linearRingId1" type="string" />
			<element name="linearRingId2" type="string" />
		</sequence>
	</complexType>

	<complexType name="GE_P_INNER_RINGS_NESTED">
		<sequence>
			<element name="polygonId" type="string" />
			<element name="linearRingId1" type="string" />
			<element name="linearRingId2" type="string" />
		</sequence>
	</complexType>

	<complexType name="GE_P_HOLE_OUTSIDE">
		<sequence>
			<element name="polygonId" type="string" />
			<element name="linearRingId" type="string" />
		</sequence>
	</complexType>

	<complexType
		name="GE_P_NON_PLANAR_POLYGON_NORMALS_DEVIATION">
		<sequence>
			<element name="polygonId" type="string" />
			<element name="deviation" type="gml:AngleType"></element>
		</sequence>
	</complexType>

	<complexType name="GE_P_ORIENTATION_RINGS_SAME">
		<sequence>
			<element name="polygonId" type="string" />
			<element name="linearRingId" type="string" />
		</sequence>
	</complexType>

	<complexType name="GE_S_ALL_POLYGONS_WRONG_ORIENTATION">
		<sequence>
			<element name="geometryId" type="string" />
		</sequence>
	</complexType>

	<complexType name="GE_S_POLYGON_WRONG_ORIENTATION">
		<sequence>
			<element name="geometryId" type="string" />
			<element name="edges" type="qual:EdgeList" />
		</sequence>
	</complexType>

	<complexType name="EdgeList">
		<sequence>
			<element name="edge" type="qual:edgeType"
				maxOccurs="unbounded" />
		</sequence>
	</complexType>

	<complexType name="GE_S_SELF_INTERSECTION">
		<sequence>
			<element name="geometryId" type="string" />
			<element name="polygonId1" type="string" />
			<element name="polygonId2" type="string" />
		</sequence>
	</complexType>

	<complexType name="GE_S_NON_MANIFOLD_VERTEX">
		<sequence>
			<element name="geometryId" type="string" />
			<element name="vertex" type="gml:DirectPositionType" />
		</sequence>
	</complexType>

	<complexType name="GE_S_NON_MANIFOLD_EDGE">
		<sequence>
			<element name="geometryId" type="string" />
			<element name="edges" type="qual:EdgeList" />
		</sequence>
	</complexType>

	<complexType name="GE_S_NOT_CLOSED">
		<sequence>
			<element name="geometryId" type="string" />
			<element name="edges" type="qual:EdgeList" />
		</sequence>
	</complexType>

	<complexType name="GE_S_TOO_FEW_POLYGONS">
		<sequence>
			<element name="geometryId" type="string" />
		</sequence>
	</complexType>

	<complexType name="GE_S_MULTIPLE_CONNECTED_COMPONENTS">
		<sequence>
			<element name="geometryId" type="string" />
			<element name="components" type="qual:ComponentList" />
		</sequence>
	</complexType>

	<complexType name="ComponentList">
		<sequence>
			<element name="component" type="qual:componentType"
				maxOccurs="unbounded" />
		</sequence>
	</complexType>

	<complexType name="componentType">
		<sequence>
			<element name="polygonId" type="string" maxOccurs="unbounded" />
		</sequence>
	</complexType>

	<complexType name="GE_P_NON_PLANAR_POLYGON_DISTANCE_PLANE">
		<annotation>
			<documentation>A planarity error with a point too far from the
				regression plane
			</documentation>
		</annotation>
		<sequence>
			<element name="polygonId" type="string" />
			<element name="vertex" type="gml:DirectPositionType" />
			<element name="distance" type="gml:LengthType" />
		</sequence>
	</complexType>

Matthias Betz's avatar
Matthias Betz committed
231
	<complexType name="SE_ATTRIBUTE_WRONG_VALUE">
232
233
234
235
236
237
238
		<sequence>
			<element name="childId" type="string" minOccurs="0"/>
			<element name="attributeName" type="string" />
			<element name="generic" type="boolean" />
		</sequence>
	</complexType>

Matthias Betz's avatar
Matthias Betz committed
239
	<complexType name="SE_ATTRIBUTE_MISSING">
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
		<sequence>
			<element name="childId" type="string" minOccurs="0" />
			<element name="attributeName" type="string" />
			<element name="generic" type="boolean" />
		</sequence>
	</complexType>

	<complexType name="validationResultType">
		<annotation>
			<documentation>Data structure containing validation results for
				features
			</documentation>
		</annotation>
		<sequence>
			<element name="GE_R_TOO_FEW_POINTS"
				type="qual:GE_R_TOO_FEW_POINTS" minOccurs="0" maxOccurs="unbounded" />
			<element name="GE_R_SELF_INTERSECTION"
				type="qual:GE_R_SELF_INTERSECTION" minOccurs="0"
				maxOccurs="unbounded" />
			<element name="GE_R_NOT_CLOSED" type="qual:GE_R_NOT_CLOSED"
				minOccurs="0" maxOccurs="unbounded" />
			<element name="GE_R_CONSECUTIVE_POINTS_SAME"
				type="qual:GE_R_CONSECUTIVE_POINTS_SAME" minOccurs="0"
				maxOccurs="unbounded" />

			<element name="GE_P_INTERIOR_DISCONNECTED"
				type="qual:GE_P_INTERIOR_DISCONNECTED" minOccurs="0"
				maxOccurs="unbounded" />
			<element name="GE_P_INTERSECTING_RINGS"
				type="qual:GE_P_INTERSECTING_RINGS" minOccurs="0"
				maxOccurs="unbounded" />
			<element name="GE_P_NON_PLANAR_POLYGON_DISTANCE_PLANE"
				type="qual:GE_P_NON_PLANAR_POLYGON_DISTANCE_PLANE" minOccurs="0"
				maxOccurs="unbounded" />
			<element name="GE_P_INNER_RINGS_NESTED"
				type="qual:GE_P_INNER_RINGS_NESTED" minOccurs="0"
				maxOccurs="unbounded" />
			<element name="GE_P_HOLE_OUTSIDE"
				type="qual:GE_P_HOLE_OUTSIDE" minOccurs="0" maxOccurs="unbounded" />
			<element name="GE_P_NON_PLANAR_POLYGON_NORMALS_DEVIATION"
				type="qual:GE_P_NON_PLANAR_POLYGON_NORMALS_DEVIATION" minOccurs="0"
				maxOccurs="unbounded" />
			<element name="GE_P_ORIENTATION_RINGS_SAME"
				type="qual:GE_P_ORIENTATION_RINGS_SAME" minOccurs="0"
				maxOccurs="unbounded" />

			<element name="GE_S_ALL_POLYGONS_WRONG_ORIENTATION"
				type="qual:GE_S_ALL_POLYGONS_WRONG_ORIENTATION" minOccurs="0"
				maxOccurs="unbounded" />
			<element name="GE_S_POLYGON_WRONG_ORIENTATION"
				type="qual:GE_S_POLYGON_WRONG_ORIENTATION" minOccurs="0"
				maxOccurs="unbounded" />
			<element name="GE_S_SELF_INTERSECTION"
				type="qual:GE_S_SELF_INTERSECTION" minOccurs="0"
				maxOccurs="unbounded" />
			<element name="GE_S_NON_MANIFOLD_VERTEX"
				type="qual:GE_S_NON_MANIFOLD_VERTEX" minOccurs="0"
				maxOccurs="unbounded" />
			<element name="GE_S_NON_MANIFOLD_EDGE"
				type="qual:GE_S_NON_MANIFOLD_EDGE" minOccurs="0"
				maxOccurs="unbounded" />
			<element name="GE_S_NOT_CLOSED" type="qual:GE_S_NOT_CLOSED"
				minOccurs="0" maxOccurs="unbounded" />
			<element name="GE_S_TOO_FEW_POLYGONS"
				type="qual:GE_S_TOO_FEW_POLYGONS" minOccurs="0"
				maxOccurs="unbounded" />
			<element name="GE_S_MULTIPLE_CONNECTED_COMPONENTS"
				type="qual:GE_S_MULTIPLE_CONNECTED_COMPONENTS" minOccurs="0"
				maxOccurs="unbounded" />

Matthias Betz's avatar
Matthias Betz committed
310
311
			<element name="SE_ATTRIBUTE_WRONG_VALUE"
				type="qual:SE_ATTRIBUTE_WRONG_VALUE" minOccurs="0"
312
				maxOccurs="unbounded" />
Matthias Betz's avatar
Matthias Betz committed
313
314
			<element name="SE_ATTRIBUTE_MISSING"
				type="qual:SE_ATTRIBUTE_MISSING" minOccurs="0"
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
				maxOccurs="unbounded" />
		</sequence>
		<attribute name="result" type="qual:result" />
	</complexType>

	<simpleType name="requirementID" final="restriction">
		<annotation>
			<documentation>Enumeration for available requirements</documentation>
		</annotation>
		<restriction base="string">
			<enumeration value="R_GE_R_TOO_FEW_POINTS" />
			<enumeration value="R_GE_R_NOT_CLOSED" />
			<enumeration value="R_GE_R_CONSECUTIVE_POINTS_SAME" />
			<enumeration value="R_GE_R_SELF_INTERSECTION" />
			<enumeration value="R_GE_P_NON_PLANAR" />
			<enumeration value="R_GE_P_INTERIOR_DISCONNECTED" />
			<enumeration value="R_GE_P_INTERSECTING_RINGS" />
			<enumeration value="R_GE_P_HOLE_OUTSIDE" />
			<enumeration value="R_GE_P_ORIENTATION_RINGS_SAME" />
			<enumeration value="R_GE_P_INNER_RINGS_NESTED" />
			<enumeration value="R_GE_S_TOO_FEW_POLYGONS" />
			<enumeration value="R_GE_S_NOT_CLOSED" />
			<enumeration value="R_GE_S_NON_MANIFOLD_EDGE" />
			<enumeration value="R_GE_S_POLYGON_WRONG_ORIENTATION" />
			<enumeration
				value="R_GE_S_ALL_POLYGONS_WRONG_ORIENTATION" />
			<enumeration value="R_GE_S_NON_MANIFOLD_VERTEX" />
			<enumeration value="R_GE_S_SELF_INTERSECTION" />
			<enumeration value="R_GE_S_MULTIPLE_CONNECTED_COMPONENTS" />
Matthias Betz's avatar
Matthias Betz committed
344
345
			<enumeration value="R_SE_ATTRIBUTES_EXISTING" />
			<enumeration value="R_SE_ATTRIBUTES_CORRECT" />
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
		</restriction>
	</simpleType>

	<complexType name="parameter">
		<simpleContent>
			<extension base="string">
				<attribute name="name" type="string" use="required" />
				<attribute name="uom" type="string" use="optional" />
			</extension>
		</simpleContent>
	</complexType>

	<complexType name="requirementType">
		<annotation>
			<documentation>Requirement structure for configuration purposes
			</documentation>
		</annotation>
		<sequence>
			<element name="parameter" type="qual:parameter" minOccurs="0"
				maxOccurs="unbounded" />
		</sequence>
		<attribute name="name" type="qual:requirementID" />
		<attribute name="enabled" type="boolean" />
	</complexType>

	<complexType name="validationPlanType">
		<annotation>
			<documentation>Validation plan structure containing information about
				the parameters used to perform the checks
			</documentation>
		</annotation>
		<sequence>
			<element name="globalParameters"
				type="qual:globalParameterType" />
			<element name="requirement" type="qual:requirementType"
				maxOccurs="unbounded" />
			<element name="filter" type="qual:filterType" minOccurs="1"
				maxOccurs="1" />
		</sequence>
	</complexType>

	<complexType name="filterType">
		<sequence>
			<element name="checking" type="qual:featureType"
				minOccurs="0" maxOccurs="unbounded" />
		</sequence>
	</complexType>

	<simpleType name="featureType">
		<restriction base="string">
			<enumeration value="BUILDING"></enumeration>
			<enumeration value="TRANSPORTATION"></enumeration>
			<enumeration value="VEGETATION"></enumeration>
			<enumeration value="BRIDGE"></enumeration>
			<enumeration value="WATER"></enumeration>
			<enumeration value="LAND"></enumeration>
		</restriction>
	</simpleType>

	<complexType name="globalParameterType">
		<sequence>
			<element name="parameter" type="qual:parameter"
				maxOccurs="unbounded" />
		</sequence>
	</complexType>

	<complexType name="statisticsType">
		<annotation>
			<documentation>Statistics structure containing information about end
				result of checking process
			</documentation>
		</annotation>
		<sequence>
			<element name="numErrorBuildings"
				type="qual:featureStatistics" />
			<element name="numErrorVegetation"
				type="qual:featureStatistics" />
			<element name="numErrorLandObjects"
				type="qual:featureStatistics" />
			<element name="numErrorBridgeObjects"
				type="qual:featureStatistics" />
			<element name="numErrorWaterObjects"
				type="qual:featureStatistics" />
			<element name="numErrorTransportation"
				type="qual:featureStatistics" />
			<element name="errorStatistics"
				type="qual:errorStatisticsType" />
		</sequence>
	</complexType>

	<complexType name="errorStatisticsType">
		<sequence>
			<element name="error" type="qual:errorType" minOccurs="0"
				maxOccurs="unbounded" />
		</sequence>
	</complexType>

	<complexType name="errorType">
		<simpleContent>
			<extension base="int">
				<attribute name="name" type="qual:errorId"></attribute>
			</extension>
		</simpleContent>
	</complexType>

	<simpleType name="errorId">
		<restriction base="string">
			<enumeration value="GE_R_TOO_FEW_POINTS" />
			<enumeration value="GE_R_NOT_CLOSED" />
			<enumeration value="GE_R_CONSECUTIVE_POINTS_SAME" />
			<enumeration value="GE_R_SELF_INTERSECTION" />
			<enumeration value="GE_R_NOT_CLOSED" />
			<enumeration value="GE_P_NON_PLANAR" />
			<enumeration value="GE_P_INTERIOR_DISCONNECTED" />
			<enumeration value="GE_P_INTERSECTING_RINGS" />
			<enumeration value="GE_P_HOLE_OUTSIDE" />
			<enumeration value="GE_P_ORIENTATION_RINGS_SAME" />
			<enumeration value="GE_P_INNER_RINGS_NESTED" />
			<enumeration value="GE_S_TOO_FEW_POLYGONS" />
			<enumeration value="GE_S_NOT_CLOSED" />
			<enumeration value="GE_S_NON_MANIFOLD_EDGE" />
			<enumeration value="GE_S_POLYGON_WRONG_ORIENTATION" />
			<enumeration value="GE_S_ALL_POLYGONS_WRONG_ORIENTATION" />
			<enumeration value="GE_S_NON_MANIFOLD_VERTEX" />
			<enumeration value="GE_S_SELF_INTERSECTION" />
			<enumeration value="GE_S_MULTIPLE_CONNECTED_COMPONENTS" />
Matthias Betz's avatar
Matthias Betz committed
472
473
			<enumeration value="SE_ATTRIBUTE_WRONG_VALUE" />
			<enumeration value="SE_ATTRIBUTE_MISSING" />
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
		</restriction>
	</simpleType>

	<complexType name="featureStatistics">
		<simpleContent>
			<extension base="int">
				<attribute name="numChecked" type="int" />
			</extension>
		</simpleContent>
	</complexType>

	<element name="validation" type="qual:validationType"
		substitutionGroup="core:_GenericApplicationPropertyOfCityModel" />

	<complexType name="validationType">
		<annotation>
			<documentation>Data structure containing the validation plan and
				statistics of a validation process
			</documentation>
		</annotation>
		<!-- <complexContent> <extension base="gml:AbstractFeatureType"> -->
		<sequence>
			<element name="validationDate" type="dateTime" />
			<element name="validationSoftware" type="string" />
			<element name="validationPlan" type="qual:validationPlanType"
				maxOccurs="1" />
			<element name="statistics" type="qual:statisticsType"
				maxOccurs="1" />
		</sequence>
		<!-- </extension> </complexContent> -->
	</complexType>
</schema>