Project

General

Profile

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