1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<schema targetNamespace="http://www.opengis.net/gml/3.2" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink" elementFormDefault="qualified" version="3.2.1 2010-01-28">
|
3
|
<annotation>
|
4
|
<appinfo source="urn:x-ogc:specification:gml:schema-xsd:geometryBasic0d1d:3.2.1">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.
|
10
|
|
11
|
GML is an OGC Standard.
|
12
|
Copyright (c) 2007,2010 Open Geospatial Consortium, Inc. All Rights Reserved.
|
13
|
To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
|
14
|
</documentation>
|
15
|
</annotation>
|
16
|
<include schemaLocation="measures.xsd"/>
|
17
|
<complexType name="AbstractGeometryType" abstract="true">
|
18
|
<annotation>
|
19
|
<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).
|
20
|
The following rules shall be adhered to:
|
21
|
- Every geometry type shall derive from this abstract type.
|
22
|
- Every geometry element (i.e. an element of a geometry type) shall be directly or indirectly in the substitution group of AbstractGeometry.</documentation>
|
23
|
</annotation>
|
24
|
<complexContent>
|
25
|
<extension base="gml:AbstractGMLType">
|
26
|
<attributeGroup ref="gml:SRSReferenceGroup"/>
|
27
|
</extension>
|
28
|
</complexContent>
|
29
|
</complexType>
|
30
|
<attributeGroup name="SRSReferenceGroup">
|
31
|
<annotation>
|
32
|
<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.
|
33
|
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.
|
34
|
If no srsName attribute is given, the CRS shall be specified as part of the larger context this geometry element is part of.</documentation>
|
35
|
</annotation>
|
36
|
<attribute name="srsName" type="anyURI"/>
|
37
|
<attribute name="srsDimension" type="positiveInteger"/>
|
38
|
<attributeGroup ref="gml:SRSInformationGroup"/>
|
39
|
</attributeGroup>
|
40
|
<attributeGroup name="SRSInformationGroup">
|
41
|
<annotation>
|
42
|
<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.
|
43
|
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.
|
44
|
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>
|
45
|
</annotation>
|
46
|
<attribute name="axisLabels" type="gml:NCNameList"/>
|
47
|
<attribute name="uomLabels" type="gml:NCNameList"/>
|
48
|
</attributeGroup>
|
49
|
<element name="AbstractGeometry" type="gml:AbstractGeometryType" abstract="true" substitutionGroup="gml:AbstractGML">
|
50
|
<annotation>
|
51
|
<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>
|
52
|
</annotation>
|
53
|
</element>
|
54
|
<complexType name="GeometryPropertyType">
|
55
|
<annotation>
|
56
|
<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.
|
57
|
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>
|
58
|
</annotation>
|
59
|
<sequence minOccurs="0">
|
60
|
<element ref="gml:AbstractGeometry"/>
|
61
|
</sequence>
|
62
|
<attributeGroup ref="gml:AssociationAttributeGroup"/>
|
63
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
64
|
</complexType>
|
65
|
<complexType name="GeometryArrayPropertyType">
|
66
|
<annotation>
|
67
|
<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.
|
68
|
The elements are always contained inline in the array property, referencing geometry elements or arrays of geometry elements via XLinks is not supported.</documentation>
|
69
|
</annotation>
|
70
|
<sequence minOccurs="0" maxOccurs="unbounded">
|
71
|
<element ref="gml:AbstractGeometry"/>
|
72
|
</sequence>
|
73
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
74
|
</complexType>
|
75
|
<complexType name="DirectPositionType">
|
76
|
<annotation>
|
77
|
<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.
|
78
|
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>
|
79
|
</annotation>
|
80
|
<simpleContent>
|
81
|
<extension base="gml:doubleList">
|
82
|
<attributeGroup ref="gml:SRSReferenceGroup"/>
|
83
|
</extension>
|
84
|
</simpleContent>
|
85
|
</complexType>
|
86
|
<element name="pos" type="gml:DirectPositionType"/>
|
87
|
<complexType name="DirectPositionListType">
|
88
|
<annotation>
|
89
|
<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).
|
90
|
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.
|
91
|
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.
|
92
|
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>
|
93
|
</annotation>
|
94
|
<simpleContent>
|
95
|
<extension base="gml:doubleList">
|
96
|
<attributeGroup ref="gml:SRSReferenceGroup"/>
|
97
|
<attribute name="count" type="positiveInteger"/>
|
98
|
</extension>
|
99
|
</simpleContent>
|
100
|
</complexType>
|
101
|
<element name="posList" type="gml:DirectPositionListType"/>
|
102
|
<group name="geometricPositionGroup">
|
103
|
<annotation>
|
104
|
<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).
|
105
|
pos elements are positions that are "owned" by the geometric primitive encapsulating this geometric position.
|
106
|
pointProperty elements contain a point that may be referenced from other geometry elements or reference another point defined elsewhere (reuse of existing points).</documentation>
|
107
|
</annotation>
|
108
|
<choice>
|
109
|
<element ref="gml:pos"/>
|
110
|
<element ref="gml:pointProperty"/>
|
111
|
</choice>
|
112
|
</group>
|
113
|
<group name="geometricPositionListGroup">
|
114
|
<annotation>
|
115
|
<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).
|
116
|
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>
|
117
|
</annotation>
|
118
|
<choice>
|
119
|
<element ref="gml:posList"/>
|
120
|
<group ref="gml:geometricPositionGroup" maxOccurs="unbounded"/>
|
121
|
</choice>
|
122
|
</group>
|
123
|
<complexType name="VectorType">
|
124
|
<annotation>
|
125
|
<documentation>For some applications the components of the position may be adjusted to yield a unit vector.</documentation>
|
126
|
</annotation>
|
127
|
<simpleContent>
|
128
|
<restriction base="gml:DirectPositionType"/>
|
129
|
</simpleContent>
|
130
|
</complexType>
|
131
|
<element name="vector" type="gml:VectorType"/>
|
132
|
<complexType name="EnvelopeType">
|
133
|
<choice>
|
134
|
<sequence>
|
135
|
<element name="lowerCorner" type="gml:DirectPositionType"/>
|
136
|
<element name="upperCorner" type="gml:DirectPositionType"/>
|
137
|
</sequence>
|
138
|
<element ref="gml:pos" minOccurs="2" maxOccurs="2">
|
139
|
<annotation>
|
140
|
<appinfo>deprecated</appinfo>
|
141
|
</annotation>
|
142
|
</element>
|
143
|
<element ref="gml:coordinates"/>
|
144
|
</choice>
|
145
|
<attributeGroup ref="gml:SRSReferenceGroup"/>
|
146
|
</complexType>
|
147
|
<element name="Envelope" type="gml:EnvelopeType" substitutionGroup="gml:AbstractObject">
|
148
|
<annotation>
|
149
|
<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).
|
150
|
The use of the properties "coordinates" and "pos" has been deprecated. The explicitly named properties "lowerCorner" and "upperCorner" shall be used instead.</documentation>
|
151
|
</annotation>
|
152
|
</element>
|
153
|
<complexType name="AbstractGeometricPrimitiveType" abstract="true">
|
154
|
<annotation>
|
155
|
<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>
|
156
|
</annotation>
|
157
|
<complexContent>
|
158
|
<extension base="gml:AbstractGeometryType"/>
|
159
|
</complexContent>
|
160
|
</complexType>
|
161
|
<element name="AbstractGeometricPrimitive" type="gml:AbstractGeometricPrimitiveType" abstract="true" substitutionGroup="gml:AbstractGeometry">
|
162
|
<annotation>
|
163
|
<documentation>The AbstractGeometricPrimitive element is the abstract head of the substitution group for all (pre- and user-defined) geometric primitives.</documentation>
|
164
|
</annotation>
|
165
|
</element>
|
166
|
<complexType name="GeometricPrimitivePropertyType">
|
167
|
<annotation>
|
168
|
<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>
|
169
|
</annotation>
|
170
|
<sequence minOccurs="0">
|
171
|
<element ref="gml:AbstractGeometricPrimitive"/>
|
172
|
</sequence>
|
173
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
174
|
<attributeGroup ref="gml:AssociationAttributeGroup"/>
|
175
|
</complexType>
|
176
|
<complexType name="PointType">
|
177
|
<complexContent>
|
178
|
<extension base="gml:AbstractGeometricPrimitiveType">
|
179
|
<sequence>
|
180
|
<choice>
|
181
|
<element ref="gml:pos"/>
|
182
|
<element ref="gml:coordinates"/>
|
183
|
</choice>
|
184
|
</sequence>
|
185
|
</extension>
|
186
|
</complexContent>
|
187
|
</complexType>
|
188
|
<element name="Point" type="gml:PointType" substitutionGroup="gml:AbstractGeometricPrimitive">
|
189
|
<annotation>
|
190
|
<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>
|
191
|
</annotation>
|
192
|
</element>
|
193
|
<complexType name="PointPropertyType">
|
194
|
<annotation>
|
195
|
<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>
|
196
|
</annotation>
|
197
|
<sequence minOccurs="0">
|
198
|
<element ref="gml:Point"/>
|
199
|
</sequence>
|
200
|
<attributeGroup ref="gml:AssociationAttributeGroup"/>
|
201
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
202
|
</complexType>
|
203
|
<element name="pointProperty" type="gml:PointPropertyType">
|
204
|
<annotation>
|
205
|
<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>
|
206
|
</annotation>
|
207
|
</element>
|
208
|
<complexType name="PointArrayPropertyType">
|
209
|
<annotation>
|
210
|
<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>
|
211
|
</annotation>
|
212
|
<sequence minOccurs="0" maxOccurs="unbounded">
|
213
|
<element ref="gml:Point"/>
|
214
|
</sequence>
|
215
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
216
|
</complexType>
|
217
|
<complexType name="AbstractCurveType" abstract="true">
|
218
|
<annotation>
|
219
|
<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>
|
220
|
</annotation>
|
221
|
<complexContent>
|
222
|
<extension base="gml:AbstractGeometricPrimitiveType"/>
|
223
|
</complexContent>
|
224
|
</complexType>
|
225
|
<element name="AbstractCurve" type="gml:AbstractCurveType" abstract="true" substitutionGroup="gml:AbstractGeometricPrimitive">
|
226
|
<annotation>
|
227
|
<documentation>The AbstractCurve element is the abstract head of the substitution group for all (continuous) curve elements.</documentation>
|
228
|
</annotation>
|
229
|
</element>
|
230
|
<complexType name="CurvePropertyType">
|
231
|
<annotation>
|
232
|
<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>
|
233
|
</annotation>
|
234
|
<sequence minOccurs="0">
|
235
|
<element ref="gml:AbstractCurve"/>
|
236
|
</sequence>
|
237
|
<attributeGroup ref="gml:AssociationAttributeGroup"/>
|
238
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
239
|
</complexType>
|
240
|
<element name="curveProperty" type="gml:CurvePropertyType">
|
241
|
<annotation>
|
242
|
<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>
|
243
|
</annotation>
|
244
|
</element>
|
245
|
<complexType name="CurveArrayPropertyType">
|
246
|
<annotation>
|
247
|
<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>
|
248
|
</annotation>
|
249
|
<sequence minOccurs="0" maxOccurs="unbounded">
|
250
|
<element ref="gml:AbstractCurve"/>
|
251
|
</sequence>
|
252
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
253
|
</complexType>
|
254
|
<complexType name="LineStringType">
|
255
|
<complexContent>
|
256
|
<extension base="gml:AbstractCurveType">
|
257
|
<sequence>
|
258
|
<choice>
|
259
|
<choice minOccurs="2" maxOccurs="unbounded">
|
260
|
<element ref="gml:pos"/>
|
261
|
<element ref="gml:pointProperty"/>
|
262
|
<element ref="gml:pointRep"/>
|
263
|
</choice>
|
264
|
<element ref="gml:posList"/>
|
265
|
<element ref="gml:coordinates"/>
|
266
|
</choice>
|
267
|
</sequence>
|
268
|
</extension>
|
269
|
</complexContent>
|
270
|
</complexType>
|
271
|
<element name="LineString" type="gml:LineStringType" substitutionGroup="gml:AbstractCurve">
|
272
|
<annotation>
|
273
|
<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>
|
274
|
</annotation>
|
275
|
</element>
|
276
|
</schema>
|