Project

General

Profile

1 10458 tao
<?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:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" elementFormDefault="qualified" version="3.2.0">
3
	<annotation>
4
		<appinfo source="urn:ogc:specification:gml:schema-xsd:geometryBasic0d1d:3.2.0">geometryBasic0d1d.xsd</appinfo>
5
		<documentation>See ISO/DIS 19136 Clause 10.
6
Any geometry element that inherits the semantics of AbstractGeometryType may be viewed as a set of direct positions.
7
All of the classes derived from AbstractGeometryType inherit an optional association to a coordinate reference system. All direct positions shall directly or indirectly be associated with a coordinate reference system. When geometry elements are aggregated in another geometry element (such as a MultiGeometry or GeometricComplex), which already has a coordinate reference system specified, then these elements are assumed to be in that same coordinate reference system unless otherwise specified.
8
The geometry model distinguishes geometric primitives, aggregates and complexes.
9
Geometric primitives, i.e. instances of a subtype of AbstractGeometricPrimitiveType, will be open, that is, they will not contain their boundary points; curves will not contain their end points, surfaces will not contain their boundary curves, and solids will not contain their bounding surfaces.</documentation>
10
	</annotation>
11
	<include schemaLocation="measures.xsd"/>
12
	<complexType name="AbstractGeometryType" abstract="true">
13
		<annotation>
14
			<documentation>All geometry elements are derived directly or indirectly from this abstract supertype. A geometry element may have an identifying attribute (gml:id), one or more names (elements identifier and name) and a description (elements description and descriptionReference) . It may be associated with a spatial reference system (attribute group gml:SRSReferenceGroup).
15
The following rules shall be adhered to:
16
-	Every geometry type shall derive from this abstract type.
17
-	Every geometry element (i.e. an element of a geometry type) shall be directly or indirectly in the substitution group of AbstractGeometry.</documentation>
18
		</annotation>
19
		<complexContent>
20
			<extension base="gml:AbstractGMLType">
21
				<attributeGroup ref="gml:SRSReferenceGroup"/>
22
			</extension>
23
		</complexContent>
24
	</complexType>
25
	<attributeGroup name="SRSReferenceGroup">
26
		<annotation>
27
			<documentation>The attribute group SRSReferenceGroup is an optional reference to the CRS used by this geometry, with optional additional information to simplify the processing of the coordinates when a more complete definition of the CRS is not needed.
28
In general the attribute srsName points to a CRS instance of gml:AbstractCoordinateReferenceSystem. For well-known references it is not required that the CRS description exists at the location the URI points to.
29
If no srsName attribute is given, the CRS shall be specified as part of the larger context this geometry element is part of.</documentation>
30
		</annotation>
31
		<attribute name="srsName" type="anyURI"/>
32
		<attribute name="srsDimension" type="positiveInteger"/>
33
		<attributeGroup ref="gml:SRSInformationGroup"/>
34
	</attributeGroup>
35
	<attributeGroup name="SRSInformationGroup">
36
		<annotation>
37
			<documentation>The attributes uomLabels and axisLabels, defined in the SRSInformationGroup attribute group, are optional additional and redundant information for a CRS to simplify the processing of the coordinate values when a more complete definition of the CRS is not needed. This information shall be the same as included in the complete definition of the CRS, referenced by the srsName attribute. When the srsName attribute is included, either both or neither of the axisLabels and uomLabels attributes shall be included. When the srsName attribute is omitted, both of these attributes shall be omitted.
38
The attribute axisLabels is an ordered list of labels for all the axes of this CRS. The gml:axisAbbrev value should be used for these axis labels, after spaces and forbidden characters are removed. When the srsName attribute is included, this attribute is optional. When the srsName attribute is omitted, this attribute shall also be omitted.
39
The attribute uomLabels is an ordered list of unit of measure (uom) labels for all the axes of this CRS. The value of the string in the gml:catalogSymbol should be used for this uom labels, after spaces and forbidden characters are removed. When the axisLabels attribute is included, this attribute shall also be included. When the axisLabels attribute is omitted, this attribute shall also be omitted.</documentation>
40
		</annotation>
41
		<attribute name="axisLabels" type="gml:NCNameList"/>
42
		<attribute name="uomLabels" type="gml:NCNameList"/>
43
	</attributeGroup>
44
	<element name="AbstractGeometry" type="gml:AbstractGeometryType" abstract="true" substitutionGroup="gml:AbstractGML">
45
		<annotation>
46
			<documentation>The AbstractGeometry element is the abstract head of the substitution group for all geometry elements of GML. This includes pre-defined and user-defined geometry elements. Any geometry element shall be a direct or indirect extension/restriction of AbstractGeometryType and shall be directly or indirectly in the substitution group of AbstractGeometry.</documentation>
47
		</annotation>
48
	</element>
49
	<complexType name="GeometryPropertyType">
50
		<annotation>
51
			<documentation>A geometric property may either be any geometry element encapsulated in an element of this type or an XLink reference to a remote geometry element (where remote includes geometry elements located elsewhere in the same or another document). Note that either the reference or the contained element shall be given, but not both or none.
52
If a feature has a property that takes a geometry element as its value, this is called a geometry property. A generic type for such a geometry property is GeometryPropertyType.</documentation>
53
		</annotation>
54
		<sequence minOccurs="0">
55
			<element ref="gml:AbstractGeometry"/>
56
		</sequence>
57
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
58
		<attributeGroup ref="gml:OwnershipAttributeGroup"/>
59
	</complexType>
60
	<complexType name="GeometryArrayPropertyType">
61
		<annotation>
62
			<documentation>If a feature has a property which takes an array of geometry elements as its value, this is called a geometry array property. A generic type for such a geometry property is GeometryArrayPropertyType.
63
The elements are always contained inline in the array property, referencing geometry elements or arrays of geometry elements via XLinks is not supported.</documentation>
64
		</annotation>
65
		<sequence minOccurs="0" maxOccurs="unbounded">
66
			<element ref="gml:AbstractGeometry"/>
67
		</sequence>
68
		<attributeGroup ref="gml:OwnershipAttributeGroup"/>
69
	</complexType>
70
	<complexType name="DirectPositionType">
71
		<annotation>
72
			<documentation>Direct position instances hold the coordinates for a position within some coordinate reference system (CRS). Since direct positions, as data types, will often be included in larger objects (such as geometry elements) that have references to CRS, the srsName attribute will in general be missing, if this particular direct position is included in a larger element with such a reference to a CRS. In this case, the CRS is implicitly assumed to take on the value of the containing object's CRS.
73
if no srsName attribute is given, the CRS shall be specified as part of the larger context this geometry element is part of, typically a geometric object like a point, curve, etc.</documentation>
74
		</annotation>
75
		<simpleContent>
76
			<extension base="gml:doubleList">
77
				<attributeGroup ref="gml:SRSReferenceGroup"/>
78
			</extension>
79
		</simpleContent>
80
	</complexType>
81
	<element name="pos" type="gml:DirectPositionType">
82
		<annotation>
83
			<appinfo>
84
				<sch:pattern name="CRS attributes constraints">
85
					<sch:rule id="CRSLabelsPos">
86
						<sch:report test="not(@srsDimension) or @srsName">The presence of a dimension attribute implies the presence of the srsName attribute.</sch:report>
87
						<sch:report test="not(@axisLabels) or @srsName">The presence of an axisLabels attribute implies the presence of the srsName attribute.</sch:report>
88
						<sch:report test="not(@uomLabels) or @srsName">The presence of an uomLabels attribute implies the presence of the srsName attribute.</sch:report>
89
						<sch:report test="(not(@uomLabels) and not(@axisLabels)) or (@uomLabels and @axisLabels)">The presence of an uomLabels attribute implies the presence of the axisLabels attribute and vice versa.</sch:report>
90
					</sch:rule>
91
				</sch:pattern>
92
			</appinfo>
93
		</annotation>
94
	</element>
95
	<complexType name="DirectPositionListType">
96
		<annotation>
97
			<documentation>posList instances (and other instances with the content model specified by DirectPositionListType) hold the coordinates for a sequence of direct positions within the same coordinate reference system (CRS).
98
if no srsName attribute is given, the CRS shall be specified as part of the larger context this geometry element is part of, typically a geometric object like a point, curve, etc.
99
The optional attribute count specifies the number of direct positions in the list. If the attribute count is present then the attribute srsDimension shall be present, too.
100
The number of entries in the list is equal to the product of the dimensionality of the coordinate reference system (i.e. it is a derived value of the coordinate reference system definition) and the number of direct positions.</documentation>
101
		</annotation>
102
		<simpleContent>
103
			<extension base="gml:doubleList">
104
				<attributeGroup ref="gml:SRSReferenceGroup"/>
105
				<attribute name="count" type="positiveInteger"/>
106
			</extension>
107
		</simpleContent>
108
	</complexType>
109
	<element name="posList" type="gml:DirectPositionListType"/>
110
	<group name="geometricPositionGroup">
111
		<annotation>
112
			<documentation>GML supports two different ways to specify a geometric position: either by a direct position (a data type) or a point (a geometric object).
113
pos elements are positions that are “owned” by the geometric primitive encapsulating this geometric position.
114
pointProperty elements contain a point that may be referenced from other geometry elements or reference another point defined elsewhere (reuse of existing points).</documentation>
115
		</annotation>
116
		<choice>
117
			<element ref="gml:pos"/>
118
			<element ref="gml:pointProperty"/>
119
		</choice>
120
	</group>
121
	<group name="geometricPositionListGroup">
122
		<annotation>
123
			<documentation>GML supports two different ways to specify a list of geometric positions: either by a sequence of geometric positions (by reusing the group definition) or a sequence of direct positions (element posList).
124
The posList element allows for a compact way to specify the coordinates of the positions, if all positions are represented in the same coordinate reference system.</documentation>
125
		</annotation>
126
		<choice>
127
			<element ref="gml:posList"/>
128
			<group ref="gml:geometricPositionGroup" maxOccurs="unbounded"/>
129
		</choice>
130
	</group>
131
	<element name="coordinates" type="gml:CoordinatesType">
132
		<annotation>
133
			<appinfo>deprecated</appinfo>
134
		</annotation>
135
	</element>
136
	<complexType name="VectorType">
137
		<annotation>
138
			<documentation>For some applications the components of the position may be adjusted to yield a unit vector.</documentation>
139
		</annotation>
140
		<simpleContent>
141
			<restriction base="gml:DirectPositionType"/>
142
		</simpleContent>
143
	</complexType>
144
	<element name="vector" type="gml:VectorType"/>
145
	<complexType name="EnvelopeType">
146
		<choice>
147
			<sequence>
148
				<element name="lowerCorner" type="gml:DirectPositionType"/>
149
				<element name="upperCorner" type="gml:DirectPositionType"/>
150
			</sequence>
151
			<element ref="gml:pos" minOccurs="2" maxOccurs="2">
152
				<annotation>
153
					<appinfo>deprecated</appinfo>
154
				</annotation>
155
			</element>
156
			<element ref="gml:coordinates"/>
157
		</choice>
158
		<attributeGroup ref="gml:SRSReferenceGroup"/>
159
	</complexType>
160
	<element name="Envelope" type="gml:EnvelopeType" substitutionGroup="gml:AbstractObject">
161
		<annotation>
162
			<documentation>Envelope defines an extent using a pair of positions defining opposite corners in arbitrary dimensions. The first direct position is the "lower corner" (a coordinate position consisting of all the minimal ordinates for each dimension for all points within the envelope), the second one the "upper corner" (a coordinate position consisting of all the maximal ordinates for each dimension for all points within the envelope).
163
The use of the properties “coordinates” and “pos” has been deprecated. The explicitly named properties “lowerCorner” and “upperCorner” shall be used instead.</documentation>
164
		</annotation>
165
	</element>
166
	<complexType name="AbstractGeometricPrimitiveType" abstract="true">
167
		<annotation>
168
			<documentation>gml:AbstractGeometricPrimitiveType is the abstract root type of the geometric primitives. A geometric primitive is a geometric object that is not decomposed further into other primitives in the system. All primitives are oriented in the direction implied by the sequence of their coordinate tuples.</documentation>
169
		</annotation>
170
		<complexContent>
171
			<extension base="gml:AbstractGeometryType"/>
172
		</complexContent>
173
	</complexType>
174
	<element name="AbstractGeometricPrimitive" type="gml:AbstractGeometricPrimitiveType" abstract="true" substitutionGroup="gml:AbstractGeometry">
175
		<annotation>
176
			<documentation>The AbstractGeometricPrimitive element is the abstract head of the substitution group for all (pre- and user-defined) geometric primitives.</documentation>
177
		</annotation>
178
	</element>
179
	<complexType name="GeometricPrimitivePropertyType">
180
		<annotation>
181
			<documentation>A property that has a geometric primitive as its value domain may either be an appropriate geometry element encapsulated in an element of this type or an XLink reference to a remote geometry element (where remote includes geometry elements located elsewhere in the same document). Either the reference or the contained element shall be given, but neither both nor none.</documentation>
182
		</annotation>
183
		<sequence minOccurs="0">
184
			<element ref="gml:AbstractGeometricPrimitive"/>
185
		</sequence>
186
		<attributeGroup ref="gml:OwnershipAttributeGroup"/>
187
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
188
	</complexType>
189
	<complexType name="PointType">
190
		<complexContent>
191
			<extension base="gml:AbstractGeometricPrimitiveType">
192
				<sequence>
193
					<choice>
194
						<element ref="gml:pos"/>
195
						<element ref="gml:coordinates"/>
196
					</choice>
197
				</sequence>
198
			</extension>
199
		</complexContent>
200
	</complexType>
201
	<element name="Point" type="gml:PointType" substitutionGroup="gml:AbstractGeometricPrimitive">
202
		<annotation>
203
			<documentation>A Point is defined by a single coordinate tuple. The direct position of a point is specified by the pos element which is of type DirectPositionType.</documentation>
204
		</annotation>
205
	</element>
206
	<complexType name="PointPropertyType">
207
		<annotation>
208
			<documentation>A property that has a point as its value domain may either be an appropriate geometry element encapsulated in an element of this type or an XLink reference to a remote geometry element (where remote includes geometry elements located elsewhere in the same document). Either the reference or the contained element shall be given, but neither both nor none.</documentation>
209
		</annotation>
210
		<sequence minOccurs="0">
211
			<element ref="gml:Point"/>
212
		</sequence>
213
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
214
		<attributeGroup ref="gml:OwnershipAttributeGroup"/>
215
	</complexType>
216
	<element name="pointProperty" type="gml:PointPropertyType">
217
		<annotation>
218
			<documentation>This property element either references a point via the XLink-attributes or contains the point element. pointProperty is the predefined property which may be used by GML Application Schemas whenever a GML feature has a property with a value that is substitutable for Point.</documentation>
219
		</annotation>
220
	</element>
221
	<element name="pointRep" type="gml:PointPropertyType">
222
		<annotation>
223
			<appinfo>deprecated</appinfo>
224
		</annotation>
225
	</element>
226
	<complexType name="PointArrayPropertyType">
227
		<annotation>
228
			<documentation>gml:PointArrayPropertyType is a container for an array of points. The elements are always contained inline in the array property, referencing geometry elements or arrays of geometry elements via XLinks is not supported.</documentation>
229
		</annotation>
230
		<sequence minOccurs="0" maxOccurs="unbounded">
231
			<element ref="gml:Point"/>
232
		</sequence>
233
		<attributeGroup ref="gml:OwnershipAttributeGroup"/>
234
	</complexType>
235
	<element name="pointArrayProperty" type="gml:PointArrayPropertyType">
236
		<annotation>
237
			<documentation>This property element contains a list of point elements. pointArrayProperty is the predefined property which may be used by GML Application Schemas whenever a GML feature has a property with a value that is substitutable for a list of points.</documentation>
238
		</annotation>
239
	</element>
240
	<complexType name="AbstractCurveType" abstract="true">
241
		<annotation>
242
			<documentation>gml:AbstractCurveType is an abstraction of a curve to support the different levels of complexity. The curve may always be viewed as a geometric primitive, i.e. is continuous.</documentation>
243
		</annotation>
244
		<complexContent>
245
			<extension base="gml:AbstractGeometricPrimitiveType"/>
246
		</complexContent>
247
	</complexType>
248
	<element name="AbstractCurve" type="gml:AbstractCurveType" abstract="true" substitutionGroup="gml:AbstractGeometricPrimitive">
249
		<annotation>
250
			<documentation>The AbstractCurve element is the abstract head of the substitution group for all (continuous) curve elements.</documentation>
251
		</annotation>
252
	</element>
253
	<complexType name="CurvePropertyType">
254
		<annotation>
255
			<documentation>A property that has a curve as its value domain may either be an appropriate geometry element encapsulated in an element of this type or an XLink reference to a remote geometry element (where remote includes geometry elements located elsewhere in the same document). Either the reference or the contained element shall be given, but neither both nor none.</documentation>
256
		</annotation>
257
		<sequence minOccurs="0">
258
			<element ref="gml:AbstractCurve"/>
259
		</sequence>
260
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
261
		<attributeGroup ref="gml:OwnershipAttributeGroup"/>
262
	</complexType>
263
	<element name="curveProperty" type="gml:CurvePropertyType">
264
		<annotation>
265
			<documentation>This property element either references a curve via the XLink-attributes or contains the curve element. curveProperty is the predefined property which may be used by GML Application Schemas whenever a GML feature has a property with a value that is substitutable for AbstractCurve.</documentation>
266
		</annotation>
267
	</element>
268
	<complexType name="CurveArrayPropertyType">
269
		<annotation>
270
			<documentation>A container for an array of curves. The elements are always contained in the array property, referencing geometry elements or arrays of geometry elements via XLinks is not supported.</documentation>
271
		</annotation>
272
		<sequence minOccurs="0" maxOccurs="unbounded">
273
			<element ref="gml:AbstractCurve"/>
274
		</sequence>
275
		<attributeGroup ref="gml:OwnershipAttributeGroup"/>
276
	</complexType>
277
	<element name="curveArrayProperty" type="gml:CurveArrayPropertyType">
278
		<annotation>
279
			<documentation>This property element contains a list of curve elements. curveArrayProperty is the predefined property which may be used by GML Application Schemas whenever a GML feature has a property with a value that is substitutable for a list of curves.</documentation>
280
		</annotation>
281
	</element>
282
	<complexType name="LineStringType">
283
		<complexContent>
284
			<extension base="gml:AbstractCurveType">
285
				<sequence>
286
					<choice>
287
						<choice minOccurs="2" maxOccurs="unbounded">
288
							<element ref="gml:pos"/>
289
							<element ref="gml:pointProperty"/>
290
							<element ref="gml:pointRep"/>
291
						</choice>
292
						<element ref="gml:posList"/>
293
						<element ref="gml:coordinates"/>
294
					</choice>
295
				</sequence>
296
			</extension>
297
		</complexContent>
298
	</complexType>
299
	<element name="LineString" type="gml:LineStringType" substitutionGroup="gml:AbstractCurve">
300
		<annotation>
301
			<documentation>A LineString is a special curve that consists of a single segment with linear interpolation. It is defined by two or more coordinate tuples, with linear interpolation between them. The number of direct positions in the list shall be at least two.</documentation>
302
		</annotation>
303
	</element>
304
</schema>