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