Project

General

Profile

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