Project

General

Profile

1 9238 tao
<?xml version="1.0" encoding="UTF-8"?>
2
<schema targetNamespace="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2001/XMLSchema" 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:coverage:3.1.1">coverage.xsd</appinfo>
5
		<documentation xml:lang="en">GML Coverage schema.
6
7
			GML is an OGC Standard.
8
			Copyright (c) 2001,2005,2010 Open Geospatial Consortium.
9
			To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
10
		</documentation>
11
	</annotation>
12
	<!-- ==============================================================
13
       includes and imports
14
	============================================================== -->
15
	<include schemaLocation="gml.xsd"/>
16
	<include schemaLocation="feature.xsd"/>
17
	<include schemaLocation="valueObjects.xsd"/>
18
	<include schemaLocation="grids.xsd"/>
19
	<include schemaLocation="geometryAggregates.xsd"/>
20
	<!-- ==============================================================
21
       global types and elements
22
	============================================================== -->
23
	<!-- ================= Abstract coverage definition ================== -->
24
	<!-- =========================================================== -->
25
	<!-- =========================================================== -->
26
	<element name="_Coverage" type="gml:AbstractCoverageType" abstract="true" substitutionGroup="gml:_Feature"/>
27
	<!-- =========================================================== -->
28
	<complexType name="AbstractCoverageType" abstract="true">
29
		<annotation>
30
			<documentation>Abstract element which acts as the head of a substitution group for coverages. Note that a coverage is a GML feature.</documentation>
31
		</annotation>
32
		<complexContent>
33
			<extension base="gml:AbstractFeatureType">
34
				<sequence>
35
					<element ref="gml:domainSet"/>
36
					<element ref="gml:rangeSet"/>
37
				</sequence>
38
				<attribute name="dimension" type="positiveInteger" use="optional"/>
39
			</extension>
40
		</complexContent>
41
	</complexType>
42
	<!-- =========================================================== -->
43
	<element name="_ContinuousCoverage" type="gml:AbstractContinuousCoverageType" abstract="true" substitutionGroup="gml:_Coverage"/>
44
	<!-- =========================================================== -->
45
	<complexType name="AbstractContinuousCoverageType" abstract="true">
46
		<annotation>
47
			<documentation>A continuous coverage as defined in ISO 19123 is a coverage that can return different values for the same feature attribute at different direct positions within a single spatiotemporal object in its spatiotemporal domain</documentation>
48
		</annotation>
49
		<complexContent>
50
			<extension base="gml:AbstractCoverageType">
51
				<sequence>
52
					<element ref="gml:coverageFunction" minOccurs="0"/>
53
				</sequence>
54
			</extension>
55
		</complexContent>
56
	</complexType>
57
	<!-- =========================================================== -->
58
	<element name="_DiscreteCoverage" type="gml:AbstractDiscreteCoverageType" abstract="true" substitutionGroup="gml:_Coverage"/>
59
	<!-- =========================================================== -->
60
	<complexType name="AbstractDiscreteCoverageType" abstract="true">
61
		<annotation>
62
			<documentation>A discrete coverage consists of a domain set, range set and optionally a coverage function. The domain set consists of either geometry or temporal objects, finite in number. The range set is comprised of a finite number of attribute values each of which is associated to every direct position within any single spatiotemporal object in the domain. In other words, the range values are constant on each spatiotemporal object in the domain. This coverage function maps each element from the coverage domain to an element in its range. This definition conforms to ISO 19123.</documentation>
63
		</annotation>
64
		<complexContent>
65
			<extension base="gml:AbstractCoverageType">
66
				<sequence>
67
					<element ref="gml:coverageFunction" minOccurs="0"/>
68
				</sequence>
69
			</extension>
70
		</complexContent>
71
	</complexType>
72
	<!-- =========================================================== -->
73
	<element name="domainSet" type="gml:DomainSetType"/>
74
	<!-- =========================================================== -->
75
	<complexType name="DomainSetType">
76
		<annotation>
77
			<documentation>The spatiotemporal domain of a coverage.
78
  Typically
79
  * a geometry collection,
80
  * an implicit geometry (e.g. a grid),
81
  * an explicit or implicit collection of time instances or periods, or
82
83
N.B. Temporal geometric complexes and temporal grids are not yet implemented in GML.</documentation>
84
		</annotation>
85
		<sequence minOccurs="0">
86
			<choice>
87
				<element ref="gml:_Geometry"/>
88
				<element ref="gml:_TimeObject"/>
89
			</choice>
90
		</sequence>
91
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
92
	</complexType>
93
	<!-- =========================================================== -->
94
	<element name="rangeSet" type="gml:RangeSetType"/>
95
	<!-- =========================================================== -->
96
	<complexType name="RangeSetType">
97
		<choice>
98
			<element ref="gml:ValueArray" maxOccurs="unbounded">
99
				<annotation>
100
					<documentation>each member _Value holds a tuple or "row" from the equivalent table</documentation>
101
				</annotation>
102
			</element>
103
			<group ref="gml:ScalarValueList" maxOccurs="unbounded">
104
				<annotation>
105
					<documentation>each list holds the complete set of one scalar component from the values - i.e. a "column" from the equivalent table</documentation>
106
				</annotation>
107
			</group>
108
			<element ref="gml:DataBlock">
109
				<annotation>
110
					<documentation>Its tuple list holds the values as space-separated tuples each of which contains comma-separated components, and the tuple structure is specified using the rangeParameters property.</documentation>
111
				</annotation>
112
			</element>
113
			<element ref="gml:File">
114
				<annotation>
115
					<documentation>a reference to an external source for the data, together with a description of how that external source is structured</documentation>
116
				</annotation>
117
			</element>
118
		</choice>
119
	</complexType>
120
	<!-- =========================================================== -->
121
	<element name="coverageFunction" type="gml:CoverageFunctionType"/>
122
	<!-- =========================================================== -->
123
	<complexType name="CoverageFunctionType">
124
		<annotation>
125
			<documentation>The function or rule which defines the map from members of the domainSet to the range.
126
      More functions will be added to this list</documentation>
127
		</annotation>
128
		<choice>
129
			<element ref="gml:MappingRule"/>
130
			<element ref="gml:GridFunction"/>
131
		</choice>
132
	</complexType>
133
	<!-- =========================================================== -->
134
	<!-- ============== Components for encoding the rangeSet ============= -->
135
	<!-- =========================================================== -->
136
	<element name="DataBlock" type="gml:DataBlockType"/>
137
	<!-- =========================================================== -->
138
	<complexType name="DataBlockType">
139
		<sequence>
140
			<element ref="gml:rangeParameters"/>
141
			<choice>
142
				<element ref="gml:tupleList"/>
143
				<element ref="gml:doubleOrNullTupleList"/>
144
			</choice>
145
		</sequence>
146
	</complexType>
147
	<!-- =========================================================== -->
148
	<element name="tupleList" type="gml:CoordinatesType"/>
149
	<!-- =========================================================== -->
150
	<element name="doubleOrNullTupleList" type="gml:doubleOrNullList"/>
151
	<!-- =========================================================== -->
152
	<element name="File" type="gml:FileType"/>
153
	<!-- =========================================================== -->
154
	<complexType name="FileType">
155
		<sequence>
156
			<element ref="gml:rangeParameters"/>
157
			<element name="fileName" type="anyURI"/>
158
			<element name="fileStructure" type="gml:FileValueModelType"/>
159
			<element name="mimeType" type="anyURI" minOccurs="0"/>
160
			<element name="compression" type="anyURI" minOccurs="0"/>
161
		</sequence>
162
	</complexType>
163
	<!-- =========================================================== -->
164
	<simpleType name="FileValueModelType">
165
		<annotation>
166
			<documentation>List of codes that identifies the file structure model for records stored in files.</documentation>
167
		</annotation>
168
		<restriction base="string">
169
			<enumeration value="Record Interleaved"/>
170
		</restriction>
171
	</simpleType>
172
	<!-- =========================================================== -->
173
	<element name="rangeParameters" type="gml:RangeParametersType"/>
174
	<!-- =========================================================== -->
175
	<complexType name="RangeParametersType">
176
		<annotation>
177
			<documentation>Metadata about the rangeSet.  Definition of record structure.
178
      This is required if the rangeSet is encoded in a DataBlock.
179
      We use a gml:_Value with empty values as a map of the composite value structure.</documentation>
180
		</annotation>
181
		<sequence minOccurs="0">
182
			<group ref="gml:ValueObject"/>
183
		</sequence>
184
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
185
	</complexType>
186
	<!-- =========================================================== -->
187
	<!-- ============= Components for coverageFunctions ================ -->
188
	<!-- =========================================================== -->
189
	<element name="MappingRule" type="gml:StringOrRefType">
190
		<annotation>
191
			<documentation>Description of a rule for associating members from the domainSet with members of the rangeSet.</documentation>
192
		</annotation>
193
	</element>
194
	<!-- =========================================================== -->
195
	<element name="GridFunction" type="gml:GridFunctionType"/>
196
	<!-- =========================================================== -->
197
	<complexType name="GridFunctionType">
198
		<annotation>
199
			<documentation>Defines how values in the domain are mapped to the range set. The start point and the sequencing rule are specified here.</documentation>
200
		</annotation>
201
		<sequence>
202
			<element name="sequenceRule" type="gml:SequenceRuleType" minOccurs="0">
203
				<annotation>
204
					<documentation>If absent, the implied value is "Linear".</documentation>
205
				</annotation>
206
			</element>
207
			<element name="startPoint" type="gml:integerList" minOccurs="0">
208
				<annotation>
209
					<documentation>Index position of the first grid post, which must lie somwhere in the GridEnvelope.  If absent, the startPoint is equal to the value of gridEnvelope::low from the grid definition.</documentation>
210
				</annotation>
211
			</element>
212
		</sequence>
213
	</complexType>
214
	<!-- =========================================================== -->
215
	<element name="IndexMap" type="gml:IndexMapType" substitutionGroup="gml:GridFunction"/>
216
	<!-- =========================================================== -->
217
	<complexType name="IndexMapType">
218
		<annotation>
219
			<documentation>Exends GridFunctionType with a lookUpTable.  This contains a list of indexes of members within the rangeSet corresponding with the members of the domainSet.  The domainSet is traversed in list order if it is enumerated explicitly, or in the order specified by a SequenceRule if the domain is an implicit set.    The length of the lookUpTable corresponds with the length of the subset of the domainSet for which the coverage is defined.</documentation>
220
		</annotation>
221
		<complexContent>
222
			<extension base="gml:GridFunctionType">
223
				<sequence>
224
					<element name="lookUpTable" type="gml:integerList"/>
225
				</sequence>
226
			</extension>
227
		</complexContent>
228
	</complexType>
229
	<!-- =========================================================== -->
230
	<complexType name="SequenceRuleType">
231
		<simpleContent>
232
			<extension base="gml:SequenceRuleNames">
233
				<attribute name="order" type="gml:IncrementOrder" use="optional"/>
234
			</extension>
235
		</simpleContent>
236
	</complexType>
237
	<!-- =========================================================== -->
238
	<simpleType name="SequenceRuleNames">
239
		<annotation>
240
			<documentation>List of codes (adopted from ISO 19123 Annex C) that identifies the rule for traversing a grid to correspond with the sequence of members of the rangeSet.</documentation>
241
		</annotation>
242
		<restriction base="string">
243
			<enumeration value="Linear"/>
244
			<enumeration value="Boustrophedonic"/>
245
			<enumeration value="Cantor-diagonal"/>
246
			<enumeration value="Spiral"/>
247
			<enumeration value="Morton"/>
248
			<enumeration value="Hilbert"/>
249
		</restriction>
250
	</simpleType>
251
	<!-- =========================================================== -->
252
	<simpleType name="IncrementOrder">
253
		<annotation>
254
			<documentation>The enumeration value here indicates the incrementation order  to be used on the first 2 axes, i.e. "+x-y" means that the points on the first axis are to be traversed from lowest to highest and  the points on the second axis are to be traversed from highest to lowest. The points on all other axes (if any) beyond the first 2 are assumed to increment from lowest to highest.</documentation>
255
		</annotation>
256
		<restriction base="string">
257
			<enumeration value="+x+y"/>
258
			<enumeration value="+y+x"/>
259
			<enumeration value="+x-y"/>
260
			<enumeration value="-x-y"/>
261
		</restriction>
262
	</simpleType>
263
	<!-- =========================================================== -->
264
	<!-- == Specialised Coverage types - typed by the structure of the domain set == -->
265
	<!-- =========================================================== -->
266
	<element name="MultiPointCoverage" type="gml:MultiPointCoverageType" substitutionGroup="gml:_DiscreteCoverage"/>
267
	<!-- =========================================================== -->
268
	<complexType name="MultiPointCoverageType">
269
		<annotation>
270
			<documentation>A discrete coverage type whose domain is defined by a collection of point</documentation>
271
		</annotation>
272
		<complexContent>
273
			<restriction base="gml:AbstractDiscreteCoverageType">
274
				<sequence>
275
					<group ref="gml:StandardObjectProperties"/>
276
					<element ref="gml:boundedBy" minOccurs="0"/>
277
					<element ref="gml:multiPointDomain"/>
278
					<element ref="gml:rangeSet"/>
279
					<element ref="gml:coverageFunction" minOccurs="0"/>
280
				</sequence>
281
			</restriction>
282
		</complexContent>
283
	</complexType>
284
	<!-- =========================================================== -->
285
	<element name="multiPointDomain" type="gml:MultiPointDomainType" substitutionGroup="gml:domainSet"/>
286
	<!-- =========================================================== -->
287
	<complexType name="MultiPointDomainType">
288
		<complexContent>
289
			<restriction base="gml:DomainSetType">
290
				<sequence minOccurs="0">
291
					<element ref="gml:MultiPoint"/>
292
				</sequence>
293
				<attributeGroup ref="gml:AssociationAttributeGroup"/>
294
			</restriction>
295
		</complexContent>
296
	</complexType>
297
	<!-- =========================================================== -->
298
	<element name="MultiCurveCoverage" type="gml:MultiCurveCoverageType" substitutionGroup="gml:_DiscreteCoverage"/>
299
	<!-- =========================================================== -->
300
	<complexType name="MultiCurveCoverageType">
301
		<annotation>
302
			<documentation>A discrete coverage type whose domain is defined by a collection of curves.</documentation>
303
		</annotation>
304
		<complexContent>
305
			<restriction base="gml:AbstractDiscreteCoverageType">
306
				<sequence>
307
					<group ref="gml:StandardObjectProperties"/>
308
					<element ref="gml:boundedBy" minOccurs="0"/>
309
					<element ref="gml:multiCurveDomain"/>
310
					<element ref="gml:rangeSet"/>
311
					<element ref="gml:coverageFunction" minOccurs="0"/>
312
				</sequence>
313
			</restriction>
314
		</complexContent>
315
	</complexType>
316
	<!-- =========================================================== -->
317
	<element name="multiCurveDomain" type="gml:MultiCurveDomainType" substitutionGroup="gml:domainSet"/>
318
	<!-- =========================================================== -->
319
	<complexType name="MultiCurveDomainType">
320
		<complexContent>
321
			<restriction base="gml:DomainSetType">
322
				<sequence minOccurs="0">
323
					<element ref="gml:MultiCurve"/>
324
				</sequence>
325
				<attributeGroup ref="gml:AssociationAttributeGroup"/>
326
			</restriction>
327
		</complexContent>
328
	</complexType>
329
	<!-- =========================================================== -->
330
	<element name="MultiSurfaceCoverage" type="gml:MultiSurfaceCoverageType" substitutionGroup="gml:_DiscreteCoverage"/>
331
	<!-- =========================================================== -->
332
	<complexType name="MultiSurfaceCoverageType">
333
		<annotation>
334
			<documentation>A discrete coverage type whose domain is defined by a collection of surface patches (includes polygons, triangles, rectangles, etc).</documentation>
335
		</annotation>
336
		<complexContent>
337
			<restriction base="gml:AbstractDiscreteCoverageType">
338
				<sequence>
339
					<group ref="gml:StandardObjectProperties"/>
340
					<element ref="gml:boundedBy" minOccurs="0"/>
341
					<element ref="gml:multiSurfaceDomain"/>
342
					<element ref="gml:rangeSet"/>
343
					<element ref="gml:coverageFunction" minOccurs="0"/>
344
				</sequence>
345
			</restriction>
346
		</complexContent>
347
	</complexType>
348
	<!-- =========================================================== -->
349
	<element name="multiSurfaceDomain" type="gml:MultiSurfaceDomainType" substitutionGroup="gml:domainSet"/>
350
	<!-- =========================================================== -->
351
	<complexType name="MultiSurfaceDomainType">
352
		<complexContent>
353
			<restriction base="gml:DomainSetType">
354
				<sequence minOccurs="0">
355
					<element ref="gml:MultiSurface"/>
356
				</sequence>
357
				<attributeGroup ref="gml:AssociationAttributeGroup"/>
358
			</restriction>
359
		</complexContent>
360
	</complexType>
361
	<!-- =========================================================== -->
362
	<element name="MultiSolidCoverage" type="gml:MultiSolidCoverageType" substitutionGroup="gml:_DiscreteCoverage"/>
363
	<!-- =========================================================== -->
364
	<complexType name="MultiSolidCoverageType">
365
		<annotation>
366
			<documentation>A discrete coverage type whose domain is defined by a collection of Solids.</documentation>
367
		</annotation>
368
		<complexContent>
369
			<restriction base="gml:AbstractDiscreteCoverageType">
370
				<sequence>
371
					<group ref="gml:StandardObjectProperties"/>
372
					<element ref="gml:boundedBy" minOccurs="0"/>
373
					<element ref="gml:multiSolidDomain"/>
374
					<element ref="gml:rangeSet"/>
375
					<element ref="gml:coverageFunction" minOccurs="0"/>
376
				</sequence>
377
			</restriction>
378
		</complexContent>
379
	</complexType>
380
	<!-- =========================================================== -->
381
	<element name="multiSolidDomain" type="gml:MultiSolidDomainType" substitutionGroup="gml:domainSet"/>
382
	<!-- =========================================================== -->
383
	<complexType name="MultiSolidDomainType">
384
		<complexContent>
385
			<restriction base="gml:DomainSetType">
386
				<sequence minOccurs="0">
387
					<element ref="gml:MultiSolid"/>
388
				</sequence>
389
				<attributeGroup ref="gml:AssociationAttributeGroup"/>
390
			</restriction>
391
		</complexContent>
392
	</complexType>
393
	<!-- =========================================================== -->
394
	<element name="GridCoverage" type="gml:GridCoverageType" substitutionGroup="gml:_DiscreteCoverage"/>
395
	<!-- =========================================================== -->
396
	<complexType name="GridCoverageType">
397
		<complexContent>
398
			<restriction base="gml:AbstractDiscreteCoverageType">
399
				<sequence>
400
					<group ref="gml:StandardObjectProperties"/>
401
					<element ref="gml:boundedBy" minOccurs="0"/>
402
					<element ref="gml:gridDomain"/>
403
					<element ref="gml:rangeSet"/>
404
					<element ref="gml:coverageFunction" minOccurs="0"/>
405
				</sequence>
406
			</restriction>
407
		</complexContent>
408
	</complexType>
409
	<!-- =========================================================== -->
410
	<element name="gridDomain" type="gml:GridDomainType" substitutionGroup="gml:domainSet"/>
411
	<!-- =========================================================== -->
412
	<complexType name="GridDomainType">
413
		<complexContent>
414
			<restriction base="gml:DomainSetType">
415
				<sequence minOccurs="0">
416
					<element ref="gml:Grid"/>
417
				</sequence>
418
				<attributeGroup ref="gml:AssociationAttributeGroup"/>
419
			</restriction>
420
		</complexContent>
421
	</complexType>
422
	<!-- =========================================================== -->
423
	<element name="RectifiedGridCoverage" type="gml:RectifiedGridCoverageType" substitutionGroup="gml:_DiscreteCoverage"/>
424
	<!-- =========================================================== -->
425
	<complexType name="RectifiedGridCoverageType">
426
		<complexContent>
427
			<restriction base="gml:AbstractDiscreteCoverageType">
428
				<sequence>
429
					<group ref="gml:StandardObjectProperties"/>
430
					<element ref="gml:boundedBy" minOccurs="0"/>
431
					<element ref="gml:rectifiedGridDomain"/>
432
					<element ref="gml:rangeSet"/>
433
					<element ref="gml:coverageFunction" minOccurs="0"/>
434
				</sequence>
435
			</restriction>
436
		</complexContent>
437
	</complexType>
438
	<!-- =========================================================== -->
439
	<element name="rectifiedGridDomain" type="gml:RectifiedGridDomainType" substitutionGroup="gml:domainSet"/>
440
	<!-- =========================================================== -->
441
	<complexType name="RectifiedGridDomainType">
442
		<complexContent>
443
			<restriction base="gml:DomainSetType">
444
				<sequence minOccurs="0">
445
					<element ref="gml:RectifiedGrid"/>
446
				</sequence>
447
				<attributeGroup ref="gml:AssociationAttributeGroup"/>
448
			</restriction>
449
		</complexContent>
450
	</complexType>
451
	<!-- =========================================================== -->
452
</schema>