Project

General

Profile

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