Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<schema targetNamespace="http://www.opengis.net/gml/3.2" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="3.2.1 2010-01-28">
3
	<annotation>
4
		<appinfo source="urn:x-ogc:specification:gml:schema-xsd:basicTypes:3.2.1">basicTypes.xsd</appinfo>
5
		<documentation>See ISO/DIS 19136 8.2.
6
W3C XML Schema provides a set of built-in "simple" types which define methods for representing values as literals without internal markup.  These are described in W3C XML Schema Part 2:2001.  Because GML is an XML encoding in which instances are described using XML Schema, these simple types shall be used as far as possible and practical for the representation of data types.  W3C XML Schema also provides methods for defining 
7
-	new simple types by restriction and combination of the built-in types, and 
8
-	complex types, with simple content, but which also have XML attributes.  
9
In many places where a suitable built-in simple type is not available, simple content types derived using the XML Schema mechanisms are used for the representation of data types in GML.  
10
A set of these simple content types that are required by several GML components are defined in the basicTypes schema, as well as some elements based on them. These are primarily based around components needed to record amounts, counts, flags and terms, together with support for exceptions or null values.
11

    
12
GML is an OGC Standard.
13
Copyright (c) 2007,2010 Open Geospatial Consortium, Inc. All Rights Reserved.
14
To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
15
		</documentation>
16
	</annotation>
17
	<simpleType name="NilReasonType">
18
		<annotation>
19
			<documentation>gml:NilReasonType defines a content model that allows recording of an explanation for a void value or other exception.
20
gml:NilReasonType is a union of the following enumerated values:
21
-	inapplicable there is no value
22
-	missing the correct value is not readily available to the sender of this data. Furthermore, a correct value may not exist
23
-	template the value will be available later
24
-	unknown the correct value is not known to, and not computable by, the sender of this data. However, a correct value probably exists
25
-	withheld the value is not divulged
26
-	other:text other brief explanation, where text is a string of two or more characters with no included spaces
27
and
28
-	anyURI which should refer to a resource which describes the reason for the exception
29
A particular community may choose to assign more detailed semantics to the standard values provided. Alternatively, the URI method enables a specific or more complete explanation for the absence of a value to be provided elsewhere and indicated by-reference in an instance document.
30
gml:NilReasonType is used as a member of a union in a number of simple content types where it is necessary to permit a value from the NilReasonType union as an alternative to the primary type.</documentation>
31
		</annotation>
32
		<union memberTypes="gml:NilReasonEnumeration anyURI"/>
33
	</simpleType>
34
	<simpleType name="NilReasonEnumeration">
35
		<union>
36
			<simpleType>
37
				<restriction base="string">
38
					<enumeration value="inapplicable"/>
39
					<enumeration value="missing"/>
40
					<enumeration value="template"/>
41
					<enumeration value="unknown"/>
42
					<enumeration value="withheld"/>
43
				</restriction>
44
			</simpleType>
45
			<simpleType>
46
				<restriction base="string">
47
					<pattern value="other:\w{2,}"/>
48
				</restriction>
49
			</simpleType>
50
		</union>
51
	</simpleType>
52
	<simpleType name="SignType">
53
		<annotation>
54
			<documentation>gml:SignType is a convenience type with values "+" (plus) and "-" (minus).</documentation>
55
		</annotation>
56
		<restriction base="string">
57
			<enumeration value="-"/>
58
			<enumeration value="+"/>
59
		</restriction>
60
	</simpleType>
61
	<simpleType name="booleanOrNilReason">
62
		<annotation>
63
			<documentation>Extension to the respective XML Schema built-in simple type to allow a choice of either a value of the built-in simple type or a reason for a nil value.</documentation>
64
		</annotation>
65
		<union memberTypes="gml:NilReasonEnumeration boolean anyURI"/>
66
	</simpleType>
67
	<simpleType name="doubleOrNilReason">
68
		<annotation>
69
			<documentation>Extension to the respective XML Schema built-in simple type to allow a choice of either a value of the built-in simple type or a reason for a nil value.</documentation>
70
		</annotation>
71
		<union memberTypes="gml:NilReasonEnumeration double anyURI"/>
72
	</simpleType>
73
	<simpleType name="integerOrNilReason">
74
		<annotation>
75
			<documentation>Extension to the respective XML Schema built-in simple type to allow a choice of either a value of the built-in simple type or a reason for a nil value.</documentation>
76
		</annotation>
77
		<union memberTypes="gml:NilReasonEnumeration integer anyURI"/>
78
	</simpleType>
79
	<simpleType name="NameOrNilReason">
80
		<annotation>
81
			<documentation>Extension to the respective XML Schema built-in simple type to allow a choice of either a value of the built-in simple type or a reason for a nil value.</documentation>
82
		</annotation>
83
		<union memberTypes="gml:NilReasonEnumeration Name anyURI"/>
84
	</simpleType>
85
	<simpleType name="stringOrNilReason">
86
		<annotation>
87
			<documentation>Extension to the respective XML Schema built-in simple type to allow a choice of either a value of the built-in simple type or a reason for a nil value.</documentation>
88
		</annotation>
89
		<union memberTypes="gml:NilReasonEnumeration string anyURI"/>
90
	</simpleType>
91
	<complexType name="CodeType">
92
		<annotation>
93
			<documentation>gml:CodeType is a generalized type to be used for a term, keyword or name.
94
It adds a XML attribute codeSpace to a term, where the value of the codeSpace attribute (if present) shall indicate a dictionary, thesaurus, classification scheme, authority, or pattern for the term.</documentation>
95
		</annotation>
96
		<simpleContent>
97
			<extension base="string">
98
				<attribute name="codeSpace" type="anyURI"/>
99
			</extension>
100
		</simpleContent>
101
	</complexType>
102
	<complexType name="CodeWithAuthorityType">
103
		<annotation>
104
			<documentation>gml:CodeWithAuthorityType requires that the codeSpace attribute is provided in an instance.</documentation>
105
		</annotation>
106
		<simpleContent>
107
			<restriction base="gml:CodeType">
108
				<attribute name="codeSpace" type="anyURI" use="required"/>
109
			</restriction>
110
		</simpleContent>
111
	</complexType>
112
	<complexType name="MeasureType">
113
		<annotation>
114
			<documentation>gml:MeasureType supports recording an amount encoded as a value of XML Schema double, together with a units of measure indicated by an attribute uom, short for "units Of measure". The value of the uom attribute identifies a reference system for the amount, usually a ratio or interval scale.</documentation>
115
		</annotation>
116
		<simpleContent>
117
			<extension base="double">
118
				<attribute name="uom" type="gml:UomIdentifier" use="required"/>
119
			</extension>
120
		</simpleContent>
121
	</complexType>
122
	<simpleType name="UomIdentifier">
123
		<annotation>
124
			<documentation>The simple type gml:UomIdentifer defines the syntax and value space of the unit of measure identifier.</documentation>
125
		</annotation>
126
		<union memberTypes="gml:UomSymbol gml:UomURI"/>
127
	</simpleType>
128
	<simpleType name="UomSymbol">
129
		<annotation>
130
			<documentation>This type specifies a character string of length at least one, and restricted such that it must not contain any of the following characters: ":" (colon), " " (space), (newline), (carriage return), (tab). This allows values corresponding to familiar abbreviations, such as "kg", "m/s", etc. 
131
It is recommended that the symbol be an identifier for a unit of measure as specified in the "Unified Code of Units of Measure" (UCUM) (http://aurora.regenstrief.org/UCUM). This provides a set of symbols and a grammar for constructing identifiers for units of measure that are unique, and may be easily entered with a keyboard supporting the limited character set known as 7-bit ASCII. ISO 2955 formerly provided a specification with this scope, but was withdrawn in 2001. UCUM largely follows ISO 2955 with modifications to remove ambiguities and other problems.</documentation>
132
		</annotation>
133
		<restriction base="string">
134
			<pattern value="[^: \n\r\t]+"/>
135
		</restriction>
136
	</simpleType>
137
	<simpleType name="UomURI">
138
		<annotation>
139
			<documentation>This type specifies a URI, restricted such that it must start with one of the following sequences: "#", "./", "../", or a string of characters followed by a ":". These patterns ensure that the most common URI forms are supported, including absolute and relative URIs and URIs that are simple fragment identifiers, but prohibits certain forms of relative URI that could be mistaken for unit of measure symbol . 
140
NOTE	It is possible to re-write such a relative URI to conform to the restriction (e.g. "./m/s").
141
In an instance document, on elements of type gml:MeasureType the mandatory uom attribute shall carry a value corresponding to either 
142
-	a conventional unit of measure symbol,
143
-	a link to a definition of a unit of measure that does not have a conventional symbol, or when it is desired to indicate a precise or variant definition.</documentation>
144
		</annotation>
145
		<restriction base="anyURI">
146
			<pattern value="([a-zA-Z][a-zA-Z0-9\-\+\.]*:|\.\./|\./|#).*"/>
147
		</restriction>
148
	</simpleType>
149
	<complexType name="CoordinatesType">
150
		<annotation>
151
			<documentation>This type is deprecated for tuples with ordinate values that are numbers.
152
CoordinatesType is a text string, intended to be used to record an array of tuples or coordinates. 
153
While it is not possible to enforce the internal structure of the string through schema validation, some optional attributes have been provided in previous versions of GML to support a description of the internal structure. These attributes are deprecated. The attributes were intended to be used as follows:
154
Decimal	symbol used for a decimal point (default="." a stop or period)
155
cs        	symbol used to separate components within a tuple or coordinate string (default="," a comma)
156
ts        	symbol used to separate tuples or coordinate strings (default=" " a space)
157
Since it is based on the XML Schema string type, CoordinatesType may be used in the construction of tables of tuples or arrays of tuples, including ones that contain mixed text and numeric values.</documentation>
158
		</annotation>
159
		<simpleContent>
160
			<extension base="string">
161
				<attribute name="decimal" type="string" default="."/>
162
				<attribute name="cs" type="string" default=","/>
163
				<attribute name="ts" type="string" default="&#x20;"/>
164
			</extension>
165
		</simpleContent>
166
	</complexType>
167
	<simpleType name="booleanList">
168
		<annotation>
169
			<documentation>A type for a list of values of the respective simple type.</documentation>
170
		</annotation>
171
		<list itemType="boolean"/>
172
	</simpleType>
173
	<simpleType name="doubleList">
174
		<annotation>
175
			<documentation>A type for a list of values of the respective simple type.</documentation>
176
		</annotation>
177
		<list itemType="double"/>
178
	</simpleType>
179
	<simpleType name="integerList">
180
		<annotation>
181
			<documentation>A type for a list of values of the respective simple type.</documentation>
182
		</annotation>
183
		<list itemType="integer"/>
184
	</simpleType>
185
	<simpleType name="NameList">
186
		<annotation>
187
			<documentation>A type for a list of values of the respective simple type.</documentation>
188
		</annotation>
189
		<list itemType="Name"/>
190
	</simpleType>
191
	<simpleType name="NCNameList">
192
		<annotation>
193
			<documentation>A type for a list of values of the respective simple type.</documentation>
194
		</annotation>
195
		<list itemType="NCName"/>
196
	</simpleType>
197
	<simpleType name="QNameList">
198
		<annotation>
199
			<documentation>A type for a list of values of the respective simple type.</documentation>
200
		</annotation>
201
		<list itemType="QName"/>
202
	</simpleType>
203
	<simpleType name="booleanOrNilReasonList">
204
		<annotation>
205
			<documentation>A type for a list of values of the respective simple type.</documentation>
206
		</annotation>
207
		<list itemType="gml:booleanOrNilReason"/>
208
	</simpleType>
209
	<simpleType name="NameOrNilReasonList">
210
		<annotation>
211
			<documentation>A type for a list of values of the respective simple type.</documentation>
212
		</annotation>
213
		<list itemType="gml:NameOrNilReason"/>
214
	</simpleType>
215
	<simpleType name="doubleOrNilReasonList">
216
		<annotation>
217
			<documentation>A type for a list of values of the respective simple type.</documentation>
218
		</annotation>
219
		<list itemType="gml:doubleOrNilReason"/>
220
	</simpleType>
221
	<simpleType name="integerOrNilReasonList">
222
		<annotation>
223
			<documentation>A type for a list of values of the respective simple type.</documentation>
224
		</annotation>
225
		<list itemType="gml:integerOrNilReason"/>
226
	</simpleType>
227
	<complexType name="CodeListType">
228
		<annotation>
229
			<documentation>gml:CodeListType provides for lists of terms. The values in an instance element shall all be valid according to the rules of the dictionary, classification scheme, or authority identified by the value of its codeSpace attribute.</documentation>
230
		</annotation>
231
		<simpleContent>
232
			<extension base="gml:NameList">
233
				<attribute name="codeSpace" type="anyURI"/>
234
			</extension>
235
		</simpleContent>
236
	</complexType>
237
	<complexType name="CodeOrNilReasonListType">
238
		<annotation>
239
			<documentation>gml:CodeOrNilReasonListType provides for lists of terms. The values in an instance element shall all be valid according to the rules of the dictionary, classification scheme, or authority identified by the value of its codeSpace attribute. An instance element may also include embedded values from NilReasonType. It is intended to be used in situations where a term or classification is expected, but the value may be absent for some reason.</documentation>
240
		</annotation>
241
		<simpleContent>
242
			<extension base="gml:NameOrNilReasonList">
243
				<attribute name="codeSpace" type="anyURI"/>
244
			</extension>
245
		</simpleContent>
246
	</complexType>
247
	<complexType name="MeasureListType">
248
		<annotation>
249
			<documentation>gml:MeasureListType provides for a list of quantities.</documentation>
250
		</annotation>
251
		<simpleContent>
252
			<extension base="gml:doubleList">
253
				<attribute name="uom" type="gml:UomIdentifier" use="required"/>
254
			</extension>
255
		</simpleContent>
256
	</complexType>
257
	<complexType name="MeasureOrNilReasonListType">
258
		<annotation>
259
			<documentation>gml:MeasureOrNilReasonListType provides for a list of quantities. An instance element may also include embedded values from NilReasonType. It is intended to be used in situations where a value is expected, but the value may be absent for some reason.</documentation>
260
		</annotation>
261
		<simpleContent>
262
			<extension base="gml:doubleOrNilReasonList">
263
				<attribute name="uom" type="gml:UomIdentifier" use="required"/>
264
			</extension>
265
		</simpleContent>
266
	</complexType>
267
</schema>
(2-2/30)