1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<schema targetNamespace="http://www.opengis.net/gml" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:sch="http://www.ascc.net/xml/schematron" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="3.1.1.2">
|
3
|
<annotation>
|
4
|
<appinfo source="urn:opengis:specification:gml:schema-xsd:basicTypes:3.1.1">basicTypes.xsd</appinfo>
|
5
|
<documentation>
|
6
|
Generic simpleContent components for use in GML
|
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
|
<include schemaLocation="gml.xsd"/>
|
14
|
<!-- =========================================================== -->
|
15
|
<simpleType name="NullEnumeration">
|
16
|
<annotation>
|
17
|
<documentation> Some common reasons for a null value:
|
18
|
|
19
|
innapplicable - the object does not have a value
|
20
|
missing - The correct value is not readily available to the sender of this data.
|
21
|
Furthermore, a correct value may not exist.
|
22
|
template - the value will be available later
|
23
|
unknown - The correct value is not known to, and not computable by, the sender of this data.
|
24
|
However, a correct value probably exists.
|
25
|
withheld - the value is not divulged
|
26
|
|
27
|
other:reason - as indicated by "reason" string
|
28
|
|
29
|
Specific communities may agree to assign more strict semantics when these terms are used in a particular context.
|
30
|
</documentation>
|
31
|
</annotation>
|
32
|
<union>
|
33
|
<simpleType>
|
34
|
<restriction base="string">
|
35
|
<enumeration value="inapplicable"/>
|
36
|
<enumeration value="missing"/>
|
37
|
<enumeration value="template"/>
|
38
|
<enumeration value="unknown"/>
|
39
|
<enumeration value="withheld"/>
|
40
|
</restriction>
|
41
|
</simpleType>
|
42
|
<simpleType>
|
43
|
<restriction base="string">
|
44
|
<pattern value="other:\w{2,}"/>
|
45
|
</restriction>
|
46
|
</simpleType>
|
47
|
</union>
|
48
|
</simpleType>
|
49
|
<!-- =========================================================== -->
|
50
|
<simpleType name="NullType">
|
51
|
<annotation>
|
52
|
<documentation>Utility type for null elements. The value may be selected from one of the enumerated tokens, or may be a URI in which case this should identify a resource which describes the reason for the null. </documentation>
|
53
|
</annotation>
|
54
|
<union memberTypes="gml:NullEnumeration anyURI"/>
|
55
|
</simpleType>
|
56
|
<!-- =========================================================== -->
|
57
|
<element name="Null" type="gml:NullType"/>
|
58
|
<!-- ===================================================== -->
|
59
|
<simpleType name="SignType">
|
60
|
<annotation>
|
61
|
<documentation>Utility type used in various places
|
62
|
- e.g. to indicate the direction of topological objects;
|
63
|
"+" for forwards, or "-" for backwards.</documentation>
|
64
|
</annotation>
|
65
|
<restriction base="string">
|
66
|
<enumeration value="-"/>
|
67
|
<enumeration value="+"/>
|
68
|
</restriction>
|
69
|
</simpleType>
|
70
|
<!-- =========================================================== -->
|
71
|
<simpleType name="booleanOrNull">
|
72
|
<annotation>
|
73
|
<documentation>Union of the XML Schema boolean type and the GML Nulltype. An element which uses this type may have content which is either a boolean {0,1,true,false} or a value from Nulltype</documentation>
|
74
|
</annotation>
|
75
|
<union memberTypes="gml:NullEnumeration boolean anyURI"/>
|
76
|
</simpleType>
|
77
|
<!-- =========================================================== -->
|
78
|
<simpleType name="booleanOrNullList">
|
79
|
<annotation>
|
80
|
<documentation>XML List based on the union type defined above. An element declared with this type contains a space-separated list of boolean values {0,1,true,false} with null values interspersed as needed</documentation>
|
81
|
</annotation>
|
82
|
<list itemType="gml:booleanOrNull"/>
|
83
|
</simpleType>
|
84
|
<!-- =========================================================== -->
|
85
|
<simpleType name="booleanList">
|
86
|
<annotation>
|
87
|
<documentation>XML List based on XML Schema boolean type. An element of this type contains a space-separated list of boolean values {0,1,true,false}</documentation>
|
88
|
</annotation>
|
89
|
<list itemType="boolean"/>
|
90
|
</simpleType>
|
91
|
<!-- =========================================================== -->
|
92
|
<simpleType name="stringOrNull">
|
93
|
<annotation>
|
94
|
<documentation>Union of the XML Schema string type and the GML Nulltype. An element which uses this type may have content which is either a string or a value from Nulltype. Note that a "string" may contain whitespace. </documentation>
|
95
|
</annotation>
|
96
|
<union memberTypes="gml:NullEnumeration string anyURI"/>
|
97
|
</simpleType>
|
98
|
<!-- =========================================================== -->
|
99
|
<simpleType name="NameOrNull">
|
100
|
<annotation>
|
101
|
<documentation>Union of the XML Schema Name type and the GML Nulltype. An element which uses this type may have content which is either a Name or a value from Nulltype. Note that a "Name" may not contain whitespace. </documentation>
|
102
|
</annotation>
|
103
|
<union memberTypes="gml:NullEnumeration Name anyURI"/>
|
104
|
</simpleType>
|
105
|
<!-- =========================================================== -->
|
106
|
<simpleType name="NameOrNullList">
|
107
|
<annotation>
|
108
|
<documentation>XML List based on the union type defined above. An element declared with this type contains a space-separated list of Name values with null values interspersed as needed</documentation>
|
109
|
</annotation>
|
110
|
<list itemType="gml:NameOrNull"/>
|
111
|
</simpleType>
|
112
|
<!-- =========================================================== -->
|
113
|
<simpleType name="NameList">
|
114
|
<annotation>
|
115
|
<documentation>XML List based on XML Schema Name type. An element of this type contains a space-separated list of Name values</documentation>
|
116
|
</annotation>
|
117
|
<list itemType="Name"/>
|
118
|
</simpleType>
|
119
|
<!-- =========================================================== -->
|
120
|
<simpleType name="doubleOrNull">
|
121
|
<annotation>
|
122
|
<documentation>Union of the XML Schema double type and the GML Nulltype. An element which uses this type may have content which is either a double or a value from Nulltype</documentation>
|
123
|
</annotation>
|
124
|
<union memberTypes="gml:NullEnumeration double anyURI"/>
|
125
|
</simpleType>
|
126
|
<!-- =========================================================== -->
|
127
|
<simpleType name="doubleOrNullList">
|
128
|
<annotation>
|
129
|
<documentation>XML List based on the union type defined above. An element declared with this type contains a space-separated list of double values with null values interspersed as needed</documentation>
|
130
|
</annotation>
|
131
|
<list itemType="gml:doubleOrNull"/>
|
132
|
</simpleType>
|
133
|
<!-- =========================================================== -->
|
134
|
<simpleType name="doubleList">
|
135
|
<annotation>
|
136
|
<documentation>XML List based on XML Schema double type. An element of this type contains a space-separated list of double values</documentation>
|
137
|
</annotation>
|
138
|
<list itemType="double"/>
|
139
|
</simpleType>
|
140
|
<!-- =========================================================== -->
|
141
|
<simpleType name="integerOrNull">
|
142
|
<annotation>
|
143
|
<documentation>Union of the XML Schema integer type and the GML Nulltype. An element which uses this type may have content which is either an integer or a value from Nulltype</documentation>
|
144
|
</annotation>
|
145
|
<union memberTypes="gml:NullEnumeration integer anyURI"/>
|
146
|
</simpleType>
|
147
|
<!-- =========================================================== -->
|
148
|
<simpleType name="integerOrNullList">
|
149
|
<annotation>
|
150
|
<documentation>XML List based on the union type defined above. An element declared with this type contains a space-separated list of integer values with null values interspersed as needed</documentation>
|
151
|
</annotation>
|
152
|
<list itemType="gml:integerOrNull"/>
|
153
|
</simpleType>
|
154
|
<!-- =========================================================== -->
|
155
|
<simpleType name="integerList">
|
156
|
<annotation>
|
157
|
<documentation>XML List based on XML Schema integer type. An element of this type contains a space-separated list of integer values</documentation>
|
158
|
</annotation>
|
159
|
<list itemType="integer"/>
|
160
|
</simpleType>
|
161
|
<!-- =========================================================== -->
|
162
|
<complexType name="CodeType">
|
163
|
<annotation>
|
164
|
<documentation>Name or code with an (optional) authority. Text token.
|
165
|
If the codeSpace attribute is present, then its value should identify a dictionary, thesaurus
|
166
|
or authority for the term, such as the organisation who assigned the value,
|
167
|
or the dictionary from which it is taken.
|
168
|
A text string with an optional codeSpace attribute. </documentation>
|
169
|
</annotation>
|
170
|
<simpleContent>
|
171
|
<extension base="string">
|
172
|
<attribute name="codeSpace" type="anyURI" use="optional"/>
|
173
|
</extension>
|
174
|
</simpleContent>
|
175
|
</complexType>
|
176
|
<!-- =========================================================== -->
|
177
|
<complexType name="CodeListType">
|
178
|
<annotation>
|
179
|
<documentation>List of values on a uniform nominal scale. List of text tokens.
|
180
|
In a list context a token should not include any spaces, so xsd:Name is used instead of xsd:string.
|
181
|
If a codeSpace attribute is present, then its value is a reference to
|
182
|
a Reference System for the value, a dictionary or code list.</documentation>
|
183
|
</annotation>
|
184
|
<simpleContent>
|
185
|
<extension base="gml:NameList">
|
186
|
<attribute name="codeSpace" type="anyURI" use="optional"/>
|
187
|
</extension>
|
188
|
</simpleContent>
|
189
|
</complexType>
|
190
|
<!-- =========================================================== -->
|
191
|
<complexType name="CodeOrNullListType">
|
192
|
<annotation>
|
193
|
<documentation>List of values on a uniform nominal scale. List of text tokens.
|
194
|
In a list context a token should not include any spaces, so xsd:Name is used instead of xsd:string.
|
195
|
A member of the list may be a typed null.
|
196
|
If a codeSpace attribute is present, then its value is a reference to
|
197
|
a Reference System for the value, a dictionary or code list.</documentation>
|
198
|
</annotation>
|
199
|
<simpleContent>
|
200
|
<extension base="gml:NameOrNullList">
|
201
|
<attribute name="codeSpace" type="anyURI" use="optional"/>
|
202
|
</extension>
|
203
|
</simpleContent>
|
204
|
</complexType>
|
205
|
<!-- =========================================================== -->
|
206
|
<complexType name="MeasureType">
|
207
|
<annotation>
|
208
|
<documentation>Number with a scale.
|
209
|
The value of uom (Units Of Measure) attribute is a reference to a Reference System for the amount, either a ratio or position scale. </documentation>
|
210
|
</annotation>
|
211
|
<simpleContent>
|
212
|
<extension base="double">
|
213
|
<attribute name="uom" type="anyURI" use="required"/>
|
214
|
</extension>
|
215
|
</simpleContent>
|
216
|
</complexType>
|
217
|
<!-- =========================================================== -->
|
218
|
<complexType name="MeasureListType">
|
219
|
<annotation>
|
220
|
<documentation>List of numbers with a uniform scale.
|
221
|
The value of uom (Units Of Measure) attribute is a reference to
|
222
|
a Reference System for the amount, either a ratio or position scale. </documentation>
|
223
|
</annotation>
|
224
|
<simpleContent>
|
225
|
<extension base="gml:doubleList">
|
226
|
<attribute name="uom" type="anyURI" use="required"/>
|
227
|
</extension>
|
228
|
</simpleContent>
|
229
|
</complexType>
|
230
|
<!-- =========================================================== -->
|
231
|
<complexType name="MeasureOrNullListType">
|
232
|
<annotation>
|
233
|
<documentation>List of numbers with a uniform scale.
|
234
|
A member of the list may be a typed null.
|
235
|
The value of uom (Units Of Measure) attribute is a reference to
|
236
|
a Reference System for the amount, either a ratio or position scale. </documentation>
|
237
|
</annotation>
|
238
|
<simpleContent>
|
239
|
<extension base="gml:doubleOrNullList">
|
240
|
<attribute name="uom" type="anyURI" use="required"/>
|
241
|
</extension>
|
242
|
</simpleContent>
|
243
|
</complexType>
|
244
|
<!-- =========================================================== -->
|
245
|
<complexType name="CoordinatesType">
|
246
|
<annotation>
|
247
|
<documentation>Tables or arrays of tuples.
|
248
|
May be used for text-encoding of values from a table.
|
249
|
Actually just a string, but allows the user to indicate which characters are used as separators.
|
250
|
The value of the 'cs' attribute is the separator for coordinate values,
|
251
|
and the value of the 'ts' attribute gives the tuple separator (a single space by default);
|
252
|
the default values may be changed to reflect local usage.
|
253
|
Defaults to CSV within a tuple, space between tuples.
|
254
|
However, any string content will be schema-valid. </documentation>
|
255
|
</annotation>
|
256
|
<simpleContent>
|
257
|
<extension base="string">
|
258
|
<attribute name="decimal" type="string" default="."/>
|
259
|
<attribute name="cs" type="string" default=","/>
|
260
|
<attribute name="ts" type="string" default=" "/>
|
261
|
</extension>
|
262
|
</simpleContent>
|
263
|
</complexType>
|
264
|
<!-- =========================================================== -->
|
265
|
<simpleType name="NCNameList">
|
266
|
<annotation>
|
267
|
<documentation>A set of values, representing a list of token with the lexical value space of NCName. The tokens are seperated by whitespace.</documentation>
|
268
|
</annotation>
|
269
|
<list itemType="NCName"/>
|
270
|
</simpleType>
|
271
|
<!-- ============================================================== -->
|
272
|
<simpleType name="QNameList">
|
273
|
<annotation>
|
274
|
<documentation>A set of values, representing a list of token with the lexical value space of QName. The tokens are seperated by whitespace.</documentation>
|
275
|
</annotation>
|
276
|
<list itemType="QName"/>
|
277
|
</simpleType>
|
278
|
<!-- ============================================================== -->
|
279
|
</schema>
|