qualityAde.xsd 15.5 KB
Newer Older
Matthias Betz's avatar
Matthias Betz committed
1
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
Matthias Betz's avatar
Matthias Betz committed
2
3
4
5
6
<schema xmlns="http://www.w3.org/2001/XMLSchema"
	xmlns:qual="https://transfer.hft-stuttgart.de/pages/qualityade/0.1"
	targetNamespace="https://transfer.hft-stuttgart.de/pages/qualityade/0.1"
	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">
Matthias Betz's avatar
Matthias Betz committed
7
8
9
10
11
12
13
14
15
16
17
18
	<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/3.1.1/base/gml.xsd" />

	<element name="validationResults" type="qual:validationResultsType"
Matthias Betz's avatar
Matthias Betz committed
19
		substitutionGroup="bldg:_GenericApplicationPropertyOfBuilding" />
Matthias Betz's avatar
Matthias Betz committed
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

	<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>

Matthias Betz's avatar
Matthias Betz committed
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
	<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="string" />
			<element name="edge1" type="qual:edgeType" />
			<element name="edge2" type="qual:edgeType" />
			<element name="vertex" type="gml:DirectPositionType" />
		</sequence>
	</complexType>

	<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="geoemtryId" type="string" />
		</sequence>
	</complexType>

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

	<complexType name="GE_S_SELF_INTERSECTION">
		<sequence>
			<element name="geometryId" 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="edge" type="qual:edgeType" maxOccurs="unbounded" />
		</sequence>
	</complexType>

	<complexType name="GE_S_NOT_CLOSED">
		<sequence>
			<element name="geometryId" type="string" />
			<element name="edge" type="qual:edgeType" maxOccurs="unbounded" />
		</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:componentsType" maxOccurs="unbounded" />
		</sequence>
	</complexType>

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

Matthias Betz's avatar
Matthias Betz committed
186
187
188
189
190
191
192
193
194
195
196
197
198
	<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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
	<complexType name="SEM_ATTRIBUTE_WRONG_VALUE">
		<sequence>
			<element name="childId" type="string" />
			<element name="attributeName" type="string" />
			<element name="generic" type="boolean" />
		</sequence>
	</complexType>

	<complexType name="SEM_ATTRIBUTE_MISSING">
		<sequence>
			<element name="childId" type="string" />
			<element name="attributeName" type="string" />
			<element name="generic" type="boolean" />
		</sequence>
	</complexType>

Matthias Betz's avatar
Matthias Betz committed
215
216
217
218
219
220
221
	<complexType name="validationResultsType">
		<annotation>
			<documentation>Data structure containing validation results for
				features
			</documentation>
		</annotation>
		<sequence>
Matthias Betz's avatar
Matthias Betz committed
222
223
224
			<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" />
Matthias Betz's avatar
Matthias Betz committed
225
226
			<element name="GE_R_CONSECUTIVE_POINTS_SAME" type="qual:GE_R_CONSECUTIVE_POINTS_SAME" minOccurs="0"
				maxOccurs="unbounded" />
Matthias Betz's avatar
Matthias Betz committed
227
228
229
230
231

			<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" />
Matthias Betz's avatar
Matthias Betz committed
232
233
			<element name="GE_P_NON_PLANAR_POLYGON_DISTANCE_PLANE" type="qual:GE_P_NON_PLANAR_POLYGON_DISTANCE_PLANE"
				minOccurs="0" maxOccurs="unbounded" />
Matthias Betz's avatar
Matthias Betz committed
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
			<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" />

			<element name="SEM_ATTRIBUTE_WRONG_VALUE" type="qual:SEM_ATTRIBUTE_WRONG_VALUE" minOccurs="0"
				maxOccurs="unbounded" />
			<element name="SEM_ATTRIBUTE_MISSING" type="qual:SEM_ATTRIBUTE_MISSING" minOccurs="0" maxOccurs="unbounded" />
Matthias Betz's avatar
Matthias Betz committed
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
		</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_R_NOT_CLOSED" />
			<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
286
287
			<enumeration value="R_SEM_ATTRIBUTES_EXISTING" />
			<enumeration value="R_SEM_ATTRIBUTES_CORRECT" />
Matthias Betz's avatar
Matthias Betz committed
288
289
290
291
		</restriction>
	</simpleType>

	<complexType name="parameter">
Matthias Betz's avatar
Matthias Betz committed
292
293
294
295
296
297
		<simpleContent>
			<extension base="string">
				<attribute name="name" type="string" use="required" />
				<attribute name="uom" type="string" use="optional" />
			</extension>
		</simpleContent>
Matthias Betz's avatar
Matthias Betz committed
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
	</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>
Matthias Betz's avatar
Matthias Betz committed
319
			<element name="globalParameters" type="qual:globalParameterType" />
Matthias Betz's avatar
Matthias Betz committed
320
			<element name="requirement" type="qual:requirementType" maxOccurs="unbounded" />
Matthias Betz's avatar
Matthias Betz committed
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
			<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>

Matthias Betz's avatar
Matthias Betz committed
342
	<complexType name="globalParameterType">
Matthias Betz's avatar
Matthias Betz committed
343
		<sequence>
Matthias Betz's avatar
Matthias Betz committed
344
			<element name="parameter" type="qual:parameter" maxOccurs="unbounded" />
Matthias Betz's avatar
Matthias Betz committed
345
346
347
348
349
350
351
352
353
		</sequence>
	</complexType>

	<complexType name="statisticsType">
		<annotation>
			<documentation>Statistics structure containing information about end
				result of checking process
			</documentation>
		</annotation>
Matthias Betz's avatar
Matthias Betz committed
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
		<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">
Matthias Betz's avatar
Matthias Betz committed
372
373
374
375
376
		<simpleContent>
			<extension base="int">
				<attribute name="name" type="qual:errorId"></attribute>
			</extension>
		</simpleContent>
Matthias Betz's avatar
Matthias Betz committed
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
	</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" />
			<enumeration value="SEM_ATTRIBUTE_WRONG_VALUE" />
			<enumeration value="SEM_ATTRIBUTE_MISSING" />
		</restriction>
	</simpleType>

	<complexType name="featureStatistics">
Matthias Betz's avatar
Matthias Betz committed
406
407
408
409
410
		<simpleContent>
			<extension base="int">
				<attribute name="numChecked" type="int" />
			</extension>
		</simpleContent>
Matthias Betz's avatar
Matthias Betz committed
411
412
	</complexType>

Matthias Betz's avatar
Matthias Betz committed
413
414
	<element name="validation" type="qual:validationType"
		substitutionGroup="core:_GenericApplicationPropertyOfCityModel" />
Matthias Betz's avatar
Matthias Betz committed
415
416
417
418
419
420
421

	<complexType name="validationType">
		<annotation>
			<documentation>Data structure containing the validation plan and
				statistics of a validation process
			</documentation>
		</annotation>
Matthias Betz's avatar
Matthias Betz committed
422
423
424
425
426
427
		<!-- <complexContent> <extension base="gml:AbstractFeatureType"> -->
		<sequence>
			<element name="validationPlan" type="qual:validationPlanType" maxOccurs="1" />
			<element name="statistics" type="qual:statisticsType" maxOccurs="1" />
		</sequence>
		<!-- </extension> </complexContent> -->
Matthias Betz's avatar
Matthias Betz committed
428
429
	</complexType>
</schema>