qualityAde.xsd 17.9 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.3"
	targetNamespace="https://transfer.hft-stuttgart.de/pages/citydoctor/qualityade/0.1.3"
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
	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>

48
49
50
51
52
53
54
55
56
57
58
59
60
	<complexType name="ValidationError">
	</complexType>

	<complexType name="RingError">
		<complexContent>
			<extension base="qual:ValidationError">
				<sequence>
					<element name="linearRingId" type="string" />
				</sequence>
			</extension>
		</complexContent>
	</complexType>

61
62
63
64
	<complexType name="GE_R_CONSECUTIVE_POINTS_SAME">
		<annotation>
			<documentation>Consecutive point are the same</documentation>
		</annotation>
65
66
67
68
69
70
71
72
		<complexContent>
			<extension base="qual:RingError">
				<sequence>
					<element name="vertex1" type="gml:DirectPositionType" />
					<element name="vertex2" type="gml:DirectPositionType" />
				</sequence>
			</extension>
		</complexContent>
73
74
75
	</complexType>

	<complexType name="GE_R_TOO_FEW_POINTS">
76
77
78
		<complexContent>
			<extension base="qual:RingError" />
		</complexContent>
79
80
81
	</complexType>

	<complexType name="GE_R_SELF_INTERSECTION">
82
83
84
85
86
87
88
89
90
91
92
93
94
		<complexContent>
			<extension base="qual:RingError">
				<sequence>
					<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>
			</extension>
		</complexContent>
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
	</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">
113
114
115
		<complexContent>
			<extension base="qual:RingError" />
		</complexContent>
116
117
	</complexType>

118
	<complexType name="PolygonError">
119
120
121
122
123
		<sequence>
			<element name="polygonId" type="string" />
		</sequence>
	</complexType>

124
125
126
127
128
129
	<complexType name="GE_P_INTERIOR_DISCONNECTED">
		<complexContent>
			<extension base="qual:PolygonError" />
		</complexContent>
	</complexType>

130
	<complexType name="GE_P_INTERSECTING_RINGS">
131
132
133
134
135
136
137
138
		<complexContent>
			<extension base="qual:PolygonError">
				<sequence>
					<element name="linearRingId1" type="string" />
					<element name="linearRingId2" type="string" />
				</sequence>
			</extension>
		</complexContent>
139
140
141
	</complexType>

	<complexType name="GE_P_INNER_RINGS_NESTED">
142
143
144
145
146
147
148
149
		<complexContent>
			<extension base="qual:PolygonError">
				<sequence>
					<element name="linearRingId1" type="string" />
					<element name="linearRingId2" type="string" />
				</sequence>
			</extension>
		</complexContent>
150
151
152
	</complexType>

	<complexType name="GE_P_HOLE_OUTSIDE">
153
154
155
156
157
158
159
		<complexContent>
			<extension base="qual:PolygonError">
				<sequence>
					<element name="linearRingId" type="string" />
				</sequence>
			</extension>
		</complexContent>
160
161
162
163
	</complexType>

	<complexType
		name="GE_P_NON_PLANAR_POLYGON_NORMALS_DEVIATION">
164
165
166
167
168
169
170
		<complexContent>
			<extension base="qual:PolygonError">
				<sequence>
					<element name="deviation" type="gml:AngleType"></element>
				</sequence>
			</extension>
		</complexContent>
171
172
173
	</complexType>

	<complexType name="GE_P_ORIENTATION_RINGS_SAME">
174
175
176
177
178
179
180
		<complexContent>
			<extension base="qual:PolygonError">
				<sequence>
					<element name="linearRingId" type="string" />
				</sequence>
			</extension>
		</complexContent>
181
182
	</complexType>

183
	<complexType name="SolidError">
184
185
186
187
188
		<sequence>
			<element name="geometryId" type="string" />
		</sequence>
	</complexType>

189
190
191
192
193
194
	<complexType name="GE_S_ALL_POLYGONS_WRONG_ORIENTATION">
		<complexContent>
			<extension base="qual:SolidError" />
		</complexContent>
	</complexType>

195
	<complexType name="GE_S_POLYGON_WRONG_ORIENTATION">
196
197
198
199
200
201
202
		<complexContent>
			<extension base="qual:SolidError">
				<sequence>
					<element name="edges" type="qual:EdgeList" />
				</sequence>
			</extension>
		</complexContent>
203
204
205
206
207
208
209
210
211
212
	</complexType>

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

	<complexType name="GE_S_SELF_INTERSECTION">
213
214
215
216
217
218
219
220
		<complexContent>
			<extension base="qual:SolidError">
				<sequence>
					<element name="polygonId1" type="string" />
					<element name="polygonId2" type="string" />
				</sequence>
			</extension>
		</complexContent>
221
222
223
	</complexType>

	<complexType name="GE_S_NON_MANIFOLD_VERTEX">
224
225
226
227
228
229
230
		<complexContent>
			<extension base="qual:SolidError">
				<sequence>
					<element name="vertex" type="gml:DirectPositionType" />
				</sequence>
			</extension>
		</complexContent>
231
232
233
	</complexType>

	<complexType name="GE_S_NON_MANIFOLD_EDGE">
234
235
236
237
238
239
240
		<complexContent>
			<extension base="qual:SolidError">
				<sequence>
					<element name="edges" type="qual:EdgeList" />
				</sequence>
			</extension>
		</complexContent>
241
242
243
	</complexType>

	<complexType name="GE_S_NOT_CLOSED">
244
245
246
247
248
249
250
		<complexContent>
			<extension base="qual:SolidError">
				<sequence>
					<element name="edges" type="qual:EdgeList" />
				</sequence>
			</extension>
		</complexContent>
251
252
253
	</complexType>

	<complexType name="GE_S_TOO_FEW_POLYGONS">
254
255
256
		<complexContent>
			<extension base="qual:SolidError" />
		</complexContent>
257
258
259
	</complexType>

	<complexType name="GE_S_MULTIPLE_CONNECTED_COMPONENTS">
260
261
262
263
264
265
266
		<complexContent>
			<extension base="qual:SolidError">
				<sequence>
					<element name="components" type="qual:ComponentList" />
				</sequence>
			</extension>
		</complexContent>
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
	</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>
288
289
290
291
292
293
294
295
296
297
298
		<complexContent>
			<extension base="qual:PolygonError">
				<sequence>
					<element name="vertex" type="gml:DirectPositionType" />
					<element name="distance" type="gml:LengthType" />
				</sequence>
			</extension>
		</complexContent>
	</complexType>

	<complexType name="SemanticError">
299
300
	</complexType>

Matthias Betz's avatar
Matthias Betz committed
301
	<complexType name="SE_ATTRIBUTE_WRONG_VALUE">
302
303
304
305
306
307
308
309
310
		<complexContent>
			<extension base="qual:SemanticError">
				<sequence>
					<element name="childId" type="string" minOccurs="0" />
					<element name="attributeName" type="string" />
					<element name="generic" type="boolean" />
				</sequence>
			</extension>
		</complexContent>
311
312
	</complexType>

Matthias Betz's avatar
Matthias Betz committed
313
	<complexType name="SE_ATTRIBUTE_MISSING">
314
315
316
317
318
319
320
321
322
		<complexContent>
			<extension base="qual:SemanticError">
				<sequence>
					<element name="childId" type="string" minOccurs="0" />
					<element name="attributeName" type="string" />
					<element name="generic" type="boolean" />
				</sequence>
			</extension>
		</complexContent>
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
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
	</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
388
389
			<element name="SE_ATTRIBUTE_WRONG_VALUE"
				type="qual:SE_ATTRIBUTE_WRONG_VALUE" minOccurs="0"
390
				maxOccurs="unbounded" />
Matthias Betz's avatar
Matthias Betz committed
391
			<element name="SE_ATTRIBUTE_MISSING"
392
				type="qual:SE_ATTRIBUTE_MISSING" minOccurs="0" maxOccurs="unbounded" />
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
		</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
421
422
			<enumeration value="R_SE_ATTRIBUTES_EXISTING" />
			<enumeration value="R_SE_ATTRIBUTES_CORRECT" />
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
472
473
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
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
		</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
549
550
			<enumeration value="SE_ATTRIBUTE_WRONG_VALUE" />
			<enumeration value="SE_ATTRIBUTE_MISSING" />
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
		</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>
		<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>
	</complexType>
</schema>