Project

General

Profile

1 9238 tao
<?xml version="1.0" encoding="UTF-8"?>
2
<schema targetNamespace="http://www.opengis.net/gml" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" xmlns:smil20="http://www.w3.org/2001/SMIL20/" elementFormDefault="qualified" version="3.1.1.2">
3
	<annotation>
4
		<appinfo source="urn:opengis:specification:gml:schema-defaultStyle:v3.1.0">defaultStyle.xsd</appinfo>
5
		<documentation>
6
			Default Style schema for GML 3.1.1
7
8
			GML is an OGC Standard.
9
			Copyright (c) 2001,2005,2010 Open Geospatial Consortium.
10
			To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
11
		</documentation>
12
	</annotation>
13
	<!-- ==============================================================
14
       includes and imports
15
	============================================================== -->
16
	<include schemaLocation="gml.xsd"/>
17
	<include schemaLocation="measures.xsd"/>
18
	<import namespace="http://www.w3.org/2001/SMIL20/" schemaLocation="http://schemas.opengis.net/gml/3.1.1/smil/smil20.xsd"/>
19
	<!-- ==============================================================
20
      the Style property
21
	============================================================== -->
22
	<element name="defaultStyle" type="gml:DefaultStylePropertyType">
23
		<annotation>
24
			<documentation>Top-level property. Used in application schemas to "attach" the styling information to GML data. The link between the data and the style should be established through this property only.</documentation>
25
		</annotation>
26
	</element>
27
	<!-- =========================================================== -->
28
	<complexType name="DefaultStylePropertyType">
29
		<annotation>
30
			<documentation>[complexType of] Top-level property. Used in application schemas to "attach" the styling information to GML data. The link between the data and the style should be established through this property only.</documentation>
31
		</annotation>
32
		<sequence>
33
			<element ref="gml:_Style" minOccurs="0"/>
34
		</sequence>
35
		<attribute name="about" type="anyURI" use="optional"/>
36
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
37
	</complexType>
38
	<!-- ==============================================================
39
       the Style
40
	============================================================== -->
41
	<element name="_Style" type="gml:AbstractStyleType" abstract="true" substitutionGroup="gml:_GML">
42
		<annotation>
43
			<documentation>The value of the top-level property. It is an abstract element. Used as the head element of the substitution group for extensibility purposes.</documentation>
44
		</annotation>
45
	</element>
46
	<!-- =========================================================== -->
47
	<complexType name="AbstractStyleType" abstract="true">
48
		<annotation>
49
			<documentation>[complexType of] The value of the top-level property. It is an abstract element. Used as the head element of the substitution group for extensibility purposes.</documentation>
50
		</annotation>
51
		<complexContent>
52
			<extension base="gml:AbstractGMLType"/>
53
		</complexContent>
54
	</complexType>
55
	<!-- =========================================================== -->
56
	<element name="Style" type="gml:StyleType" substitutionGroup="gml:_Style">
57
		<annotation>
58
			<documentation>Predefined concrete value of the top-level property. Encapsulates all other styling information.</documentation>
59
		</annotation>
60
	</element>
61
	<!-- =========================================================== -->
62
	<complexType name="StyleType">
63
		<annotation>
64
			<documentation>[complexType of] Predefined concrete value of the top-level property. Encapsulates all other styling information.</documentation>
65
		</annotation>
66
		<complexContent>
67
			<extension base="gml:AbstractStyleType">
68
				<sequence>
69
					<element ref="gml:featureStyle" maxOccurs="unbounded"/>
70
					<element ref="gml:graphStyle" minOccurs="0"/>
71
				</sequence>
72
			</extension>
73
		</complexContent>
74
	</complexType>
75
	<!-- ==============================================================
76
      Feature Style Property
77
	============================================================== -->
78
	<element name="featureStyle" type="gml:FeatureStylePropertyType">
79
		<annotation>
80
			<documentation/>
81
		</annotation>
82
	</element>
83
	<!-- =========================================================== -->
84
	<complexType name="FeatureStylePropertyType">
85
		<annotation>
86
			<documentation/>
87
		</annotation>
88
		<sequence>
89
			<element ref="gml:FeatureStyle" minOccurs="0"/>
90
		</sequence>
91
		<attribute name="about" type="anyURI" use="optional"/>
92
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
93
	</complexType>
94
	<!-- ==============================================================
95
      Feature Style
96
	============================================================== -->
97
	<element name="FeatureStyle" type="gml:FeatureStyleType" substitutionGroup="gml:_GML">
98
		<annotation>
99
			<documentation>The style descriptor for features.</documentation>
100
		</annotation>
101
	</element>
102
	<!-- =========================================================== -->
103
	<complexType name="FeatureStyleType">
104
		<annotation>
105
			<documentation>[complexType of] The style descriptor for features.</documentation>
106
		</annotation>
107
		<complexContent>
108
			<extension base="gml:AbstractGMLType">
109
				<sequence>
110
					<element name="featureConstraint" type="string" minOccurs="0"/>
111
					<element ref="gml:geometryStyle" minOccurs="0" maxOccurs="unbounded"/>
112
					<element ref="gml:topologyStyle" minOccurs="0" maxOccurs="unbounded"/>
113
					<element ref="gml:labelStyle" minOccurs="0"/>
114
				</sequence>
115
				<attribute name="featureType" type="string" use="optional"/>
116
				<attribute name="baseType" type="string" use="optional"/>
117
				<attribute name="queryGrammar" type="gml:QueryGrammarEnumeration"/>
118
			</extension>
119
		</complexContent>
120
	</complexType>
121
	<!-- =========================================================== -->
122
	<simpleType name="QueryGrammarEnumeration">
123
		<annotation>
124
			<documentation>Used to specify the grammar of the feature query mechanism.</documentation>
125
		</annotation>
126
		<restriction base="string">
127
			<enumeration value="xpath"/>
128
			<enumeration value="xquery"/>
129
			<enumeration value="other"/>
130
		</restriction>
131
	</simpleType>
132
	<!-- ==============================================================
133
       Base style descriptor type (for geometry, topology, label, graph)
134
	============================================================== -->
135
	<complexType name="BaseStyleDescriptorType">
136
		<annotation>
137
			<documentation>Base complex type for geometry, topology, label and graph styles.</documentation>
138
		</annotation>
139
		<complexContent>
140
			<extension base="gml:AbstractGMLType">
141
				<sequence>
142
					<element name="spatialResolution" type="gml:ScaleType" minOccurs="0"/>
143
					<element name="styleVariation" type="gml:StyleVariationType" minOccurs="0" maxOccurs="unbounded"/>
144
					<element ref="smil20:animate" minOccurs="0" maxOccurs="unbounded"/>
145
					<element ref="smil20:animateMotion" minOccurs="0" maxOccurs="unbounded"/>
146
					<element ref="smil20:animateColor" minOccurs="0" maxOccurs="unbounded"/>
147
					<element ref="smil20:set" minOccurs="0" maxOccurs="unbounded"/>
148
				</sequence>
149
			</extension>
150
		</complexContent>
151
	</complexType>
152
	<!-- ==============================================================
153
       Geometry Style Property
154
	============================================================== -->
155
	<element name="geometryStyle" type="gml:GeometryStylePropertyType">
156
		<annotation>
157
			<documentation/>
158
		</annotation>
159
	</element>
160
	<!-- =========================================================== -->
161
	<complexType name="GeometryStylePropertyType">
162
		<annotation>
163
			<documentation/>
164
		</annotation>
165
		<sequence>
166
			<element ref="gml:GeometryStyle" minOccurs="0"/>
167
		</sequence>
168
		<attribute name="about" type="anyURI" use="optional"/>
169
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
170
	</complexType>
171
	<!-- ==============================================================
172
       Geometry Style
173
	============================================================== -->
174
	<element name="GeometryStyle" type="gml:GeometryStyleType" substitutionGroup="gml:_GML">
175
		<annotation>
176
			<documentation>The style descriptor for geometries of a feature.</documentation>
177
		</annotation>
178
	</element>
179
	<!-- =========================================================== -->
180
	<complexType name="GeometryStyleType">
181
		<annotation>
182
			<documentation>[complexType of] The style descriptor for geometries of a feature.</documentation>
183
		</annotation>
184
		<complexContent>
185
			<extension base="gml:BaseStyleDescriptorType">
186
				<sequence>
187
					<choice>
188
						<element ref="gml:symbol"/>
189
						<element name="style" type="string">
190
							<annotation>
191
								<appinfo>deprecated</appinfo>
192
								<documentation>Deprecated in GML version 3.1.0. Use symbol with inline content instead.</documentation>
193
							</annotation>
194
						</element>
195
					</choice>
196
					<element ref="gml:labelStyle" minOccurs="0"/>
197
				</sequence>
198
				<attribute name="geometryProperty" type="string"/>
199
				<attribute name="geometryType" type="string"/>
200
			</extension>
201
		</complexContent>
202
	</complexType>
203
	<!-- ==============================================================
204
       Topology Style Property
205
	============================================================== -->
206
	<element name="topologyStyle" type="gml:TopologyStylePropertyType">
207
		<annotation>
208
			<documentation/>
209
		</annotation>
210
	</element>
211
	<!-- =========================================================== -->
212
	<complexType name="TopologyStylePropertyType">
213
		<annotation>
214
			<documentation/>
215
		</annotation>
216
		<sequence>
217
			<element ref="gml:TopologyStyle" minOccurs="0"/>
218
		</sequence>
219
		<attribute name="about" type="anyURI" use="optional"/>
220
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
221
	</complexType>
222
	<!-- ==============================================================
223
       Topology Style
224
	============================================================== -->
225
	<element name="TopologyStyle" type="gml:TopologyStyleType" substitutionGroup="gml:_GML">
226
		<annotation>
227
			<documentation>The style descriptor for topologies of a feature. Describes individual topology elements styles.</documentation>
228
		</annotation>
229
	</element>
230
	<!-- =========================================================== -->
231
	<complexType name="TopologyStyleType">
232
		<annotation>
233
			<documentation>[complexType of] The style descriptor for topologies of a feature. Describes individual topology elements styles.</documentation>
234
		</annotation>
235
		<complexContent>
236
			<extension base="gml:BaseStyleDescriptorType">
237
				<sequence>
238
					<choice>
239
						<element ref="gml:symbol"/>
240
						<element name="style" type="string">
241
							<annotation>
242
								<appinfo>deprecated</appinfo>
243
								<documentation>Deprecated in GML version 3.1.0. Use symbol with inline content instead.</documentation>
244
							</annotation>
245
						</element>
246
					</choice>
247
					<element ref="gml:labelStyle" minOccurs="0"/>
248
				</sequence>
249
				<attribute name="topologyProperty" type="string"/>
250
				<attribute name="topologyType" type="string"/>
251
			</extension>
252
		</complexContent>
253
	</complexType>
254
	<!-- ==============================================================
255
       Label Style Property
256
	============================================================== -->
257
	<element name="labelStyle" type="gml:LabelStylePropertyType">
258
		<annotation>
259
			<documentation/>
260
		</annotation>
261
	</element>
262
	<!-- =========================================================== -->
263
	<complexType name="LabelStylePropertyType">
264
		<annotation>
265
			<documentation/>
266
		</annotation>
267
		<sequence>
268
			<element ref="gml:LabelStyle" minOccurs="0"/>
269
		</sequence>
270
		<attribute name="about" type="anyURI" use="optional"/>
271
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
272
	</complexType>
273
	<!-- ==============================================================
274
       Label Style
275
	============================================================== -->
276
	<element name="LabelStyle" type="gml:LabelStyleType" substitutionGroup="gml:_GML">
277
		<annotation>
278
			<documentation>The style descriptor for labels of a feature, geometry or topology.</documentation>
279
		</annotation>
280
	</element>
281
	<!-- =========================================================== -->
282
	<complexType name="LabelStyleType">
283
		<annotation>
284
			<documentation>[complexType of] The style descriptor for labels of a feature, geometry or topology.</documentation>
285
		</annotation>
286
		<complexContent>
287
			<extension base="gml:BaseStyleDescriptorType">
288
				<sequence>
289
					<element name="style" type="string"/>
290
					<element name="label" type="gml:LabelType"/>
291
				</sequence>
292
			</extension>
293
		</complexContent>
294
	</complexType>
295
	<!-- ==============================================================
296
      Graph Style Property
297
	============================================================== -->
298
	<element name="graphStyle" type="gml:GraphStylePropertyType">
299
		<annotation>
300
			<documentation/>
301
		</annotation>
302
	</element>
303
	<!-- =========================================================== -->
304
	<complexType name="GraphStylePropertyType">
305
		<annotation>
306
			<documentation/>
307
		</annotation>
308
		<sequence>
309
			<element ref="gml:GraphStyle" minOccurs="0"/>
310
		</sequence>
311
		<attribute name="about" type="anyURI" use="optional"/>
312
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
313
	</complexType>
314
	<!-- ==============================================================
315
      Graph Style
316
	============================================================== -->
317
	<element name="GraphStyle" type="gml:GraphStyleType" substitutionGroup="gml:_GML">
318
		<annotation>
319
			<documentation>The style descriptor for a graph consisting of a number of features. Describes graph-specific style attributes.</documentation>
320
		</annotation>
321
	</element>
322
	<!-- =========================================================== -->
323
	<complexType name="GraphStyleType">
324
		<annotation>
325
			<documentation>[complexType of] The style descriptor for a graph consisting of a number of features. Describes graph-specific style attributes.</documentation>
326
		</annotation>
327
		<complexContent>
328
			<extension base="gml:BaseStyleDescriptorType">
329
				<sequence>
330
					<element name="planar" type="boolean" minOccurs="0"/>
331
					<element name="directed" type="boolean" minOccurs="0"/>
332
					<element name="grid" type="boolean" minOccurs="0"/>
333
					<element name="minDistance" type="double" minOccurs="0"/>
334
					<element name="minAngle" type="double" minOccurs="0"/>
335
					<element name="graphType" type="gml:GraphTypeType" minOccurs="0"/>
336
					<element name="drawingType" type="gml:DrawingTypeType" minOccurs="0"/>
337
					<element name="lineType" type="gml:LineTypeType" minOccurs="0"/>
338
					<element name="aestheticCriteria" type="gml:AesheticCriteriaType" minOccurs="0" maxOccurs="unbounded"/>
339
				</sequence>
340
			</extension>
341
		</complexContent>
342
	</complexType>
343
	<!-- ==============================================================
344
      Common elements
345
	============================================================== -->
346
	<element name="symbol" type="gml:SymbolType">
347
		<annotation>
348
			<documentation>The symbol property. Extends the gml:AssociationType to allow for remote referencing of symbols.</documentation>
349
		</annotation>
350
	</element>
351
	<!-- =========================================================== -->
352
	<complexType name="SymbolType">
353
		<annotation>
354
			<documentation>[complexType of] The symbol property. Allows for remote referencing of symbols.</documentation>
355
		</annotation>
356
		<sequence>
357
			<any processContents="skip" minOccurs="0" maxOccurs="unbounded"/>
358
		</sequence>
359
		<attribute name="symbolType" type="gml:SymbolTypeEnumeration" use="required"/>
360
		<attribute ref="gml:transform" use="optional"/>
361
		<attribute name="about" type="anyURI" use="optional"/>
362
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
363
	</complexType>
364
	<!-- =========================================================== -->
365
	<simpleType name="SymbolTypeEnumeration">
366
		<annotation>
367
			<documentation>Used to specify the type of the symbol used.</documentation>
368
		</annotation>
369
		<restriction base="string">
370
			<enumeration value="svg"/>
371
			<enumeration value="xpath"/>
372
			<enumeration value="other"/>
373
		</restriction>
374
	</simpleType>
375
	<!-- =========================================================== -->
376
	<complexType name="LabelType" mixed="true">
377
		<annotation>
378
			<documentation>Label is mixed -- composed of text and XPath expressions used to extract the useful information from the feature.</documentation>
379
		</annotation>
380
		<sequence>
381
			<element name="LabelExpression" type="string" minOccurs="0" maxOccurs="unbounded"/>
382
		</sequence>
383
		<attribute ref="gml:transform" use="optional"/>
384
	</complexType>
385
	<!-- =========================================================== -->
386
	<attribute name="transform" type="string">
387
		<annotation>
388
			<documentation>Defines the geometric transformation of entities. There is no particular grammar defined for this value.</documentation>
389
		</annotation>
390
	</attribute>
391
	<!-- =========================================================== -->
392
	<complexType name="StyleVariationType">
393
		<annotation>
394
			<documentation>Used to vary individual graphic parameters and attributes of the style, symbol or text.</documentation>
395
		</annotation>
396
		<simpleContent>
397
			<extension base="string">
398
				<attribute name="styleProperty" type="string" use="required"/>
399
				<attribute name="featurePropertyRange" type="string" use="optional"/>
400
			</extension>
401
		</simpleContent>
402
	</complexType>
403
	<!-- ==============================================================
404
       Graph parameters types
405
	============================================================== -->
406
	<simpleType name="GraphTypeType">
407
		<annotation>
408
			<documentation>Graph-specific styling property.</documentation>
409
		</annotation>
410
		<restriction base="string">
411
			<enumeration value="TREE"/>
412
			<enumeration value="BICONNECTED"/>
413
		</restriction>
414
	</simpleType>
415
	<!-- =========================================================== -->
416
	<simpleType name="DrawingTypeType">
417
		<annotation>
418
			<documentation>Graph-specific styling property.</documentation>
419
		</annotation>
420
		<restriction base="string">
421
			<enumeration value="POLYLINE"/>
422
			<enumeration value="ORTHOGONAL"/>
423
		</restriction>
424
	</simpleType>
425
	<!-- =========================================================== -->
426
	<simpleType name="LineTypeType">
427
		<annotation>
428
			<documentation>Graph-specific styling property.</documentation>
429
		</annotation>
430
		<restriction base="string">
431
			<enumeration value="STRAIGHT"/>
432
			<enumeration value="BENT"/>
433
		</restriction>
434
	</simpleType>
435
	<!-- =========================================================== -->
436
	<simpleType name="AesheticCriteriaType">
437
		<annotation>
438
			<documentation>Graph-specific styling property.</documentation>
439
		</annotation>
440
		<restriction base="string">
441
			<enumeration value="MIN_CROSSINGS"/>
442
			<enumeration value="MIN_AREA"/>
443
			<enumeration value="MIN_BENDS"/>
444
			<enumeration value="MAX_BENDS"/>
445
			<enumeration value="UNIFORM_BENDS"/>
446
			<enumeration value="MIN_SLOPES"/>
447
			<enumeration value="MIN_EDGE_LENGTH"/>
448
			<enumeration value="MAX_EDGE_LENGTH"/>
449
			<enumeration value="UNIFORM_EDGE_LENGTH"/>
450
			<enumeration value="MAX_ANGULAR_RESOLUTION"/>
451
			<enumeration value="MIN_ASPECT_RATIO"/>
452
			<enumeration value="MAX_SYMMETRIES"/>
453
		</restriction>
454
	</simpleType>
455
</schema>