1 |
9238
|
tao
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
|
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by David Burggraf (Galdos Systems Inc) -->
|
3 |
|
|
<schema targetNamespace="http://www.opengis.net/gml" elementFormDefault="qualified" version="3.1.1.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gml="http://www.opengis.net/gml" xmlns:sch="http://www.ascc.net/xml/schematron"
|
4 |
|
|
xmlns="http://www.w3.org/2001/XMLSchema">
|
5 |
|
|
<annotation>
|
6 |
|
|
<appinfo source="urn:opengis:specification:gml:schema-xsd:geometryBasic0d1d:v3.1.1">geometryBasic0d1d.xsd</appinfo>
|
7 |
|
|
<appinfo source="urn:opengis:specification:gml:schema-xsd:geometryBasic0d1d:v3.1.1">
|
8 |
|
|
<sch:title>Schematron validation</sch:title>
|
9 |
|
|
<sch:pattern name="Check SRS tags">
|
10 |
|
|
<sch:rule abstract="true" id="CRSLabels">
|
11 |
|
|
<sch:report test="not(@srsDimension) or @srsName">The presence of a dimension attribute implies the presence of the srsName attribute.</sch:report>
|
12 |
|
|
<sch:report test="not(@axisLabels) or @srsName">The presence of an axisLabels attribute implies the presence of the srsName attribute.</sch:report>
|
13 |
|
|
<sch:report test="not(@uomLabels) or @srsName">The presence of an uomLabels attribute implies the presence of the srsName attribute.</sch:report>
|
14 |
|
|
<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>
|
15 |
|
|
</sch:rule>
|
16 |
|
|
</sch:pattern>
|
17 |
|
|
<sch:pattern name="Check Dimension">
|
18 |
|
|
<sch:rule abstract="true" id="Count">
|
19 |
|
|
<sch:report test="not(@count) or @srsDimension">The presence of a count attribute implies the presence of the dimension attribute.</sch:report>
|
20 |
|
|
</sch:rule>
|
21 |
|
|
</sch:pattern>
|
22 |
|
|
</appinfo>
|
23 |
|
|
<documentation>
|
24 |
|
|
GML is an OGC Standard.
|
25 |
|
|
Copyright (c) 2001,2005,2010 Open Geospatial Consortium.
|
26 |
|
|
To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
|
27 |
|
|
</documentation>
|
28 |
|
|
</annotation>
|
29 |
|
|
<!-- ============================================================== -->
|
30 |
|
|
<include schemaLocation="gml.xsd"/>
|
31 |
|
|
<include schemaLocation="measures.xsd">
|
32 |
|
|
<annotation>
|
33 |
|
|
<documentation>This includes not only measures.xsd, but also units.xsd, gmlBase.xsd and basicTypes.xsd.</documentation>
|
34 |
|
|
</annotation>
|
35 |
|
|
</include>
|
36 |
|
|
<!-- ============================================================== -->
|
37 |
|
|
<!-- =========== abstract supertype for geometry objects =================== -->
|
38 |
|
|
<!-- ============================================================== -->
|
39 |
|
|
<element name="_Geometry" type="gml:AbstractGeometryType" abstract="true" substitutionGroup="gml:_GML">
|
40 |
|
|
<annotation>
|
41 |
|
|
<documentation>The "_Geometry" element is the abstract head of the substituition group for all geometry elements of GML 3. This
|
42 |
|
|
includes pre-defined and user-defined geometry elements. Any geometry element must be a direct or indirect extension/restriction
|
43 |
|
|
of AbstractGeometryType and must be directly or indirectly in the substitution group of "_Geometry".</documentation>
|
44 |
|
|
<appinfo>
|
45 |
|
|
<sch:pattern name="Check SRS tags">
|
46 |
|
|
<sch:rule context="gml:_Geometry">
|
47 |
|
|
<sch:extends rule="CRSLabels"/>
|
48 |
|
|
</sch:rule>
|
49 |
|
|
</sch:pattern>
|
50 |
|
|
</appinfo>
|
51 |
|
|
</annotation>
|
52 |
|
|
</element>
|
53 |
|
|
<!-- ============================================================== -->
|
54 |
|
|
<complexType name="GeometryPropertyType">
|
55 |
|
|
<annotation>
|
56 |
|
|
<documentation>A geometric property can either be any geometry element encapsulated in an element of this type or an XLink reference
|
57 |
|
|
to a remote geometry element (where remote includes geometry elements located elsewhere in the same document). Note that either
|
58 |
|
|
the reference or the contained element must be given, but not both or none.</documentation>
|
59 |
|
|
</annotation>
|
60 |
|
|
<sequence minOccurs="0">
|
61 |
|
|
<element ref="gml:_Geometry"/>
|
62 |
|
|
</sequence>
|
63 |
|
|
<attributeGroup ref="gml:AssociationAttributeGroup">
|
64 |
|
|
<annotation>
|
65 |
|
|
<documentation>This attribute group includes the XLink attributes (see xlinks.xsd). XLink is used in GML to reference
|
66 |
|
|
remote resources (including those elsewhere in the same document). A simple link element can be constructed by
|
67 |
|
|
including a specific set of XLink attributes. The XML Linking Language (XLink) is currently a Proposed Recommendation
|
68 |
|
|
of the World Wide Web Consortium. XLink allows elements to be inserted into XML documents so as to create
|
69 |
|
|
sophisticated links between resources; such links can be used to reference remote properties. A simple link element
|
70 |
|
|
can be used to implement pointer functionality, and this functionality has been built into various GML 3 elements by
|
71 |
|
|
including the gml:AssociationAttributeGroup.</documentation>
|
72 |
|
|
</annotation>
|
73 |
|
|
</attributeGroup>
|
74 |
|
|
</complexType>
|
75 |
|
|
<!-- ============================================================== -->
|
76 |
|
|
<complexType name="GeometryArrayPropertyType">
|
77 |
|
|
<annotation>
|
78 |
|
|
<documentation>A container for an array of geometry elements. The elements are always contained in the array property,
|
79 |
|
|
referencing geometry elements or arrays of geometry elements is not supported.</documentation>
|
80 |
|
|
</annotation>
|
81 |
|
|
<sequence>
|
82 |
|
|
<element ref="gml:_Geometry" minOccurs="0" maxOccurs="unbounded"/>
|
83 |
|
|
</sequence>
|
84 |
|
|
</complexType>
|
85 |
|
|
<!-- ============================================================== -->
|
86 |
|
|
<complexType name="AbstractGeometryType" abstract="true">
|
87 |
|
|
<annotation>
|
88 |
|
|
<documentation>All geometry elements are derived directly or indirectly from this abstract supertype. A geometry element may
|
89 |
|
|
have an identifying attribute ("gml:id"), a name (attribute "name") and a description (attribute "description"). It may be associated
|
90 |
|
|
with a spatial reference system (attribute "srsName"). The following rules shall be adhered: - Every geometry type shall derive
|
91 |
|
|
from this abstract type. - Every geometry element (i.e. an element of a geometry type) shall be directly or indirectly in the
|
92 |
|
|
substitution group of _Geometry.</documentation>
|
93 |
|
|
</annotation>
|
94 |
|
|
<complexContent>
|
95 |
|
|
<extension base="gml:AbstractGMLType">
|
96 |
|
|
<attribute name="gid" type="string" use="optional">
|
97 |
|
|
<annotation>
|
98 |
|
|
<documentation>This attribute is included for backward compatibility with GML 2 and is deprecated with GML 3.
|
99 |
|
|
This identifer is superceded by "gml:id" inherited from AbstractGMLType. The attribute "gid" should not be used
|
100 |
|
|
anymore and may be deleted in future versions of GML without further notice.</documentation>
|
101 |
|
|
</annotation>
|
102 |
|
|
</attribute>
|
103 |
|
|
<attributeGroup ref="gml:SRSReferenceGroup"/>
|
104 |
|
|
</extension>
|
105 |
|
|
</complexContent>
|
106 |
|
|
</complexType>
|
107 |
|
|
<!-- ============================================================== -->
|
108 |
|
|
<attributeGroup name="SRSReferenceGroup">
|
109 |
|
|
<annotation>
|
110 |
|
|
<documentation>Optional reference to the CRS used by this geometry, with optional additional information to simplify use when
|
111 |
|
|
a more complete definition of the CRS is not needed.</documentation>
|
112 |
|
|
</annotation>
|
113 |
|
|
<attribute name="srsName" type="anyURI" use="optional">
|
114 |
|
|
<annotation>
|
115 |
|
|
<documentation>In general this reference points to a CRS instance of gml:CoordinateReferenceSystemType
|
116 |
|
|
(see coordinateReferenceSystems.xsd). For well known references it is not required that the CRS description exists at the
|
117 |
|
|
location the URI points to. If no srsName attribute is given, the CRS must be specified as part of the larger context this
|
118 |
|
|
geometry element is part of, e.g. a geometric element like point, curve, etc. It is expected that this attribute will be specified
|
119 |
|
|
at the direct position level only in rare cases.</documentation>
|
120 |
|
|
</annotation>
|
121 |
|
|
</attribute>
|
122 |
|
|
<attribute name="srsDimension" type="positiveInteger" use="optional">
|
123 |
|
|
<annotation>
|
124 |
|
|
<documentation>The "srsDimension" is the length of coordinate sequence (the number of entries in the list). This dimension is
|
125 |
|
|
specified by the coordinate reference system. When the srsName attribute is omitted, this attribute shall be omitted.</documentation>
|
126 |
|
|
</annotation>
|
127 |
|
|
</attribute>
|
128 |
|
|
<attributeGroup ref="gml:SRSInformationGroup"/>
|
129 |
|
|
</attributeGroup>
|
130 |
|
|
<!-- =================================================== -->
|
131 |
|
|
<attributeGroup name="SRSInformationGroup">
|
132 |
|
|
<annotation>
|
133 |
|
|
<documentation>Optional additional and redundant information for a CRS to simplify use when a more complete definition of the
|
134 |
|
|
CRS is not needed. This information shall be the same as included in the more complete definition of the CRS, referenced by the
|
135 |
|
|
srsName attribute. When the srsName attribute is included, either both or neither of the axisLabels and uomLabels attributes
|
136 |
|
|
shall be included. When the srsName attribute is omitted, both of these attributes shall be omitted.</documentation>
|
137 |
|
|
</annotation>
|
138 |
|
|
<attribute name="axisLabels" type="gml:NCNameList" use="optional">
|
139 |
|
|
<annotation>
|
140 |
|
|
<documentation>Ordered list of labels for all the axes of this CRS. The gml:axisAbbrev value should be used for these axis
|
141 |
|
|
labels, after spaces and forbiddden characters are removed. When the srsName attribute is included, this attribute is optional.
|
142 |
|
|
When the srsName attribute is omitted, this attribute shall also be omitted.</documentation>
|
143 |
|
|
</annotation>
|
144 |
|
|
</attribute>
|
145 |
|
|
<attribute name="uomLabels" type="gml:NCNameList" use="optional">
|
146 |
|
|
<annotation>
|
147 |
|
|
<documentation>Ordered list of unit of measure (uom) labels for all the axes of this CRS. The value of the string in the
|
148 |
|
|
gml:catalogSymbol should be used for this uom labels, after spaces and forbiddden characters are removed. When the
|
149 |
|
|
axisLabels attribute is included, this attribute shall also be included. When the axisLabels attribute is omitted, this attribute
|
150 |
|
|
shall also be omitted.</documentation>
|
151 |
|
|
</annotation>
|
152 |
|
|
</attribute>
|
153 |
|
|
</attributeGroup>
|
154 |
|
|
<!-- ============================================================== -->
|
155 |
|
|
<element name="_GeometricPrimitive" type="gml:AbstractGeometricPrimitiveType" abstract="true" substitutionGroup="gml:_Geometry">
|
156 |
|
|
<annotation>
|
157 |
|
|
<documentation>The "_GeometricPrimitive" element is the abstract head of the substituition group for all (pre- and user-defined)
|
158 |
|
|
geometric primitives.</documentation>
|
159 |
|
|
</annotation>
|
160 |
|
|
</element>
|
161 |
|
|
<!-- ============================================================== -->
|
162 |
|
|
<complexType name="AbstractGeometricPrimitiveType" abstract="true">
|
163 |
|
|
<annotation>
|
164 |
|
|
<documentation>This is the abstract root type of the geometric primitives. A geometric primitive is a geometric object that is not
|
165 |
|
|
decomposed further into other primitives in the system. All primitives are oriented in the direction implied by the sequence of their
|
166 |
|
|
coordinate tuples.</documentation>
|
167 |
|
|
</annotation>
|
168 |
|
|
<complexContent>
|
169 |
|
|
<extension base="gml:AbstractGeometryType"/>
|
170 |
|
|
</complexContent>
|
171 |
|
|
</complexType>
|
172 |
|
|
<!-- ============================================================== -->
|
173 |
|
|
<complexType name="GeometricPrimitivePropertyType">
|
174 |
|
|
<annotation>
|
175 |
|
|
<documentation>A property that has a geometric primitive as its value domain can either be an appropriate geometry element
|
176 |
|
|
encapsulated in an element of this type or an XLink reference to a remote geometry element (where remote includes geometry
|
177 |
|
|
elements located elsewhere in the same document). Either the reference or the contained element must be given, but neither
|
178 |
|
|
both nor none.</documentation>
|
179 |
|
|
</annotation>
|
180 |
|
|
<sequence minOccurs="0">
|
181 |
|
|
<element ref="gml:_GeometricPrimitive"/>
|
182 |
|
|
</sequence>
|
183 |
|
|
<attributeGroup ref="gml:AssociationAttributeGroup">
|
184 |
|
|
<annotation>
|
185 |
|
|
<documentation>This attribute group includes the XLink attributes (see xlinks.xsd). XLink is used in GML to reference remote
|
186 |
|
|
resources (including those elsewhere in the same document). A simple link element can be constructed by including a
|
187 |
|
|
specific set of XLink attributes. The XML Linking Language (XLink) is currently a Proposed Recommendation of the World Wide
|
188 |
|
|
Web Consortium. XLink allows elements to be inserted into XML documents so as to create sophisticated links between
|
189 |
|
|
resources; such links can be used to reference remote properties. A simple link element can be used to implement pointer
|
190 |
|
|
functionality, and this functionality has been built into various GML 3 elements by including the gml:AssociationAttributeGroup.</documentation>
|
191 |
|
|
</annotation>
|
192 |
|
|
</attributeGroup>
|
193 |
|
|
</complexType>
|
194 |
|
|
<!-- =========================================================== -->
|
195 |
|
|
<!-- primitive geometry objects (0-dimensional) -->
|
196 |
|
|
<!-- ============================================================== -->
|
197 |
|
|
<element name="Point" type="gml:PointType" substitutionGroup="gml:_GeometricPrimitive"/>
|
198 |
|
|
<!-- ============================================================== -->
|
199 |
|
|
<complexType name="PointType">
|
200 |
|
|
<annotation>
|
201 |
|
|
<documentation>A Point is defined by a single coordinate tuple.</documentation>
|
202 |
|
|
</annotation>
|
203 |
|
|
<complexContent>
|
204 |
|
|
<extension base="gml:AbstractGeometricPrimitiveType">
|
205 |
|
|
<sequence>
|
206 |
|
|
<choice>
|
207 |
|
|
<annotation>
|
208 |
|
|
<documentation>GML supports two different ways to specify the direct poisiton of a point. 1. The "pos" element is of type
|
209 |
|
|
DirectPositionType.</documentation>
|
210 |
|
|
</annotation>
|
211 |
|
|
<element ref="gml:pos"/>
|
212 |
|
|
<element ref="gml:coordinates">
|
213 |
|
|
<annotation>
|
214 |
|
|
<documentation>Deprecated with GML version 3.1.0 for coordinates with ordinate values that are numbers. Use "pos"
|
215 |
|
|
instead. The "coordinates" element shall only be used for coordinates with ordinates that require a string
|
216 |
|
|
representation, e.g. DMS representations.</documentation>
|
217 |
|
|
</annotation>
|
218 |
|
|
</element>
|
219 |
|
|
<element ref="gml:coord">
|
220 |
|
|
<annotation>
|
221 |
|
|
<documentation>Deprecated with GML version 3.0. Use "pos" instead. The "coord" element is included for
|
222 |
|
|
backwards compatibility with GML 2.</documentation>
|
223 |
|
|
</annotation>
|
224 |
|
|
</element>
|
225 |
|
|
</choice>
|
226 |
|
|
</sequence>
|
227 |
|
|
</extension>
|
228 |
|
|
</complexContent>
|
229 |
|
|
</complexType>
|
230 |
|
|
<!-- ============================================================== -->
|
231 |
|
|
<element name="pointProperty" type="gml:PointPropertyType">
|
232 |
|
|
<annotation>
|
233 |
|
|
<appinfo>
|
234 |
|
|
<sch:pattern name="Check either href or content not both">
|
235 |
|
|
<sch:rule context="gml:pointProperty">
|
236 |
|
|
<sch:extends rule="hrefOrContent"/>
|
237 |
|
|
</sch:rule>
|
238 |
|
|
</sch:pattern>
|
239 |
|
|
</appinfo>
|
240 |
|
|
<documentation>This property element either references a point via the XLink-attributes or contains the point element. pointProperty
|
241 |
|
|
is the predefined property which can be used by GML Application Schemas whenever a GML Feature has a property with a value that
|
242 |
|
|
is substitutable for Point.</documentation>
|
243 |
|
|
</annotation>
|
244 |
|
|
</element>
|
245 |
|
|
<!-- ============================================================== -->
|
246 |
|
|
<element name="pointRep" type="gml:PointPropertyType">
|
247 |
|
|
<annotation>
|
248 |
|
|
<documentation>Deprecated with GML version 3.1.0. Use "pointProperty" instead. Included for backwards compatibility with GML 3.0.0.</documentation>
|
249 |
|
|
</annotation>
|
250 |
|
|
</element>
|
251 |
|
|
<!-- ============================================================== -->
|
252 |
|
|
<complexType name="PointPropertyType">
|
253 |
|
|
<annotation>
|
254 |
|
|
<documentation>A property that has a point as its value domain can either be an appropriate geometry element encapsulated in an
|
255 |
|
|
element of this type or an XLink reference to a remote geometry element (where remote includes geometry elements located
|
256 |
|
|
elsewhere in the same document). Either the reference or the contained element must be given, but neither both nor none.</documentation>
|
257 |
|
|
</annotation>
|
258 |
|
|
<sequence minOccurs="0">
|
259 |
|
|
<element ref="gml:Point"/>
|
260 |
|
|
</sequence>
|
261 |
|
|
<attributeGroup ref="gml:AssociationAttributeGroup">
|
262 |
|
|
<annotation>
|
263 |
|
|
<documentation>This attribute group includes the XLink attributes (see xlinks.xsd). XLink is used in GML to reference remote
|
264 |
|
|
resources (including those elsewhere in the same document). A simple link element can be constructed by including a specific
|
265 |
|
|
set of XLink attributes. The XML Linking Language (XLink) is currently a Proposed Recommendation of the World Wide Web Consortium.
|
266 |
|
|
XLink allows elements to be inserted into XML documents so as to create sophisticated links between resources; such links can be
|
267 |
|
|
used to reference remote properties. A simple link element can be used to implement pointer functionality, and this functionality has
|
268 |
|
|
been built into various GML 3 elements by including the gml:AssociationAttributeGroup.</documentation>
|
269 |
|
|
</annotation>
|
270 |
|
|
</attributeGroup>
|
271 |
|
|
</complexType>
|
272 |
|
|
<!-- ============================================================== -->
|
273 |
|
|
<element name="pointArrayProperty" type="gml:PointArrayPropertyType"/>
|
274 |
|
|
<!-- =========================================================== -->
|
275 |
|
|
<complexType name="PointArrayPropertyType">
|
276 |
|
|
<annotation>
|
277 |
|
|
<documentation>A container for an array of points. The elements are always contained in the array property, referencing geometry
|
278 |
|
|
elements or arrays of geometry elements is not supported.</documentation>
|
279 |
|
|
</annotation>
|
280 |
|
|
<sequence>
|
281 |
|
|
<element ref="gml:Point" minOccurs="0" maxOccurs="unbounded"/>
|
282 |
|
|
</sequence>
|
283 |
|
|
</complexType>
|
284 |
|
|
<!-- =========================================================== -->
|
285 |
|
|
<!-- primitive geometry objects (1-dimensional) -->
|
286 |
|
|
<!-- ============================================================== -->
|
287 |
|
|
<element name="_Curve" type="gml:AbstractCurveType" abstract="true" substitutionGroup="gml:_GeometricPrimitive">
|
288 |
|
|
<annotation>
|
289 |
|
|
<documentation>The "_Curve" element is the abstract head of the substituition group for all (continuous) curve elements.</documentation>
|
290 |
|
|
</annotation>
|
291 |
|
|
</element>
|
292 |
|
|
<!-- ============================================================== -->
|
293 |
|
|
<complexType name="AbstractCurveType" abstract="true">
|
294 |
|
|
<annotation>
|
295 |
|
|
<documentation>An abstraction of a curve to support the different levels of complexity. The curve can always be viewed as a geometric
|
296 |
|
|
primitive, i.e. is continuous.</documentation>
|
297 |
|
|
</annotation>
|
298 |
|
|
<complexContent>
|
299 |
|
|
<extension base="gml:AbstractGeometricPrimitiveType"/>
|
300 |
|
|
</complexContent>
|
301 |
|
|
</complexType>
|
302 |
|
|
<!-- ============================================================== -->
|
303 |
|
|
<element name="curveProperty" type="gml:CurvePropertyType">
|
304 |
|
|
<annotation>
|
305 |
|
|
<appinfo>
|
306 |
|
|
<sch:pattern name="Check either href or content not both">
|
307 |
|
|
<sch:rule context="gml:curveProperty">
|
308 |
|
|
<sch:extends rule="hrefOrContent"/>
|
309 |
|
|
</sch:rule>
|
310 |
|
|
</sch:pattern>
|
311 |
|
|
</appinfo>
|
312 |
|
|
<documentation>This property element either references a curve via the XLink-attributes or contains the curve element. curveProperty is the
|
313 |
|
|
predefined property which can be used by GML Application Schemas whenever a GML Feature has a property with a value that is
|
314 |
|
|
substitutable for _Curve.</documentation>
|
315 |
|
|
</annotation>
|
316 |
|
|
</element>
|
317 |
|
|
<!-- ============================================================== -->
|
318 |
|
|
<complexType name="CurvePropertyType">
|
319 |
|
|
<annotation>
|
320 |
|
|
<documentation>A property that has a curve as its value domain can either be an appropriate geometry element encapsulated in an
|
321 |
|
|
element of this type or an XLink reference to a remote geometry element (where remote includes geometry elements located elsewhere
|
322 |
|
|
in the same document). Either the reference or the contained element must be given, but neither both nor none.</documentation>
|
323 |
|
|
</annotation>
|
324 |
|
|
<sequence minOccurs="0">
|
325 |
|
|
<element ref="gml:_Curve"/>
|
326 |
|
|
</sequence>
|
327 |
|
|
<attributeGroup ref="gml:AssociationAttributeGroup">
|
328 |
|
|
<annotation>
|
329 |
|
|
<documentation>This attribute group includes the XLink attributes (see xlinks.xsd). XLink is used in GML to reference remote
|
330 |
|
|
resources (including those elsewhere in the same document). A simple link element can be constructed by including a specific
|
331 |
|
|
set of XLink attributes. The XML Linking Language (XLink) is currently a Proposed Recommendation of the World Wide Web Consortium.
|
332 |
|
|
XLink allows elements to be inserted into XML documents so as to create sophisticated links between resources; such links can be used
|
333 |
|
|
to reference remote properties. A simple link element can be used to implement pointer functionality, and this functionality has been built
|
334 |
|
|
into various GML 3 elements by including the gml:AssociationAttributeGroup.</documentation>
|
335 |
|
|
</annotation>
|
336 |
|
|
</attributeGroup>
|
337 |
|
|
</complexType>
|
338 |
|
|
<!-- ============================================================== -->
|
339 |
|
|
<element name="curveArrayProperty" type="gml:CurveArrayPropertyType"/>
|
340 |
|
|
<!-- =========================================================== -->
|
341 |
|
|
<complexType name="CurveArrayPropertyType">
|
342 |
|
|
<annotation>
|
343 |
|
|
<documentation>A container for an array of curves. The elements are always contained in the array property, referencing geometry elements
|
344 |
|
|
or arrays of geometry elements is not supported.</documentation>
|
345 |
|
|
</annotation>
|
346 |
|
|
<sequence>
|
347 |
|
|
<element ref="gml:_Curve" minOccurs="0" maxOccurs="unbounded"/>
|
348 |
|
|
</sequence>
|
349 |
|
|
</complexType>
|
350 |
|
|
<!-- =========================================================== -->
|
351 |
|
|
<element name="LineString" type="gml:LineStringType" substitutionGroup="gml:_Curve"/>
|
352 |
|
|
<!-- =========================================================== -->
|
353 |
|
|
<complexType name="LineStringType">
|
354 |
|
|
<annotation>
|
355 |
|
|
<documentation>A LineString is a special curve that consists of a single segment with linear interpolation. It is defined by two or more coordinate
|
356 |
|
|
tuples, with linear interpolation between them. It is backwards compatible with the LineString of GML 2, GM_LineString of ISO 19107 is
|
357 |
|
|
implemented by LineStringSegment.</documentation>
|
358 |
|
|
</annotation>
|
359 |
|
|
<complexContent>
|
360 |
|
|
<extension base="gml:AbstractCurveType">
|
361 |
|
|
<sequence>
|
362 |
|
|
<choice>
|
363 |
|
|
<annotation>
|
364 |
|
|
<documentation>GML supports two different ways to specify the control points of a line string. 1. A sequence of "pos"
|
365 |
|
|
(DirectPositionType) or "pointProperty" (PointPropertyType) elements. "pos" elements are control points that are only part
|
366 |
|
|
of this curve, "pointProperty" elements contain a point that may be referenced from other geometry elements or reference
|
367 |
|
|
another point defined outside of this curve (reuse of existing points). 2. The "posList" element allows for a compact way to
|
368 |
|
|
specifiy the coordinates of the control points, if all control points are in the same coordinate reference systems and belong
|
369 |
|
|
to this curve only. The number of direct positions in the list must be at least two.</documentation>
|
370 |
|
|
</annotation>
|
371 |
|
|
<choice minOccurs="2" maxOccurs="unbounded">
|
372 |
|
|
<element ref="gml:pos"/>
|
373 |
|
|
<element ref="gml:pointProperty"/>
|
374 |
|
|
<element ref="gml:pointRep">
|
375 |
|
|
<annotation>
|
376 |
|
|
<documentation>Deprecated with GML version 3.1.0. Use "pointProperty" instead. Included for backwards compatibility
|
377 |
|
|
with GML 3.0.0.</documentation>
|
378 |
|
|
</annotation>
|
379 |
|
|
</element>
|
380 |
|
|
<element ref="gml:coord">
|
381 |
|
|
<annotation>
|
382 |
|
|
<documentation>Deprecated with GML version 3.0. Use "pos" instead. The "coord" element is included for backwards
|
383 |
|
|
compatibility with GML 2.</documentation>
|
384 |
|
|
</annotation>
|
385 |
|
|
</element>
|
386 |
|
|
</choice>
|
387 |
|
|
<element ref="gml:posList"/>
|
388 |
|
|
<element ref="gml:coordinates">
|
389 |
|
|
<annotation>
|
390 |
|
|
<documentation>Deprecated with GML version 3.1.0. Use "posList" instead.</documentation>
|
391 |
|
|
</annotation>
|
392 |
|
|
</element>
|
393 |
|
|
</choice>
|
394 |
|
|
</sequence>
|
395 |
|
|
</extension>
|
396 |
|
|
</complexContent>
|
397 |
|
|
</complexType>
|
398 |
|
|
<!-- ============================================================== -->
|
399 |
|
|
<!-- positions -->
|
400 |
|
|
<!-- =========================================================== -->
|
401 |
|
|
<element name="pos" type="gml:DirectPositionType">
|
402 |
|
|
<annotation>
|
403 |
|
|
<appinfo>
|
404 |
|
|
<sch:pattern name="Check SRS tags">
|
405 |
|
|
<sch:rule context="gml:pos">
|
406 |
|
|
<sch:extends rule="CRSLabels"/>
|
407 |
|
|
</sch:rule>
|
408 |
|
|
</sch:pattern>
|
409 |
|
|
</appinfo>
|
410 |
|
|
</annotation>
|
411 |
|
|
</element>
|
412 |
|
|
<!-- ============================================================== -->
|
413 |
|
|
<complexType name="DirectPositionType">
|
414 |
|
|
<annotation>
|
415 |
|
|
<documentation>DirectPosition instances hold the coordinates for a position within some coordinate reference system (CRS). Since
|
416 |
|
|
DirectPositions, as data types, will often be included in larger objects (such as geometry elements) that have references to CRS, the
|
417 |
|
|
"srsName" attribute will in general be missing, if this particular DirectPosition is included in a larger element with such a reference to a
|
418 |
|
|
CRS. In this case, the CRS is implicitly assumed to take on the value of the containing object's CRS.</documentation>
|
419 |
|
|
</annotation>
|
420 |
|
|
<simpleContent>
|
421 |
|
|
<extension base="gml:doubleList">
|
422 |
|
|
<attributeGroup ref="gml:SRSReferenceGroup"/>
|
423 |
|
|
</extension>
|
424 |
|
|
</simpleContent>
|
425 |
|
|
</complexType>
|
426 |
|
|
<!-- =========================================================== -->
|
427 |
|
|
<element name="posList" type="gml:DirectPositionListType">
|
428 |
|
|
<annotation>
|
429 |
|
|
<appinfo>
|
430 |
|
|
<sch:pattern name="Check SRS tags">
|
431 |
|
|
<sch:rule context="gml:posList">
|
432 |
|
|
<sch:extends rule="CRSLabels"/>
|
433 |
|
|
</sch:rule>
|
434 |
|
|
</sch:pattern>
|
435 |
|
|
</appinfo>
|
436 |
|
|
<appinfo>
|
437 |
|
|
<sch:pattern name="Check Dimension">
|
438 |
|
|
<sch:rule context="gml:posList">
|
439 |
|
|
<sch:extends rule="Count"/>
|
440 |
|
|
</sch:rule>
|
441 |
|
|
</sch:pattern>
|
442 |
|
|
</appinfo>
|
443 |
|
|
</annotation>
|
444 |
|
|
</element>
|
445 |
|
|
<!-- ============================================================== -->
|
446 |
|
|
<complexType name="DirectPositionListType">
|
447 |
|
|
<annotation>
|
448 |
|
|
<documentation>DirectPositionList instances hold the coordinates for a sequence of direct positions within the same coordinate
|
449 |
|
|
reference system (CRS).</documentation>
|
450 |
|
|
</annotation>
|
451 |
|
|
<simpleContent>
|
452 |
|
|
<extension base="gml:doubleList">
|
453 |
|
|
<attributeGroup ref="gml:SRSReferenceGroup"/>
|
454 |
|
|
<attribute name="count" type="positiveInteger" use="optional">
|
455 |
|
|
<annotation>
|
456 |
|
|
<documentation>"count" allows to specify the number of direct positions in the list. If the attribute count is present then
|
457 |
|
|
the attribute srsDimension shall be present, too.</documentation>
|
458 |
|
|
</annotation>
|
459 |
|
|
</attribute>
|
460 |
|
|
</extension>
|
461 |
|
|
</simpleContent>
|
462 |
|
|
</complexType>
|
463 |
|
|
<!-- ============================================================== -->
|
464 |
|
|
<element name="vector" type="gml:VectorType">
|
465 |
|
|
<annotation>
|
466 |
|
|
<appinfo>
|
467 |
|
|
<sch:pattern name="Check SRS tags">
|
468 |
|
|
<sch:rule context="gml:vector">
|
469 |
|
|
<sch:extends rule="CRSLabels"/>
|
470 |
|
|
</sch:rule>
|
471 |
|
|
</sch:pattern>
|
472 |
|
|
</appinfo>
|
473 |
|
|
</annotation>
|
474 |
|
|
</element>
|
475 |
|
|
<!-- ============================================================== -->
|
476 |
|
|
<complexType name="VectorType">
|
477 |
|
|
<annotation>
|
478 |
|
|
<documentation>Vector instances hold the compoents for a (usually spatial) vector within some coordinate reference system (CRS).
|
479 |
|
|
Since Vectors will often be included in larger objects that have references to CRS, the "srsName" attribute may be missing.
|
480 |
|
|
In this case, the CRS is implicitly assumed to take on the value of the containing object's CRS.
|
481 |
|
|
|
482 |
|
|
Note that this content model is the same as DirectPositionType, but is defined separately to reflect the distinct semantics, and to avoid validation problems. SJDC 2004-12-02</documentation>
|
483 |
|
|
</annotation>
|
484 |
|
|
<simpleContent>
|
485 |
|
|
<extension base="gml:doubleList">
|
486 |
|
|
<attributeGroup ref="gml:SRSReferenceGroup"/>
|
487 |
|
|
</extension>
|
488 |
|
|
</simpleContent>
|
489 |
|
|
</complexType>
|
490 |
|
|
<!-- ============================================================== -->
|
491 |
|
|
<group name="geometricPositionGroup">
|
492 |
|
|
<annotation>
|
493 |
|
|
<documentation>A geometric position represented either by a DirectPosition or a Point.</documentation>
|
494 |
|
|
</annotation>
|
495 |
|
|
<choice>
|
496 |
|
|
<element ref="gml:pos"/>
|
497 |
|
|
<element ref="gml:pointProperty"/>
|
498 |
|
|
</choice>
|
499 |
|
|
</group>
|
500 |
|
|
<!-- ============================================================== -->
|
501 |
|
|
<group name="geometricPositionListGroup">
|
502 |
|
|
<annotation>
|
503 |
|
|
<documentation>A list of geometric positions represented either by a DirectPosition or a Point.</documentation>
|
504 |
|
|
</annotation>
|
505 |
|
|
<choice>
|
506 |
|
|
<element ref="gml:posList"/>
|
507 |
|
|
<group ref="gml:geometricPositionGroup" maxOccurs="unbounded"/>
|
508 |
|
|
</choice>
|
509 |
|
|
</group>
|
510 |
|
|
<!-- ============================================================== -->
|
511 |
|
|
<element name="coordinates" type="gml:CoordinatesType">
|
512 |
|
|
<annotation>
|
513 |
|
|
<documentation>Deprecated with GML version 3.1.0.</documentation>
|
514 |
|
|
</annotation>
|
515 |
|
|
</element>
|
516 |
|
|
<!-- =========================================================== -->
|
517 |
|
|
<!-- Envelope -->
|
518 |
|
|
<!-- =========================================================== -->
|
519 |
|
|
<element name="Envelope" type="gml:EnvelopeType"/>
|
520 |
|
|
<!-- =========================================================== -->
|
521 |
|
|
<complexType name="EnvelopeType">
|
522 |
|
|
<annotation>
|
523 |
|
|
<documentation>Envelope defines an extent using a pair of positions defining opposite corners in arbitrary dimensions. The first direct
|
524 |
|
|
position is the "lower corner" (a coordinate position consisting of all the minimal ordinates for each dimension for all points within the envelope),
|
525 |
|
|
the second one the "upper corner" (a coordinate position consisting of all the maximal ordinates for each dimension for all points within the
|
526 |
|
|
envelope).</documentation>
|
527 |
|
|
</annotation>
|
528 |
|
|
<choice>
|
529 |
|
|
<sequence>
|
530 |
|
|
<element name="lowerCorner" type="gml:DirectPositionType"/>
|
531 |
|
|
<element name="upperCorner" type="gml:DirectPositionType"/>
|
532 |
|
|
</sequence>
|
533 |
|
|
<element ref="gml:coord" minOccurs="2" maxOccurs="2">
|
534 |
|
|
<annotation>
|
535 |
|
|
<appinfo>deprecated</appinfo>
|
536 |
|
|
<documentation>deprecated with GML version 3.0</documentation>
|
537 |
|
|
</annotation>
|
538 |
|
|
</element>
|
539 |
|
|
<element ref="gml:pos" minOccurs="2" maxOccurs="2">
|
540 |
|
|
<annotation>
|
541 |
|
|
<appinfo>deprecated</appinfo>
|
542 |
|
|
<documentation>Deprecated with GML version 3.1. Use the explicit properties "lowerCorner" and "upperCorner" instead.</documentation>
|
543 |
|
|
</annotation>
|
544 |
|
|
</element>
|
545 |
|
|
<element ref="gml:coordinates">
|
546 |
|
|
<annotation>
|
547 |
|
|
<documentation>Deprecated with GML version 3.1.0. Use the explicit properties "lowerCorner" and "upperCorner" instead.</documentation>
|
548 |
|
|
</annotation>
|
549 |
|
|
</element>
|
550 |
|
|
</choice>
|
551 |
|
|
<attributeGroup ref="gml:SRSReferenceGroup"/>
|
552 |
|
|
</complexType>
|
553 |
|
|
<!-- =========================================================== -->
|
554 |
|
|
<!-- =========================================================== -->
|
555 |
|
|
<!-- =========================================================== -->
|
556 |
|
|
<!-- The following types and elements are deprecated and should not be used ! -->
|
557 |
|
|
<element name="coord" type="gml:CoordType">
|
558 |
|
|
<annotation>
|
559 |
|
|
<documentation>Deprecated with GML 3.0 and included for backwards compatibility with GML 2. Use the "pos" element instead.</documentation>
|
560 |
|
|
</annotation>
|
561 |
|
|
</element>
|
562 |
|
|
<complexType name="CoordType">
|
563 |
|
|
<annotation>
|
564 |
|
|
<documentation>Represents a coordinate tuple in one, two, or three dimensions. Deprecated with GML 3.0 and replaced by
|
565 |
|
|
DirectPositionType.</documentation>
|
566 |
|
|
</annotation>
|
567 |
|
|
<sequence>
|
568 |
|
|
<element name="X" type="decimal"/>
|
569 |
|
|
<element name="Y" type="decimal" minOccurs="0"/>
|
570 |
|
|
<element name="Z" type="decimal" minOccurs="0"/>
|
571 |
|
|
</sequence>
|
572 |
|
|
</complexType>
|
573 |
|
|
<!-- =========================================================== -->
|
574 |
|
|
<element name="lineStringProperty" type="gml:LineStringPropertyType">
|
575 |
|
|
<annotation>
|
576 |
|
|
<documentation>Deprecated with GML 3.0 and included only for backwards compatibility with GML 2.0. Use "curveProperty" instead. This
|
577 |
|
|
property element either references a line string via the XLink-attributes or contains the line string element.</documentation>
|
578 |
|
|
</annotation>
|
579 |
|
|
</element>
|
580 |
|
|
<!-- =========================================================== -->
|
581 |
|
|
<complexType name="LineStringPropertyType">
|
582 |
|
|
<annotation>
|
583 |
|
|
<documentation>This type is deprecated with GML 3 and shall not be used. It is included for backwards compatibility with GML 2. Use
|
584 |
|
|
CurvePropertyType instead. A property that has a line string as its value domain can either be an appropriate geometry element encapsulated
|
585 |
|
|
in an element of this type or an XLink reference to a remote geometry element (where remote includes geometry elements located elsewhere
|
586 |
|
|
in the same document). Either the reference or the contained element must be given, but neither both nor none.</documentation>
|
587 |
|
|
</annotation>
|
588 |
|
|
<sequence minOccurs="0">
|
589 |
|
|
<element ref="gml:LineString"/>
|
590 |
|
|
</sequence>
|
591 |
|
|
<attributeGroup ref="gml:AssociationAttributeGroup">
|
592 |
|
|
<annotation>
|
593 |
|
|
<documentation>This attribute group includes the XLink attributes (see xlinks.xsd). XLink is used in GML to reference remote resources
|
594 |
|
|
(including those elsewhere in the same document). A simple link element can be constructed by including a specific set of XLink attributes.
|
595 |
|
|
The XML Linking Language (XLink) is currently a Proposed Recommendation of the World Wide Web Consortium. XLink allows elements to
|
596 |
|
|
be inserted into XML documents so as to create sophisticated links between resources; such links can be used to reference remote properties.
|
597 |
|
|
A simple link element can be used to implement pointer functionality, and this functionality has been built into various GML 3 elements by
|
598 |
|
|
including the gml:AssociationAttributeGroup.</documentation>
|
599 |
|
|
</annotation>
|
600 |
|
|
</attributeGroup>
|
601 |
|
|
</complexType>
|
602 |
|
|
<!-- =========================================================== -->
|
603 |
|
|
</schema>
|