Statistics
| Revision:

root / trunk / libraries / libGPE-GML / testdata / schemas / 3.1.1 / base / geometryPrimitives.xsd @ 11160

History | View | Annotate | Download (87.4 KB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- edited with XMLSPY v5 rel. 2 U (http://www.xmlspy.com) by Clemens Portele (interactive instruments) -->
3
<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"
4
        version="3.1.1">
5
	<annotation>
6
		<appinfo source="urn:opengis:specification:gml:schema-xsd:geometryPrimitives:3.1.1">geometryPrimitives.xsd</appinfo>
7
		<documentation>Copyright (c) 2001-2005 OGC, All Rights Reserved.
8
	For conditions, see OGC Software Notice http://www.opengeospatial.org/about/?page=ipr</documentation>
9
	</annotation>
10
	<!-- =========================================================== -->
11
	<include schemaLocation="geometryBasic2d.xsd"/>
12
	<!-- =========================================================== -->
13
	<element name="Curve" type="gml:CurveType" substitutionGroup="gml:_Curve"/>
14
	<!-- =========================================================== -->
15
	<complexType name="CurveType">
16
		<annotation>
17
			<documentation>Curve is a 1-dimensional primitive. Curves are continuous, connected, and have a measurable length in terms of the coordinate system. 
18
				A curve is composed of one or more curve segments. Each curve segment within a curve may be defined using a different interpolation method. The curve segments are connected to one another, with the end point of each segment except the last being the start point of the next segment in the segment list.
19
				The orientation of the curve is positive.</documentation>
20
		</annotation>
21
		<complexContent>
22
			<extension base="gml:AbstractCurveType">
23
				<sequence>
24
					<element ref="gml:segments">
25
						<annotation>
26
							<documentation>This element encapsulates the segments of the curve.</documentation>
27
						</annotation>
28
					</element>
29
				</sequence>
30
			</extension>
31
		</complexContent>
32
	</complexType>
33
	<!-- =========================================================== -->
34
	<element name="baseCurve" type="gml:CurvePropertyType">
35
		<annotation>
36
			<appinfo>
37
				<sch:pattern name="Check either href or content not both">
38
					<sch:rule context="gml:baseCurve">
39
						<sch:extends rule="hrefOrContent"/>
40
					</sch:rule>
41
				</sch:pattern>
42
			</appinfo>
43
			<documentation>This property element either references a curve via the XLink-attributes or contains the curve element. A curve element is any element which is substitutable for "_Curve".</documentation>
44
		</annotation>
45
	</element>
46
	<!-- =========================================================== -->
47
	<element name="OrientableCurve" type="gml:OrientableCurveType" substitutionGroup="gml:_Curve"/>
48
	<!-- =========================================================== -->
49
	<complexType name="OrientableCurveType">
50
		<annotation>
51
			<documentation>OrientableCurve consists of a curve and an orientation. If the orientation is "+", then the OrientableCurve is identical to the baseCurve. If the orientation is "-", then the OrientableCurve is related to another _Curve with a parameterization that reverses the sense of the curve traversal.</documentation>
52
		</annotation>
53
		<complexContent>
54
			<extension base="gml:AbstractCurveType">
55
				<sequence>
56
					<element ref="gml:baseCurve">
57
						<annotation>
58
							<documentation>References or contains the base curve (positive orientation).
59
NOTE: This definition allows for a nested structure, i.e. an OrientableCurve may use another OrientableCurve as its base curve.</documentation>
60
						</annotation>
61
					</element>
62
				</sequence>
63
				<attribute name="orientation" type="gml:SignType" default="+">
64
					<annotation>
65
						<documentation>If the orientation is "+", then the OrientableCurve is identical to the baseCurve. If the orientation is "-", then the OrientableCurve is related to another _Curve with a parameterization that reverses the sense of the curve traversal. "+" is the default value.</documentation>
66
					</annotation>
67
				</attribute>
68
			</extension>
69
		</complexContent>
70
	</complexType>
71
	<!-- =========================================================== -->
72
	<!-- curve segments (1-dimensional) -->
73
	<!-- =========================================================== -->
74
	<!-- =========================================================== -->
75
	<element name="_CurveSegment" type="gml:AbstractCurveSegmentType" abstract="true">
76
		<annotation>
77
			<documentation>The "_CurveSegment" element is the abstract head of the substituition group for all curve segment elements, i.e. continuous segments of the same interpolation mechanism.</documentation>
78
		</annotation>
79
	</element>
80
	<!-- =========================================================== -->
81
	<complexType name="AbstractCurveSegmentType" abstract="true">
82
		<annotation>
83
			<documentation>Curve segment defines a homogeneous segment of a curve.</documentation>
84
		</annotation>
85
		<sequence/>
86
		<attribute name="numDerivativesAtStart" type="integer" use="optional" default="0">
87
			<annotation>
88
				<documentation>The attribute "numDerivativesAtStart" specifies the type of continuity between this curve segment and its predecessor. If this is the first curve segment in the curve, one of these values, as appropriate, is ignored. The default value of "0" means simple continuity, which is a mandatory minimum level of continuity. This level is referred to as "C 0 " in mathematical texts. A value of 1 means that the function and its first derivative are continuous at the appropriate end point: "C 1 " continuity. A value of "n" for any integer means the function and its first n derivatives are continuous: "C n " continuity.
89
NOTE: Use of these values is only appropriate when the basic curve definition is an underdetermined system. For example, line string segments cannot support continuity above C 0 , since there is no spare control parameter to adjust the incoming angle at the end points of the segment. Spline functions on the other hand often have extra degrees of freedom on end segments that allow them to adjust the values of the derivatives to support C 1 or higher continuity.</documentation>
90
			</annotation>
91
		</attribute>
92
		<attribute name="numDerivativesAtEnd" type="integer" use="optional" default="0">
93
			<annotation>
94
				<documentation>The attribute "numDerivativesAtEnd" specifies the type of continuity between this curve segment and its successor. If this is the last curve segment in the curve, one of these values, as appropriate, is ignored. The default value of "0" means simple continuity, which is a mandatory minimum level of continuity. This level is referred to as "C 0 " in mathematical texts. A value of 1 means that the function and its first derivative are continuous at the appropriate end point: "C 1 " continuity. A value of "n" for any integer means the function and its first n derivatives are continuous: "C n " continuity.
95
NOTE: Use of these values is only appropriate when the basic curve definition is an underdetermined system. For example, line string segments cannot support continuity above C 0 , since there is no spare control parameter to adjust the incoming angle at the end points of the segment. Spline functions on the other hand often have extra degrees of freedom on end segments that allow them to adjust the values of the derivatives to support C 1 or higher continuity.</documentation>
96
			</annotation>
97
		</attribute>
98
		<attribute name="numDerivativeInterior" type="integer" use="optional" default="0">
99
			<annotation>
100
				<documentation>The attribute "numDerivativesInterior" specifies the type of continuity that is guaranteed interior to the curve. The default value of "0" means simple continuity, which is a mandatory minimum level of continuity. This level is referred to as "C 0 " in mathematical texts. A value of 1 means that the function and its first derivative are continuous at the appropriate end point: "C 1 " continuity. A value of "n" for any integer means the function and its first n derivatives are continuous: "C n " continuity.
101
NOTE: Use of these values is only appropriate when the basic curve definition is an underdetermined system. For example, line string segments cannot support continuity above C 0 , since there is no spare control parameter to adjust the incoming angle at the end points of the segment. Spline functions on the other hand often have extra degrees of freedom on end segments that allow them to adjust the values of the derivatives to support C 1 or higher continuity.</documentation>
102
			</annotation>
103
		</attribute>
104
	</complexType>
105
	<!-- =========================================================== -->
106
	<element name="segments" type="gml:CurveSegmentArrayPropertyType">
107
		<annotation>
108
			<documentation>This property element contains a list of curve segments. The order of the elements is significant and shall be preserved when processing the array.</documentation>
109
		</annotation>
110
	</element>
111
	<!-- =========================================================== -->
112
	<complexType name="CurveSegmentArrayPropertyType">
113
		<annotation>
114
			<documentation>A container for an array of curve segments.</documentation>
115
		</annotation>
116
		<sequence>
117
			<element ref="gml:_CurveSegment" minOccurs="0" maxOccurs="unbounded"/>
118
		</sequence>
119
	</complexType>
120
	<!-- =========== global element in "_CurveSegment" substitution group ================ -->
121
	<element name="LineStringSegment" type="gml:LineStringSegmentType" substitutionGroup="gml:_CurveSegment"/>
122
	<!-- =========================================================== -->
123
	<complexType name="LineStringSegmentType">
124
		<annotation>
125
			<documentation>A LineStringSegment is a curve segment that is defined by two or more coordinate tuples, with linear interpolation between them.
126
				Note: LineStringSegment implements GM_LineString of ISO 19107.</documentation>
127
		</annotation>
128
		<complexContent>
129
			<extension base="gml:AbstractCurveSegmentType">
130
				<sequence>
131
					<choice>
132
						<annotation>
133
							<documentation>GML supports two different ways to specify the control points of a curve segment.
134
1. A sequence of "pos" (DirectPositionType) or "pointProperty" (PointPropertyType) elements. "pos" elements are control points that are only part of this curve segment, "pointProperty" elements contain a point that may be referenced from other geometry elements or reference another point defined outside of this curve segment (reuse of existing points).
135
2. The "posList" element allows for a compact way to specifiy the coordinates of the control points, if all control points are in the same coordinate reference systems and belong to this curve segment only. The number of direct positions in the list must be at least two.</documentation>
136
						</annotation>
137
						<choice minOccurs="2" maxOccurs="unbounded">
138
							<element ref="gml:pos"/>
139
							<element ref="gml:pointProperty"/>
140
							<element ref="gml:pointRep">
141
								<annotation>
142
									<documentation>Deprecated with GML version 3.1.0. Use "pointProperty" instead. Included for backwards compatibility with GML 3.0.0.</documentation>
143
								</annotation>
144
							</element>
145
						</choice>
146
						<element ref="gml:posList"/>
147
						<element ref="gml:coordinates">
148
							<annotation>
149
								<documentation>Deprecated with GML version 3.1.0. Use "posList" instead.</documentation>
150
							</annotation>
151
						</element>
152
					</choice>
153
				</sequence>
154
				<attribute name="interpolation" type="gml:CurveInterpolationType" fixed="linear">
155
					<annotation>
156
						<documentation>The attribute "interpolation" specifies the curve interpolation mechanism used for this segment. This mechanism
157
uses the control points and control parameters to determine the position of this curve segment. For a LineStringSegment the interpolation is fixed as "linear".</documentation>
158
					</annotation>
159
				</attribute>
160
			</extension>
161
		</complexContent>
162
	</complexType>
163
	<!-- =========== global element in "_CurveSegment" substitution group ================ -->
164
	<element name="ArcString" type="gml:ArcStringType" substitutionGroup="gml:_CurveSegment"/>
165
	<!-- =========================================================== -->
166
	<complexType name="ArcStringType">
167
		<annotation>
168
			<documentation>An ArcString is a curve segment that uses three-point circular arc interpolation.</documentation>
169
		</annotation>
170
		<complexContent>
171
			<extension base="gml:AbstractCurveSegmentType">
172
				<sequence>
173
					<choice>
174
						<annotation>
175
							<documentation>GML supports two different ways to specify the control points of a curve segment.
176
1. A sequence of "pos" (DirectPositionType) or "pointProperty" (PointPropertyType) elements. "pos" elements are control points that are only part of this curve segment, "pointProperty" elements contain a point that may be referenced from other geometry elements or reference another point defined outside of this curve segment (reuse of existing points).
177
2. The "posList" element allows for a compact way to specifiy the coordinates of the control points, if all control points are in the same coordinate reference systems and belong to this curve segment only. The number of direct positions in the list must be at least three.</documentation>
178
						</annotation>
179
						<choice minOccurs="3" maxOccurs="unbounded">
180
							<element ref="gml:pos"/>
181
							<element ref="gml:pointProperty"/>
182
							<element ref="gml:pointRep">
183
								<annotation>
184
									<documentation>Deprecated with GML version 3.1.0. Use "pointProperty" instead. Included for backwards compatibility with GML 3.0.0.</documentation>
185
								</annotation>
186
							</element>
187
						</choice>
188
						<element ref="gml:posList"/>
189
						<element ref="gml:coordinates">
190
							<annotation>
191
								<documentation>Deprecated with GML version 3.1.0. Use "posList" instead.</documentation>
192
							</annotation>
193
						</element>
194
					</choice>
195
				</sequence>
196
				<attribute name="interpolation" type="gml:CurveInterpolationType" fixed="circularArc3Points">
197
					<annotation>
198
						<documentation>The attribute "interpolation" specifies the curve interpolation mechanism used for this segment. This mechanism
199
uses the control points and control parameters to determine the position of this curve segment. For an ArcString the interpolation is fixed as "circularArc3Points".</documentation>
200
					</annotation>
201
				</attribute>
202
				<attribute name="numArc" type="integer" use="optional">
203
					<annotation>
204
						<documentation>The number of arcs in the arc string can be explicitly stated in this attribute. The number of control points in the arc string must be 2 * numArc + 1.</documentation>
205
					</annotation>
206
				</attribute>
207
			</extension>
208
		</complexContent>
209
	</complexType>
210
	<!-- =========== global element in "_CurveSegment" substitution group ================ -->
211
	<element name="Arc" type="gml:ArcType" substitutionGroup="gml:ArcString"/>
212
	<!-- =========================================================== -->
213
	<complexType name="ArcType">
214
		<annotation>
215
			<documentation>An Arc is an arc string with only one arc unit, i.e. three control points.</documentation>
216
		</annotation>
217
		<complexContent>
218
			<restriction base="gml:ArcStringType">
219
				<sequence>
220
					<choice>
221
						<annotation>
222
							<documentation>GML supports two different ways to specify the control points of a curve segment.
223
1. A sequence of "pos" (DirectPositionType) or "pointProperty" (PointPropertyType) elements. "pos" elements are control points that are only part of this curve segment, "pointProperty" elements contain a point that may be referenced from other geometry elements or reference another point defined outside of this curve segment (reuse of existing points).
224
2. The "posList" element allows for a compact way to specifiy the coordinates of the control points, if all control points are in the same coordinate reference systems and belong to this curve segment only. The number of direct positions in the list must be three.</documentation>
225
						</annotation>
226
						<choice minOccurs="3" maxOccurs="3">
227
							<element ref="gml:pos"/>
228
							<element ref="gml:pointProperty"/>
229
							<element ref="gml:pointRep">
230
								<annotation>
231
									<documentation>Deprecated with GML version 3.1.0. Use "pointProperty" instead. Included for backwards compatibility with GML 3.0.0.</documentation>
232
								</annotation>
233
							</element>
234
						</choice>
235
						<element ref="gml:posList"/>
236
						<element ref="gml:coordinates">
237
							<annotation>
238
								<documentation>Deprecated with GML version 3.1.0. Use "posList" instead.</documentation>
239
							</annotation>
240
						</element>
241
					</choice>
242
				</sequence>
243
				<attribute name="numArc" type="integer" use="optional" fixed="1">
244
					<annotation>
245
						<documentation>An arc is an arc string consiting of a single arc, the attribute is fixed to "1".</documentation>
246
					</annotation>
247
				</attribute>
248
			</restriction>
249
		</complexContent>
250
	</complexType>
251
	<!-- =========== global element in "_CurveSegment" substitution group ================ -->
252
	<element name="Circle" type="gml:CircleType" substitutionGroup="gml:Arc"/>
253
	<!-- =========================================================== -->
254
	<complexType name="CircleType">
255
		<annotation>
256
			<documentation>A Circle is an arc whose ends coincide to form a simple closed loop. The "start" and "end" bearing are equal and shall be the bearing for the first controlPoint listed. The three control points must be distinct non-co-linear points for the Circle to be unambiguously defined. The arc is simply extended past the third control point until the first control point is encountered.</documentation>
257
		</annotation>
258
		<complexContent>
259
			<extension base="gml:ArcType"/>
260
		</complexContent>
261
	</complexType>
262
	<!-- =========== global element in "_CurveSegment" substitution group ================ -->
263
	<element name="ArcStringByBulge" type="gml:ArcStringByBulgeType" substitutionGroup="gml:_CurveSegment"/>
264
	<!-- =========================================================== -->
265
	<complexType name="ArcStringByBulgeType">
266
		<annotation>
267
			<documentation>This variant of the arc computes the mid points of the arcs instead of storing the coordinates directly. The control point sequence consists of the start and end points of each arc plus the bulge.</documentation>
268
		</annotation>
269
		<complexContent>
270
			<extension base="gml:AbstractCurveSegmentType">
271
				<sequence>
272
					<choice>
273
						<annotation>
274
							<documentation>GML supports two different ways to specify the control points of a curve segment.
275
1. A sequence of "pos" (DirectPositionType) or "pointProperty" (PointPropertyType) elements. "pos" elements are control points that are only part of this curve segment, "pointProperty" elements contain a point that may be referenced from other geometry elements or reference another point defined outside of this curve segment (reuse of existing points).
276
2. The "posList" element allows for a compact way to specifiy the coordinates of the control points, if all control points are in the same coordinate reference systems and belong to this curve segment only. The number of direct positions in the list must be at least two.</documentation>
277
						</annotation>
278
						<choice minOccurs="2" maxOccurs="unbounded">
279
							<element ref="gml:pos"/>
280
							<element ref="gml:pointProperty"/>
281
							<element ref="gml:pointRep">
282
								<annotation>
283
									<documentation>Deprecated with GML version 3.1.0. Use "pointProperty" instead. Included for backwards compatibility with GML 3.0.0.</documentation>
284
								</annotation>
285
							</element>
286
						</choice>
287
						<element ref="gml:posList"/>
288
						<element ref="gml:coordinates">
289
							<annotation>
290
								<documentation>Deprecated with GML version 3.1.0. Use "posList" instead.</documentation>
291
							</annotation>
292
						</element>
293
					</choice>
294
					<element name="bulge" type="double" maxOccurs="unbounded">
295
						<annotation>
296
							<documentation>The bulge controls the offset of each arc's midpoint. The "bulge" is the real number multiplier for the normal that determines the offset direction of the midpoint of each arc. The length of the bulge sequence is exactly 1 less than the length of the control point array, since a bulge is needed for each pair of adjacent points in the control point array. The bulge is not given by a distance, since it is simply a multiplier for the normal.
297
The midpoint of the resulting arc is given by: midPoint = ((startPoint + endPoint)/2.0) + bulge*normal</documentation>
298
						</annotation>
299
					</element>
300
					<element name="normal" type="gml:VectorType" maxOccurs="unbounded">
301
						<annotation>
302
							<documentation>The attribute "normal" is a vector normal (perpendicular) to the chord of the arc, the line joining the first and last
303
point of the arc. In a 2D coordinate system, there are only two possible directions for the normal, and it is often given as a signed real, indicating its length, with a positive sign indicating a left turn angle from the chord line, and a negative sign indicating a right turn from the chord. In 3D, the normal determines the plane of the arc, along with the start and endPoint of the arc.
304
The normal is usually a unit vector, but this is not absolutely necessary. If the normal is a zero vector, the geometric object becomes equivalent to the straight line between the two end points. The length of the normal sequence is exactly the same as for the bulge sequence, 1 less than the control point sequence length.</documentation>
305
						</annotation>
306
					</element>
307
				</sequence>
308
				<attribute name="interpolation" type="gml:CurveInterpolationType" fixed="circularArc2PointWithBulge">
309
					<annotation>
310
						<documentation>The attribute "interpolation" specifies the curve interpolation mechanism used for this segment. This mechanism
311
uses the control points and control parameters to determine the position of this curve segment. For an ArcStringByBulge the interpolation is fixed as "circularArc2PointWithBulge".</documentation>
312
					</annotation>
313
				</attribute>
314
				<attribute name="numArc" type="integer" use="optional">
315
					<annotation>
316
						<documentation>The number of arcs in the arc string can be explicitly stated in this attribute. The number of control points in the arc string must be numArc + 1.</documentation>
317
					</annotation>
318
				</attribute>
319
			</extension>
320
		</complexContent>
321
	</complexType>
322
	<!-- =========== global element in "_CurveSegment" substitution group ================ -->
323
	<element name="ArcByBulge" type="gml:ArcByBulgeType" substitutionGroup="gml:ArcStringByBulge"/>
324
	<!-- =========================================================== -->
325
	<complexType name="ArcByBulgeType">
326
		<annotation>
327
			<documentation>An ArcByBulge is an arc string with only one arc unit, i.e. two control points and one bulge.</documentation>
328
		</annotation>
329
		<complexContent>
330
			<restriction base="gml:ArcStringByBulgeType">
331
				<sequence>
332
					<choice>
333
						<annotation>
334
							<documentation>GML supports two different ways to specify the control points of a curve segment.
335
1. A sequence of "pos" (DirectPositionType) or "pointProperty" (PointPropertyType) elements. "pos" elements are control points that are only part of this curve segment, "pointProperty" elements contain a point that may be referenced from other geometry elements or reference another point defined outside of this curve segment (reuse of existing points).
336
2. The "posList" element allows for a compact way to specifiy the coordinates of the control points, if all control points are in the same coordinate reference systems and belong to this curve segment only. The number of direct positions in the list must be two.</documentation>
337
						</annotation>
338
						<choice minOccurs="2" maxOccurs="2">
339
							<element ref="gml:pos"/>
340
							<element ref="gml:pointProperty"/>
341
							<element ref="gml:pointRep">
342
								<annotation>
343
									<documentation>Deprecated with GML version 3.1.0. Use "pointProperty" instead. Included for backwards compatibility with GML 3.0.0.</documentation>
344
								</annotation>
345
							</element>
346
						</choice>
347
						<element ref="gml:posList"/>
348
						<element ref="gml:coordinates">
349
							<annotation>
350
								<documentation>Deprecated with GML version 3.1.0. Use "posList" instead.</documentation>
351
							</annotation>
352
						</element>
353
					</choice>
354
					<element name="bulge" type="double">
355
						<annotation>
356
							<documentation>The bulge controls the offset of each arc's midpoint. The "bulge" is the real number multiplier for the normal that determines the offset direction of the midpoint of each arc. The length of the bulge sequence is exactly 1 less than the length of the control point array, since a bulge is needed for each pair of adjacent points in the control point array. The bulge is not given by a distance, since it is simply a multiplier for the normal.
357
The midpoint of the resulting arc is given by: midPoint = ((startPoint + endPoint)/2.0) + bulge*normal</documentation>
358
						</annotation>
359
					</element>
360
					<element name="normal" type="gml:VectorType">
361
						<annotation>
362
							<documentation>The attribute "normal" is a vector normal (perpendicular) to the chord of the arc, the line joining the first and last
363
point of the arc. In a 2D coordinate system, there are only two possible directions for the normal, and it is often given as a signed real, indicating its length, with a positive sign indicating a left turn angle from the chord line, and a negative sign indicating a right turn from the chord. In 3D, the normal determines the plane of the arc, along with the start and endPoint of the arc.
364
The normal is usually a unit vector, but this is not absolutely necessary. If the normal is a zero vector, the geometric object becomes equivalent to the straight line between the two end points. The length of the normal sequence is exactly the same as for the bulge sequence, 1 less than the control point sequence length.</documentation>
365
						</annotation>
366
					</element>
367
				</sequence>
368
				<attribute name="numArc" type="integer" use="optional" fixed="1">
369
					<annotation>
370
						<documentation>An arc is an arc string consiting of a single arc, the attribute is fixed to "1".</documentation>
371
					</annotation>
372
				</attribute>
373
			</restriction>
374
		</complexContent>
375
	</complexType>
376
	<!-- =========== global element in "_CurveSegment" substitution group ================ -->
377
	<element name="ArcByCenterPoint" type="gml:ArcByCenterPointType" substitutionGroup="gml:_CurveSegment"/>
378
	<!-- =========================================================== -->
379
	<complexType name="ArcByCenterPointType">
380
		<annotation>
381
			<documentation>This variant of the arc requires that the points on the arc have to be computed instead of storing the coordinates directly. The control point is the center point of the arc plus the radius and the bearing at start and end. This represenation can be used only in 2D.</documentation>
382
		</annotation>
383
		<complexContent>
384
			<extension base="gml:AbstractCurveSegmentType">
385
				<sequence>
386
					<choice>
387
						<annotation>
388
							<documentation>GML supports two different ways to specify the control points of a curve segment.
389
1. A "pos" (DirectPositionType) or "pointProperty" (PointPropertyType) element. The "pos" element contains a center point that is only part of this curve segment, a "pointProperty" element contains a point that may be referenced from other geometry elements or reference another point defined outside of this curve segment (reuse of existing points).
390
2. The "posList" element can be used to specifiy the coordinates of the center point, too. The number of direct positions in the list must be one.</documentation>
391
						</annotation>
392
						<choice>
393
							<element ref="gml:pos"/>
394
							<element ref="gml:pointProperty"/>
395
							<element ref="gml:pointRep">
396
								<annotation>
397
									<documentation>Deprecated with GML version 3.1.0. Use "pointProperty" instead. Included for backwards compatibility with GML 3.0.0.</documentation>
398
								</annotation>
399
							</element>
400
						</choice>
401
						<element ref="gml:posList"/>
402
						<element ref="gml:coordinates">
403
							<annotation>
404
								<documentation>Deprecated with GML version 3.1.0. Use "posList" instead.</documentation>
405
							</annotation>
406
						</element>
407
					</choice>
408
					<element name="radius" type="gml:LengthType">
409
						<annotation>
410
							<documentation>The radius of the arc.</documentation>
411
						</annotation>
412
					</element>
413
					<element name="startAngle" type="gml:AngleType" minOccurs="0">
414
						<annotation>
415
							<documentation>The bearing of the arc at the start.</documentation>
416
						</annotation>
417
					</element>
418
					<element name="endAngle" type="gml:AngleType" minOccurs="0">
419
						<annotation>
420
							<documentation>The bearing of the arc at the end.</documentation>
421
						</annotation>
422
					</element>
423
				</sequence>
424
				<attribute name="interpolation" type="gml:CurveInterpolationType" fixed="circularArcCenterPointWithRadius">
425
					<annotation>
426
						<documentation>The attribute "interpolation" specifies the curve interpolation mechanism used for this segment. This mechanism
427
uses the control points and control parameters to determine the position of this curve segment. For an ArcByCenterPoint the interpolation is fixed as "circularArcCenterPointWithRadius".</documentation>
428
					</annotation>
429
				</attribute>
430
				<attribute name="numArc" type="integer" use="required" fixed="1">
431
					<annotation>
432
						<documentation>Since this type describes always a single arc, the attribute is fixed to "1".</documentation>
433
					</annotation>
434
				</attribute>
435
			</extension>
436
		</complexContent>
437
	</complexType>
438
	<!-- =========== global element in "_CurveSegment" substitution group ================ -->
439
	<element name="CircleByCenterPoint" type="gml:CircleByCenterPointType" substitutionGroup="gml:ArcByCenterPoint"/>
440
	<!-- =========================================================== -->
441
	<complexType name="CircleByCenterPointType">
442
		<annotation>
443
			<documentation>A CircleByCenterPoint is an ArcByCenterPoint with identical start and end angle to form a full circle. Again, this represenation can be used only in 2D.</documentation>
444
		</annotation>
445
		<complexContent>
446
			<extension base="gml:ArcByCenterPointType"/>
447
		</complexContent>
448
	</complexType>
449
	<!-- ================================================================================ -->
450
	<element name="OffsetCurve" type="gml:OffsetCurveType" substitutionGroup="gml:_CurveSegment"/>
451
	<!-- ================================================================================ -->
452
	<complexType name="OffsetCurveType">
453
		<annotation>
454
			<documentation>An offset curve is a curve at a constant
455
		 distance from the basis curve. They can be useful as a cheap
456
		 and simple alternative to constructing curves that are offsets	
457
		 by definition.</documentation>
458
		</annotation>
459
		<complexContent>
460
			<extension base="gml:AbstractCurveSegmentType">
461
				<sequence>
462
					<element name="offsetBase" type="gml:CurvePropertyType">
463
						<annotation>
464
							<documentation>offsetBase is a reference to thecurve from which this
465
							 curve is define	as an offset.</documentation>
466
						</annotation>
467
					</element>
468
					<element name="distance" type="gml:LengthType">
469
						<annotation>
470
							<documentation>distance is the distance at which the
471
							 offset curve is generated from the basis curve. In 2D systems, positive distances
472
							 are to be to the left of the basis curve, and the negative distances are to be to the 
473
							 right of the basis curve.</documentation>
474
						</annotation>
475
					</element>
476
					<element name="refDirection" type="gml:VectorType" minOccurs="0">
477
						<annotation>
478
							<documentation>refDistance is used to define the vector
479
       direction of the offset curve from the basis curve. It can
480
       be omitted in the 2D case, where the distance can be 
481
       positive or negative. In that case, distance defines left
482
       side (positive distance) or right side (negative distance)
483
       with respect to the tangent to the basis curve.
484

    
485
       In 3D the basis curve shall have a well defined tangent 
486
       direction for every point. The offset curve at any point 
487
       in 3D, the basis curve shall have a well-defined tangent
488
       direction for every point. The offset curve at any point
489
       (parameter) on the basis curve c is in the direction
490
       -   -   -         -               
491
       s = v x t  where  v = c.refDirection()  
492
       and
493
       -
494
       t = c.tangent()
495
                                                    -
496
       For the offset direction to be well-defined, v shall not
497
       on any point of the curve be in the same, or opposite, 
498
       direction as
499
       - 
500
       t.
501

    
502
       The default value of the refDirection shall be the local
503
       co-ordinate axis vector for elevation, which indicates up for
504
       the curve in a geographic sense.
505

    
506
       NOTE! If the refDirection is the positive tangent to the
507
       local elevation axis ("points upward"), then the offset
508
       vector points to the left of the curve when viewed from
509
       above.</documentation>
510
						</annotation>
511
					</element>
512
				</sequence>
513
			</extension>
514
		</complexContent>
515
	</complexType>
516
	<!-- ====================================================== -->
517
	<element name="AffinePlacement" type="gml:AffinePlacementType"/>
518
	<!-- ====================================================== -->
519
	<complexType name="AffinePlacementType">
520
		<annotation>
521
			<documentation>A placement takes a standard geometric
522
   construction and places it in geographic space. It defines a
523
   transformation from a constructive parameter space to the 
524
   co-ordinate space of the co-ordinate reference system being used.  
525
   Parameter spaces in formulae in this International Standard are 
526
   given as (u, v) in 2D and(u, v, w) in 3D. Co-ordinate reference 
527
   systems positions are given in formulae, in this International 
528
   Standard, by either (x, y) in 2D, or (x, y, z) in 3D.
529

    
530
   Affine placements are defined by linear transformations from 
531
   parameter space to the target co-ordiante space. 2-dimensional 
532
   Cartesian parameter space,(u,v) transforms into 3-dimensional co-
533
   ordinate reference systems,(x,y,z) by using an affine 
534
   transformation,(u,v)->(x,y,z) which is defined :
535

    
536
	x	ux vx  	x0
537
			 u	  
538
	y =	uy vy   + y0
539
			 v		
540
	x	uz vz	z0
541
	
542
   Then, given this equation, the location element of the 
543
   AffinePlacement is the direct position (x0, y0, z0), which is the
544
   target position of the origin in (u, v). The two reference
545
   directions (ux, uy, uz) and (vx, vy, vz) are the target     
546
   directions of the unit vectors at the origin in (u, v).</documentation>
547
		</annotation>
548
		<sequence>
549
			<element name="location" type="gml:DirectPositionType">
550
				<annotation>
551
					<documentation>The location property gives 
552
     the target of the parameter space origin. This is the vector  
553
    (x0, y0, z0) in the formulae above.</documentation>
554
				</annotation>
555
			</element>
556
			<element name="refDirection" type="gml:VectorType" maxOccurs="unbounded">
557
				<annotation>
558
					<documentation>The attribute refDirection gives the    
559
target directions for the co-ordinate basis vectors of the  
560
parameter space. These are the columns of the matrix in the 
561
formulae given above. The number of directions given shall be 
562
inDimension. The dimension of the directions shall be 
563
outDimension.</documentation>
564
				</annotation>
565
			</element>
566
			<element name="inDimension" type="positiveInteger">
567
				<annotation>
568
					<documentation>Dimension of the constructive parameter 
569
     space.</documentation>
570
				</annotation>
571
			</element>
572
			<element name="outDimension" type="positiveInteger">
573
				<annotation>
574
					<documentation>Dimension of the co-ordinate space.</documentation>
575
				</annotation>
576
			</element>
577
		</sequence>
578
	</complexType>
579
	<!-- = global element in "_CurveSegment" substitution group ========================== -->
580
	<element name="Clothoid" type="gml:ClothoidType" substitutionGroup="gml:_CurveSegment"/>
581
	<!-- ======================================================================= -->
582
	<complexType name="ClothoidType">
583
		<annotation>
584
			<documentation>A clothoid, or Cornu's spiral, is plane
585
   curve whose curvature is a fixed function of its length.
586
   In suitably chosen co-ordinates it is given by Fresnel's
587
   integrals.
588

    
589
    x(t) = 0-integral-t cos(AT*T/2)dT    
590
    
591
    y(t) = 0-integral-t sin(AT*T/2)dT
592
   
593
   This geometry is mainly used as a transition curve between
594
   curves of type straight line to circular arc or circular arc
595
   to circular arc. With this curve type it is possible to 
596
   achieve a C2-continous transition between the above mentioned
597
   curve types. One formula for the Clothoid is A*A = R*t where
598
   A is constant, R is the varying radius of curvature along the
599
   the curve and t is the length along and given in the Fresnel 
600
   integrals.</documentation>
601
		</annotation>
602
		<complexContent>
603
			<extension base="gml:AbstractCurveSegmentType">
604
				<sequence>
605
					<element name="refLocation">
606
						<complexType>
607
							<sequence>
608
								<element ref="gml:AffinePlacement">
609
									<annotation>
610
										<documentation>The "refLocation" is an affine mapping 
611
          that places  the curve defined by the Fresnel Integrals  
612
          into the co-ordinate reference system of this object.</documentation>
613
									</annotation>
614
								</element>
615
							</sequence>
616
						</complexType>
617
					</element>
618
					<element name="scaleFactor" type="decimal">
619
						<annotation>
620
							<documentation>The element gives the value for the
621
       constant in the Fresnel's integrals.</documentation>
622
						</annotation>
623
					</element>
624
					<element name="startParameter" type="double">
625
						<annotation>
626
							<documentation>The startParameter is the arc length
627
       distance from the inflection point that will be the start
628
       point for this curve segment. This shall be lower limit
629
       used in the Fresnel integral and is the value of the
630
       constructive parameter of this curve segment at its start
631
       point. The startParameter can either be positive or
632
       negative. 
633
       NOTE! If 0.0 (zero), lies between the startParameter and
634
       the endParameter of the clothoid, then the curve goes
635
       through the clothoid's inflection point, and the direction
636
       of its radius of curvature, given by the second
637
       derivative vector, changes sides with respect to the
638
       tangent vector. The term length distance for the</documentation>
639
						</annotation>
640
					</element>
641
					<element name="endParameter" type="double">
642
						<annotation>
643
							<documentation>The endParameter is the arc length
644
       distance from the inflection point that will be the end
645
       point for this curve segment. This shall be upper limit
646
       used in the Fresnel integral and is the value of the
647
       constructive parameter of this curve segment at its
648
       start point. The startParameter can either be positive
649
       or negative.</documentation>
650
						</annotation>
651
					</element>
652
				</sequence>
653
			</extension>
654
		</complexContent>
655
	</complexType>
656
	<!-- = global element in "_CurveSegment" substitution group = -->
657
	<element name="GeodesicString" type="gml:GeodesicStringType" substitutionGroup="gml:_CurveSegment"/>
658
	<!-- ======================================================== -->
659
	<complexType name="GeodesicStringType">
660
		<annotation>
661
			<documentation>A GeodesicString consists of sequence of
662
   geodesic segments. The type essentially combines a sequence of
663
   Geodesic into a single object.
664
   The GeodesicString is computed from two or more positions and an
665
   interpolation using geodesics defined from the geoid (or 
666
   ellipsoid) of the co-ordinate reference system being used.</documentation>
667
		</annotation>
668
		<complexContent>
669
			<extension base="gml:AbstractCurveSegmentType">
670
				<choice>
671
					<element ref="gml:posList"/>
672
					<group ref="gml:geometricPositionGroup" minOccurs="2" maxOccurs="unbounded"/>
673
				</choice>
674
				<attribute name="interpolation" type="gml:CurveInterpolationType" fixed="geodesic">
675
					<annotation>
676
						<documentation>The attribute "interpolation" specifies the
677
     curve interpolation mechanism used for this segment. This
678
     mechanism uses the control points and control parameters to
679
     determine the position of this curve segment. For an 
680
     GeodesicString the interpolation is fixed as "geodesic".</documentation>
681
					</annotation>
682
				</attribute>
683
			</extension>
684
		</complexContent>
685
	</complexType>
686
	<!-- = global element in "_CurveSegment" substitution group = -->
687
	<element name="Geodesic" type="gml:GeodesicType" substitutionGroup="gml:GeodesicString"/>
688
	<!-- ======================================================== -->
689
	<complexType name="GeodesicType">
690
		<annotation>
691
			<documentation>A Geodesic consists of two distinct
692
   positions joined by a geodesic curve. The control points of
693
   a Geodesic shall lie on the geodesic between its start
694
   point and end points. Between these two points, a geodesic
695
   curve defined from ellipsoid or geoid model used by the
696
   co-ordinate reference systems may be used to interpolate
697
   other positions. Any other point in the controlPoint array
698
   must fall on this geodesic.</documentation>
699
		</annotation>
700
		<complexContent>
701
			<extension base="gml:GeodesicStringType"/>
702
		</complexContent>
703
	</complexType>
704
	<!-- =========== global element in "_CurveSegment" substitution group ================ -->
705
	<element name="CubicSpline" type="gml:CubicSplineType" substitutionGroup="gml:_CurveSegment"/>
706
	<!-- =========================================================== -->
707
	<complexType name="CubicSplineType">
708
		<annotation>
709
			<documentation>Cubic splines are similar to line strings in that they are a sequence of segments each with its own defining function. A cubic spline uses the control points and a set of derivative parameters to define a piecewise 3rd degree polynomial interpolation. Unlike line-strings, the parameterization by arc length is not necessarily still a polynomial. 
710
				The function describing the curve must be C2, that is, have a continuous 1st and 2nd derivative at all points, and pass through the controlPoints in the order given. Between the control points, the curve segment is defined by a cubic polynomial. At each control point, the polynomial changes in such a manner that the 1st and 2nd derivative vectors are the same from either side. The control parameters record must contain vectorAtStart, and vectorAtEnd which are the unit tangent vectors at controlPoint[1] and controlPoint[n] where n = controlPoint.count. 
711
				Note: only the direction of the vectors is relevant, not their length.</documentation>
712
		</annotation>
713
		<complexContent>
714
			<extension base="gml:AbstractCurveSegmentType">
715
				<sequence>
716
					<choice>
717
						<annotation>
718
							<documentation>GML supports two different ways to specify the control points of a curve segment.
719
1. A sequence of "pos" (DirectPositionType) or "pointProperty" (PointPropertyType) elements. "pos" elements are control points that are only part of this curve segment, "pointProperty" elements contain a point that may be referenced from other geometry elements or reference another point defined outside of this curve segment (reuse of existing points).
720
2. The "posList" element allows for a compact way to specifiy the coordinates of the control points, if all control points are in the same coordinate reference systems and belong to this curve segment only. The number of direct positions in the list must be at least three.</documentation>
721
						</annotation>
722
						<choice minOccurs="2" maxOccurs="unbounded">
723
							<element ref="gml:pos"/>
724
							<element ref="gml:pointProperty"/>
725
							<element ref="gml:pointRep">
726
								<annotation>
727
									<documentation>Deprecated with GML version 3.1.0. Use "pointProperty" instead. Included for backwards compatibility with GML 3.0.0.</documentation>
728
								</annotation>
729
							</element>
730
						</choice>
731
						<element ref="gml:posList"/>
732
						<element ref="gml:coordinates">
733
							<annotation>
734
								<documentation>Deprecated with GML version 3.1.0. Use "posList" instead.</documentation>
735
							</annotation>
736
						</element>
737
					</choice>
738
					<element name="vectorAtStart" type="gml:VectorType">
739
						<annotation>
740
							<documentation>"vectorAtStart" is the unit tangent vector at the start point of the spline.</documentation>
741
						</annotation>
742
					</element>
743
					<element name="vectorAtEnd" type="gml:VectorType">
744
						<annotation>
745
							<documentation>"vectorAtEnd" is the unit tangent vector at the end point of the spline.</documentation>
746
						</annotation>
747
					</element>
748
				</sequence>
749
				<attribute name="interpolation" type="gml:CurveInterpolationType" fixed="cubicSpline">
750
					<annotation>
751
						<documentation>The attribute "interpolation" specifies the curve interpolation mechanism used for this segment. This mechanism
752
uses the control points and control parameters to determine the position of this curve segment. For a CubicSpline the interpolation is fixed as "cubicSpline".</documentation>
753
					</annotation>
754
				</attribute>
755
				<attribute name="degree" type="integer" fixed="3">
756
					<annotation>
757
						<documentation>The degree for a cubic spline is "3".</documentation>
758
					</annotation>
759
				</attribute>
760
			</extension>
761
		</complexContent>
762
	</complexType>
763
	<!-- =========================================================== -->
764
	<complexType name="KnotType">
765
		<annotation>
766
			<documentation>A knot is a breakpoint on a piecewise spline curve.</documentation>
767
		</annotation>
768
		<sequence>
769
			<element name="value" type="double">
770
				<annotation>
771
					<documentation>The property "value" is the value of the parameter at the knot of the spline. The sequence of knots shall be a non-decreasing sequence. That is, each knot's value in the sequence shall be equal to or greater than the previous knot's value. The use of equal consecutive knots is normally handled using the multiplicity.</documentation>
772
				</annotation>
773
			</element>
774
			<element name="multiplicity" type="nonNegativeInteger">
775
				<annotation>
776
					<documentation>The property "multiplicity" is the multiplicity of this knot used in the definition of the spline (with the same weight).</documentation>
777
				</annotation>
778
			</element>
779
			<element name="weight" type="double">
780
				<annotation>
781
					<documentation>The property "weight" is the value of the averaging weight used for this knot of the spline.</documentation>
782
				</annotation>
783
			</element>
784
		</sequence>
785
	</complexType>
786
	<!-- =========================================================== -->
787
	<complexType name="KnotPropertyType">
788
		<annotation>
789
			<documentation>Encapsulates a knot to use it in a geometric type.</documentation>
790
		</annotation>
791
		<sequence>
792
			<element name="Knot" type="gml:KnotType"/>
793
		</sequence>
794
	</complexType>
795
	<!-- =========== global element in "_CurveSegment" substitution group ================ -->
796
	<element name="BSpline" type="gml:BSplineType" substitutionGroup="gml:_CurveSegment"/>
797
	<!-- =========================================================== -->
798
	<complexType name="BSplineType">
799
		<annotation>
800
			<documentation>A B-Spline is a piecewise parametric polynomial or rational curve described in terms of control points and basis functions. Knots are breakpoints on the curve that connect its pieces. They are given as a non-decreasing sequence of real numbers. If the weights in the knots are equal then it is a polynomial spline. The degree is the algebraic degree of the basis functions.</documentation>
801
		</annotation>
802
		<complexContent>
803
			<extension base="gml:AbstractCurveSegmentType">
804
				<sequence>
805
					<choice>
806
						<annotation>
807
							<documentation>GML supports two different ways to specify the control points of a curve segment.
808
1. A sequence of "pos" (DirectPositionType) or "pointProperty" (PointPropertyType) elements. "pos" elements are control points that are only part of this curve segment, "pointProperty" elements contain a point that may be referenced from other geometry elements or reference another point defined outside of this curve segment (reuse of existing points).
809
2. The "posList" element allows for a compact way to specifiy the coordinates of the control points, if all control points are in the same coordinate reference systems and belong to this curve segment only.</documentation>
810
						</annotation>
811
						<choice minOccurs="0" maxOccurs="unbounded">
812
							<element ref="gml:pos"/>
813
							<element ref="gml:pointProperty"/>
814
							<element ref="gml:pointRep">
815
								<annotation>
816
									<documentation>Deprecated with GML version 3.1.0. Use "pointProperty" instead. Included for backwards compatibility with GML 3.0.0.</documentation>
817
								</annotation>
818
							</element>
819
						</choice>
820
						<element ref="gml:posList"/>
821
						<element ref="gml:coordinates">
822
							<annotation>
823
								<documentation>Deprecated with GML version 3.1.0. Use "posList" instead.</documentation>
824
							</annotation>
825
						</element>
826
					</choice>
827
					<element name="degree" type="nonNegativeInteger">
828
						<annotation>
829
							<documentation>The attribute "degree" shall be the degree of the polynomial used for interpolation in this spline.</documentation>
830
						</annotation>
831
					</element>
832
					<element name="knot" type="gml:KnotPropertyType" minOccurs="2" maxOccurs="unbounded">
833
						<annotation>
834
							<documentation>The property "knot" shall be the sequence of distinct knots used to define the spline basis functions.</documentation>
835
						</annotation>
836
					</element>
837
				</sequence>
838
				<attribute name="interpolation" type="gml:CurveInterpolationType" default="polynomialSpline">
839
					<annotation>
840
						<documentation>The attribute "interpolation" specifies the curve interpolation mechanism used for this segment. This mechanism
841
uses the control points and control parameters to determine the position of this curve segment. For a BSpline the interpolation can be either "polynomialSpline" or "rationalSpline", default is "polynomialSpline".</documentation>
842
					</annotation>
843
				</attribute>
844
				<attribute name="isPolynomial" type="boolean" use="optional">
845
					<annotation>
846
						<documentation>The attribute isPolynomial is set to true if this is a polynomial spline.</documentation>
847
					</annotation>
848
				</attribute>
849
				<attribute name="knotType" type="gml:KnotTypesType" use="optional">
850
					<annotation>
851
						<documentation>The attribute "knotType" gives the type of knot distribution used in defining this spline. This is for information only
852
and is set according to the different construction-functions.</documentation>
853
					</annotation>
854
				</attribute>
855
			</extension>
856
		</complexContent>
857
	</complexType>
858
	<!-- =========== global element in "_CurveSegment" substitution group ================ -->
859
	<element name="Bezier" type="gml:BezierType" substitutionGroup="gml:BSpline"/>
860
	<!-- =========================================================== -->
861
	<complexType name="BezierType">
862
		<annotation>
863
			<documentation>Bezier curves are polynomial splines that use Bezier or Bernstein polynomials for interpolation purposes. It is a special case of the B-Spline curve with two knots.</documentation>
864
		</annotation>
865
		<complexContent>
866
			<restriction base="gml:BSplineType">
867
				<sequence>
868
					<choice>
869
						<annotation>
870
							<documentation>GML supports two different ways to specify the control points of a curve segment.
871
1. A sequence of "pos" (DirectPositionType) or "pointProperty" (PointPropertyType) elements. "pos" elements are control points that are only part of this curve segment, "pointProperty" elements contain a point that may be referenced from other geometry elements or reference another point defined outside of this curve segment (reuse of existing points).
872
2. The "posList" element allows for a compact way to specifiy the coordinates of the control points, if all control points are in the same coordinate reference systems and belong to this curve segment only.</documentation>
873
						</annotation>
874
						<choice minOccurs="0" maxOccurs="unbounded">
875
							<element ref="gml:pos"/>
876
							<element ref="gml:pointProperty"/>
877
							<element ref="gml:pointRep">
878
								<annotation>
879
									<documentation>Deprecated with GML version 3.1.0. Use "pointProperty" instead. Included for backwards compatibility with GML 3.0.0.</documentation>
880
								</annotation>
881
							</element>
882
						</choice>
883
						<element ref="gml:posList"/>
884
						<element ref="gml:coordinates">
885
							<annotation>
886
								<documentation>Deprecated with GML version 3.1.0. Use "posList" instead.</documentation>
887
							</annotation>
888
						</element>
889
					</choice>
890
					<element name="degree" type="nonNegativeInteger">
891
						<annotation>
892
							<documentation>The attribute "degree" shall be the degree of the polynomial used for interpolation in this spline.</documentation>
893
						</annotation>
894
					</element>
895
					<element name="knot" type="gml:KnotPropertyType" minOccurs="2" maxOccurs="2">
896
						<annotation>
897
							<documentation>The property "knot" shall be the sequence of distinct knots used to define the spline basis functions.</documentation>
898
						</annotation>
899
					</element>
900
				</sequence>
901
				<attribute name="interpolation" type="gml:CurveInterpolationType" fixed="polynomialSpline">
902
					<annotation>
903
						<documentation>The attribute "interpolation" specifies the curve interpolation mechanism used for this segment. This mechanism
904
uses the control points and control parameters to determine the position of this curve segment. For a Bezier the interpolation is fixed as "polynomialSpline".</documentation>
905
					</annotation>
906
				</attribute>
907
				<attribute name="isPolynomial" type="boolean" fixed="true">
908
					<annotation>
909
						<documentation>The attribute isPolynomial is set to true as this is a polynomial spline.</documentation>
910
					</annotation>
911
				</attribute>
912
				<attribute name="knotType" type="gml:KnotTypesType" use="prohibited">
913
					<annotation>
914
						<documentation>The property "knotType" is not relevant for Bezier curve segments.</documentation>
915
					</annotation>
916
				</attribute>
917
			</restriction>
918
		</complexContent>
919
	</complexType>
920
	<!-- =========================================================== -->
921
	<element name="Surface" type="gml:SurfaceType" substitutionGroup="gml:_Surface"/>
922
	<!-- =========================================================== -->
923
	<complexType name="SurfaceType">
924
		<annotation>
925
			<documentation>A Surface is a 2-dimensional primitive and is composed of one or more surface patches. The surface patches are connected to one another.
926
				The orientation of the surface is positive ("up"). The orientation of a surface chooses an "up" direction through the choice of the upward normal, which, if the surface is not a cycle, is the side of the surface from which the exterior boundary appears counterclockwise. Reversal of the surface orientation reverses the curve orientation of each boundary component, and interchanges the conceptual "up" and "down" direction of the surface. If the surface is the boundary of a solid, the "up" direction is usually outward. For closed surfaces, which have no boundary, the up direction is that of the surface patches, which must be consistent with one another. Its included surface patches describe the interior structure of the Surface.</documentation>
927
		</annotation>
928
		<complexContent>
929
			<extension base="gml:AbstractSurfaceType">
930
				<sequence>
931
					<element ref="gml:patches">
932
						<annotation>
933
							<documentation>This element encapsulates the patches of the surface.</documentation>
934
						</annotation>
935
					</element>
936
				</sequence>
937
			</extension>
938
		</complexContent>
939
	</complexType>
940
	<!-- =========================================================== -->
941
	<element name="baseSurface" type="gml:SurfacePropertyType">
942
		<annotation>
943
			<appinfo>
944
				<sch:pattern name="Check either href or content not both">
945
					<sch:rule context="gml:baseSurface">
946
						<sch:extends rule="hrefOrContent"/>
947
					</sch:rule>
948
				</sch:pattern>
949
			</appinfo>
950
			<documentation>This property element either references a surface via the XLink-attributes or contains the surface element. A surface element is any element which is substitutable for "_Surface".</documentation>
951
		</annotation>
952
	</element>
953
	<!-- =========================================================== -->
954
	<element name="OrientableSurface" type="gml:OrientableSurfaceType" substitutionGroup="gml:_Surface"/>
955
	<!-- =========================================================== -->
956
	<complexType name="OrientableSurfaceType">
957
		<annotation>
958
			<documentation>OrientableSurface consists of a surface and an orientation. If the orientation is "+", then the OrientableSurface is identical to the baseSurface. If the orientation is "-", then the OrientableSurface is a reference to a Surface with an up-normal that reverses the direction for this OrientableSurface, the sense of "the top of the surface".</documentation>
959
		</annotation>
960
		<complexContent>
961
			<extension base="gml:AbstractSurfaceType">
962
				<sequence>
963
					<element ref="gml:baseSurface">
964
						<annotation>
965
							<documentation>References or contains the base surface (positive orientation).</documentation>
966
						</annotation>
967
					</element>
968
				</sequence>
969
				<attribute name="orientation" type="gml:SignType" default="+">
970
					<annotation>
971
						<documentation>If the orientation is "+", then the OrientableSurface is identical to the baseSurface. If the orientation is "-", then the OrientableSurface is a reference to a Surface with an up-normal that reverses the direction for this OrientableSurface, the sense of "the top of the surface". "+" is the default value.</documentation>
972
					</annotation>
973
				</attribute>
974
			</extension>
975
		</complexContent>
976
	</complexType>
977
	<!-- =========================================================== -->
978
	<!-- surface patches (2-dimensional) -->
979
	<!-- =========================================================== -->
980
	<!-- =========================================================== -->
981
	<element name="_SurfacePatch" type="gml:AbstractSurfacePatchType" abstract="true">
982
		<annotation>
983
			<documentation>The "_SurfacePatch" element is the abstract head of the substituition group for all surface pach elements describing a continuous portion of a surface.</documentation>
984
		</annotation>
985
	</element>
986
	<!-- =========================================================== -->
987
	<complexType name="AbstractSurfacePatchType" abstract="true">
988
		<annotation>
989
			<documentation>A surface patch defines a homogenuous portion of a surface.</documentation>
990
		</annotation>
991
		<sequence/>
992
	</complexType>
993
	<!-- =========================================================== -->
994
	<element name="patches" type="gml:SurfacePatchArrayPropertyType">
995
		<annotation>
996
			<documentation>This property element contains a list of surface patches. The order of the elements is significant and shall be preserved when processing the array.</documentation>
997
		</annotation>
998
	</element>
999
	<!-- =========================================================== -->
1000
	<complexType name="SurfacePatchArrayPropertyType">
1001
		<annotation>
1002
			<documentation>A container for an array of surface patches.</documentation>
1003
		</annotation>
1004
		<sequence minOccurs="0" maxOccurs="unbounded">
1005
			<element ref="gml:_SurfacePatch"/>
1006
		</sequence>
1007
	</complexType>
1008
	<!-- =========================================================== -->
1009
	<element name="PolygonPatch" type="gml:PolygonPatchType" substitutionGroup="gml:_SurfacePatch"/>
1010
	<!-- =========================================================== -->
1011
	<complexType name="PolygonPatchType">
1012
		<annotation>
1013
			<documentation>A PolygonPatch is a surface patch that is defined by a set of boundary curves and an underlying surface to which these curves adhere. The curves are coplanar and the polygon uses planar interpolation in its interior. Implements GM_Polygon of ISO 19107.</documentation>
1014
		</annotation>
1015
		<complexContent>
1016
			<extension base="gml:AbstractSurfacePatchType">
1017
				<sequence>
1018
					<element ref="gml:exterior" minOccurs="0"/>
1019
					<element ref="gml:interior" minOccurs="0" maxOccurs="unbounded"/>
1020
				</sequence>
1021
				<attribute name="interpolation" type="gml:SurfaceInterpolationType" fixed="planar">
1022
					<annotation>
1023
						<documentation>The attribute "interpolation" specifies the interpolation mechanism used for this surface patch. Currently only planar surface patches are defined in GML 3, the attribute is fixed to "planar", i.e. the interpolation method shall return points on a single plane. The boundary of the patch shall be contained within that plane.</documentation>
1024
					</annotation>
1025
				</attribute>
1026
			</extension>
1027
		</complexContent>
1028
	</complexType>
1029
	<!-- =========================================================== -->
1030
	<element name="Triangle" type="gml:TriangleType" substitutionGroup="gml:_SurfacePatch"/>
1031
	<!-- =========================================================== -->
1032
	<complexType name="TriangleType">
1033
		<annotation>
1034
			<documentation>Represents a triangle as a surface with an outer boundary consisting of a linear ring. Note that this is a polygon (subtype) with no inner boundaries. The number of points in the linear ring must be four.</documentation>
1035
		</annotation>
1036
		<complexContent>
1037
			<extension base="gml:AbstractSurfacePatchType">
1038
				<sequence>
1039
					<element ref="gml:exterior">
1040
						<annotation>
1041
							<documentation>Constraint: The Ring shall be a LinearRing and must form a triangle, the first and the last position must be co-incident.</documentation>
1042
						</annotation>
1043
					</element>
1044
				</sequence>
1045
				<attribute name="interpolation" type="gml:SurfaceInterpolationType" fixed="planar">
1046
					<annotation>
1047
						<documentation>The attribute "interpolation" specifies the interpolation mechanism used for this surface patch. Currently only planar surface patches are defined in GML 3, the attribute is fixed to "planar", i.e. the interpolation method shall return points on a single plane. The boundary of the patch shall be contained within that plane.</documentation>
1048
					</annotation>
1049
				</attribute>
1050
			</extension>
1051
		</complexContent>
1052
	</complexType>
1053
	<!-- =========================================================== -->
1054
	<element name="Rectangle" type="gml:RectangleType" substitutionGroup="gml:_SurfacePatch"/>
1055
	<!-- =========================================================== -->
1056
	<complexType name="RectangleType">
1057
		<annotation>
1058
			<documentation>Represents a rectangle as a surface with an outer boundary consisting of a linear ring. Note that this is a polygon (subtype) with no inner boundaries. The number of points in the linear ring must be five.</documentation>
1059
		</annotation>
1060
		<complexContent>
1061
			<extension base="gml:AbstractSurfacePatchType">
1062
				<sequence>
1063
					<element ref="gml:exterior">
1064
						<annotation>
1065
							<documentation>Constraint: The Ring shall be a LinearRing and must form a rectangle; the first and the last position must be co-incident.</documentation>
1066
						</annotation>
1067
					</element>
1068
				</sequence>
1069
				<attribute name="interpolation" type="gml:SurfaceInterpolationType" fixed="planar">
1070
					<annotation>
1071
						<documentation>The attribute "interpolation" specifies the interpolation mechanism used for this surface patch. Currently only planar surface patches are defined in GML 3, the attribute is fixed to "planar", i.e. the interpolation method shall return points on a single plane. The boundary of the patch shall be contained within that plane.</documentation>
1072
					</annotation>
1073
				</attribute>
1074
			</extension>
1075
		</complexContent>
1076
	</complexType>
1077
	<!-- =========================================================== -->
1078
	<element name="curveMember" type="gml:CurvePropertyType">
1079
		<annotation>
1080
			<documentation>This property element either references a curve via the XLink-attributes or contains the curve element. A curve element is any element which is substitutable for "_Curve".</documentation>
1081
		</annotation>
1082
	</element>
1083
	<!-- =========================================================== -->
1084
	<element name="Ring" type="gml:RingType" substitutionGroup="gml:_Ring"/>
1085
	<!-- =========================================================== -->
1086
	<complexType name="RingType">
1087
		<annotation>
1088
			<documentation>A Ring is used to represent a single connected component of a surface boundary. It consists of a sequence of curves connected in a cycle (an object whose boundary is empty).
1089
A Ring is structurally similar to a composite curve in that the endPoint of each curve in the sequence is the startPoint of the next curve in the Sequence. Since the sequence is circular, there is no exception to this rule. Each ring, like all boundaries, is a cycle and each ring is simple.
1090
NOTE: Even though each Ring is simple, the boundary need not be simple. The easiest case of this is where one of the interior rings of a surface is tangent to its exterior ring.</documentation>
1091
		</annotation>
1092
		<complexContent>
1093
			<extension base="gml:AbstractRingType">
1094
				<sequence>
1095
					<element ref="gml:curveMember" maxOccurs="unbounded">
1096
						<annotation>
1097
							<documentation>This element references or contains one curve in the composite curve. The curves are contiguous, the collection of curves is ordered.
1098
NOTE: This definition allows for a nested structure, i.e. a CompositeCurve may use, for example, another CompositeCurve as a curve member.</documentation>
1099
						</annotation>
1100
					</element>
1101
				</sequence>
1102
			</extension>
1103
		</complexContent>
1104
	</complexType>
1105
	<!-- =========================================================== -->
1106
	<complexType name="RingPropertyType">
1107
		<annotation>
1108
			<documentation>Encapsulates a ring to represent properties in features or geometry collections.</documentation>
1109
		</annotation>
1110
		<sequence>
1111
			<element ref="gml:Ring"/>
1112
		</sequence>
1113
	</complexType>
1114
	<!-- =========================================================== -->
1115
	<group name="PointGrid">
1116
		<annotation>
1117
			<documentation>Reference points which are organised
1118
   into sequences or grids(sequences of equal length sequences).</documentation>
1119
		</annotation>
1120
		<sequence>
1121
			<element name="row" maxOccurs="unbounded">
1122
				<complexType>
1123
					<sequence>
1124
						<group ref="gml:geometricPositionListGroup"/>
1125
					</sequence>
1126
				</complexType>
1127
			</element>
1128
		</sequence>
1129
	</group>
1130
	<!-- ====================================================== -->
1131
	<element name="_ParametricCurveSurface" type="gml:AbstractParametricCurveSurfaceType" abstract="true" substitutionGroup="gml:_SurfacePatch"/>
1132
	<!-- ====================================================== -->
1133
	<complexType name="AbstractParametricCurveSurfaceType">
1134
		<annotation>
1135
			<documentation>
1136
			</documentation>
1137
		</annotation>
1138
		<complexContent>
1139
			<extension base="gml:AbstractSurfacePatchType"/>
1140
		</complexContent>
1141
	</complexType>
1142
	<!-- ======================================================== -->
1143
	<element name="_GriddedSurface" type="gml:AbstractGriddedSurfaceType" abstract="true" substitutionGroup="gml:_ParametricCurveSurface"/>
1144
	<!-- ======================================================== -->
1145
	<complexType name="AbstractGriddedSurfaceType">
1146
		<annotation>
1147
			<documentation>A gridded surface is a parametric curve
1148
   surface derived from a rectangular grid in the parameter
1149
   space. The rows from this grid are control points for
1150
   horizontal surface curves; the columns are control points
1151
   for vertical surface curves. The working assumption is that
1152
   for a pair of parametric co-ordinates (s, t) that the
1153
   horizontal curves for each integer offset are calculated
1154
   and evaluated at "s". The defines a sequence of control
1155
   points:
1156
   
1157
   cn(s) : s  1 .....columns 
1158

    
1159
   From this sequence a vertical curve is calculated for "s",
1160
   and evaluated at "t". In most cases, the order of
1161
   calculation (horizontal-vertical vs. vertical-horizontal)
1162
   does not make a difference. Where it does, the horizontal-   
1163
   vertical order shall be the one used.
1164

    
1165
   Logically, any pair of curve interpolation types can lead
1166
   to a subtype of GriddedSurface. The following clauses
1167
   define some most commonly encountered surfaces that can
1168
   be represented in this manner.</documentation>
1169
		</annotation>
1170
		<complexContent>
1171
			<extension base="gml:AbstractParametricCurveSurfaceType">
1172
				<sequence>
1173
					<group ref="gml:PointGrid">
1174
						<annotation>
1175
							<documentation>This is the double indexed sequence
1176
       of control points, given in row major form. 
1177
       NOTE! There in no assumption made about the shape
1178
       of the grid. 
1179
       For example, the positions need not effect a "21/2D"
1180
       surface, consecutive points may be equal in any or all
1181
       of the ordinates. Further, the curves in either or both
1182
       directions may close.</documentation>
1183
						</annotation>
1184
					</group>
1185
					<element name="rows" type="integer" minOccurs="0">
1186
						<annotation>
1187
							<documentation>The attribute rows gives the number
1188
         of rows in the parameter grid.</documentation>
1189
						</annotation>
1190
					</element>
1191
					<element name="columns" type="integer" minOccurs="0">
1192
						<annotation>
1193
							<documentation>The attribute columns gives the number
1194
        of columns in the parameter grid.</documentation>
1195
						</annotation>
1196
					</element>
1197
				</sequence>
1198
			</extension>
1199
		</complexContent>
1200
	</complexType>
1201
	<!-- ======================================================== -->
1202
	<element name="Cone" type="gml:ConeType" substitutionGroup="gml:_GriddedSurface"/>
1203
	<!-- ======================================================== -->
1204
	<complexType name="ConeType">
1205
		<annotation>
1206
			<documentation>A cone is a gridded surface given as a
1207
   family of conic sections whose control points vary linearly.
1208
   NOTE! A 5-point ellipse with all defining positions identical
1209
   is a point. Thus, a truncated elliptical cone can be given as a
1210
   2x5 set of control points
1211
   ((P1, P1, P1, P1, P1), (P2, P3, P4, P5, P6)). P1 is the apex 
1212
   of the cone. P2, P3,P4, P5 and P6 are any five distinct points
1213
   around the base ellipse of the cone. If the horizontal curves
1214
   are circles as opposed to ellipses, the a circular cone can
1215
   be constructed using ((P1, P1, P1),(P2, P3, P4)). The apex most     
1216
   not coinside with the other plane.</documentation>
1217
		</annotation>
1218
		<complexContent>
1219
			<extension base="gml:AbstractGriddedSurfaceType">
1220
				<attribute name="horizontalCurveType" type="gml:CurveInterpolationType" fixed="circularArc3Points"/>
1221
				<attribute name="verticalCurveType" type="gml:CurveInterpolationType" fixed="linear"/>
1222
			</extension>
1223
		</complexContent>
1224
	</complexType>
1225
	<!-- ======================================================== -->
1226
	<element name="Cylinder" type="gml:CylinderType" substitutionGroup="gml:_GriddedSurface"/>
1227
	<!-- ======================================================== -->
1228
	<complexType name="CylinderType">
1229
		<annotation>
1230
			<documentation>A cylinder is a gridded surface given as a
1231
   family of circles whose positions vary along a set of parallel
1232
   lines, keeping the cross sectional horizontal curves of a
1233
   constant shape.
1234
   NOTE! Given the same working assumptions as in the previous
1235
   note, a Cylinder can be given by two circles, giving us the
1236
   control points of the form ((P1, P2, P3),(P4, P5, P6)).</documentation>
1237
		</annotation>
1238
		<complexContent>
1239
			<extension base="gml:AbstractGriddedSurfaceType">
1240
				<attribute name="horizontalCurveType" type="gml:CurveInterpolationType" fixed="circularArc3Points"/>
1241
				<attribute name="verticalCurveType" type="gml:CurveInterpolationType" fixed="linear"/>
1242
			</extension>
1243
		</complexContent>
1244
	</complexType>
1245
	<!-- ======================================================== -->
1246
	<element name="Sphere" type="gml:SphereType" substitutionGroup="gml:_GriddedSurface"/>
1247
	<!-- ======================================================== -->
1248
	<complexType name="SphereType">
1249
		<annotation>
1250
			<documentation>A sphere is a gridded surface given as a
1251
   family of circles whose positions vary linearly along the
1252
   axis of the sphere, and whise radius varies in proportions to
1253
   the cosine function of the central angle. The horizontal 
1254
   circles resemble lines of constant latitude, and the vertical
1255
   arcs resemble lines of constant longitude. 
1256
   NOTE! If the control points are sorted in terms of increasing
1257
   longitude, and increasing latitude, the upNormal of a sphere
1258
   is the outward normal.
1259
   EXAMPLE If we take a gridded set of latitudes and longitudes
1260
   in degrees,(u,v) such as
1261

    
1262
	(-90,-180)  (-90,-90)  (-90,0)  (-90,  90) (-90, 180) 
1263
	(-45,-180)  (-45,-90)  (-45,0)  (-45,  90) (-45, 180) 
1264
	(  0,-180)  (  0,-90)  (  0,0)  (  0,  90) (  0, 180)
1265
	( 45,-180)  ( 45,-90)  ( 45,0)  ( 45, -90) ( 45, 180)
1266
	( 90,-180)  ( 90,-90)  ( 90,0)  ( 90, -90) ( 90, 180)
1267
   
1268
   And map these points to 3D using the usual equations (where R
1269
   is the radius of the required sphere).
1270

    
1271
    z = R sin u
1272
    x = (R cos u)(sin v)
1273
    y = (R cos u)(cos v)
1274

    
1275
   We have a sphere of Radius R, centred at (0,0), as a gridded
1276
   surface. Notice that the entire first row and the entire last
1277
   row of the control points map to a single point in each 3D
1278
   Euclidean space, North and South poles respectively, and that
1279
   each horizontal curve closes back on itself forming a 
1280
   geometric cycle. This gives us a metrically bounded (of finite
1281
   size), topologically unbounded (not having a boundary, a
1282
   cycle) surface.</documentation>
1283
		</annotation>
1284
		<complexContent>
1285
			<extension base="gml:AbstractGriddedSurfaceType">
1286
				<attribute name="horizontalCurveType" type="gml:CurveInterpolationType" fixed="circularArc3Points"/>
1287
				<attribute name="verticalCurveType" type="gml:CurveInterpolationType" fixed="circularArc3Points"/>
1288
			</extension>
1289
		</complexContent>
1290
	</complexType>
1291
	<!-- ======================================================== -->
1292
	<element name="PolyhedralSurface" type="gml:PolyhedralSurfaceType" substitutionGroup="gml:Surface"/>
1293
	<!-- ======================================================== -->
1294
	<complexType name="PolyhedralSurfaceType">
1295
		<annotation>
1296
			<documentation>A polyhedral surface is a surface composed
1297
   of polygon surfaces connected along their common boundary 
1298
   curves. This differs from the surface type only in the
1299
   restriction on the types of surface patches acceptable.</documentation>
1300
		</annotation>
1301
		<complexContent>
1302
			<restriction base="gml:SurfaceType">
1303
				<sequence>
1304
					<group ref="gml:StandardObjectProperties"/>
1305
					<element ref="gml:polygonPatches">
1306
						<annotation>
1307
							<documentation>This property encapsulates the patches of 
1308
      the polyhedral surface.</documentation>
1309
						</annotation>
1310
					</element>
1311
				</sequence>
1312
			</restriction>
1313
		</complexContent>
1314
	</complexType>
1315
	<!-- ======================================================== -->
1316
	<element name="polygonPatches" type="gml:PolygonPatchArrayPropertyType" substitutionGroup="gml:patches">
1317
		<annotation>
1318
			<documentation>This property element contains a list of
1319
   polygon patches. The order of the patches is significant and 
1320
   shall be preserved when processing the list.</documentation>
1321
		</annotation>
1322
	</element>
1323
	<!-- ======================================================== -->
1324
	<complexType name="PolygonPatchArrayPropertyType">
1325
		<annotation>
1326
			<documentation>This type defines a container for an array of 
1327
   polygon patches.</documentation>
1328
		</annotation>
1329
		<complexContent>
1330
			<restriction base="gml:SurfacePatchArrayPropertyType">
1331
				<sequence minOccurs="0" maxOccurs="unbounded">
1332
					<element ref="gml:PolygonPatch"/>
1333
				</sequence>
1334
			</restriction>
1335
		</complexContent>
1336
	</complexType>
1337
	<!-- ======================================================== -->
1338
	<element name="trianglePatches" type="gml:TrianglePatchArrayPropertyType" substitutionGroup="gml:patches">
1339
		<annotation>
1340
			<documentation>This property element contains a list of
1341
   triangle patches. The order of the patches is significant and 
1342
   shall be preserved when processing the list.</documentation>
1343
		</annotation>
1344
	</element>
1345
	<!-- ======================================================== -->
1346
	<complexType name="TrianglePatchArrayPropertyType">
1347
		<annotation>
1348
			<documentation>This type defines a container for an array of 
1349
     triangle patches.</documentation>
1350
		</annotation>
1351
		<complexContent>
1352
			<restriction base="gml:SurfacePatchArrayPropertyType">
1353
				<sequence minOccurs="0" maxOccurs="unbounded">
1354
					<element ref="gml:Triangle"/>
1355
				</sequence>
1356
			</restriction>
1357
		</complexContent>
1358
	</complexType>
1359
	<!-- ======================================================== -->
1360
	<element name="TriangulatedSurface" type="gml:TriangulatedSurfaceType" substitutionGroup="gml:Surface"/>
1361
	<!-- ======================================================== -->
1362
	<complexType name="TriangulatedSurfaceType">
1363
		<annotation>
1364
			<documentation>A triangulated surface is a polyhedral 
1365
   surface that is composed only of triangles. There is no
1366
   restriction on how the triangulation is derived.</documentation>
1367
		</annotation>
1368
		<complexContent>
1369
			<restriction base="gml:SurfaceType">
1370
				<sequence>
1371
					<group ref="gml:StandardObjectProperties"/>
1372
					<element ref="gml:trianglePatches">
1373
						<annotation>
1374
							<documentation>This property encapsulates the patches of 
1375
      the triangulated surface.</documentation>
1376
						</annotation>
1377
					</element>
1378
				</sequence>
1379
			</restriction>
1380
		</complexContent>
1381
	</complexType>
1382
	<!-- ======================================================== -->
1383
	<element name="Tin" type="gml:TinType" substitutionGroup="gml:TriangulatedSurface"/>
1384
	<!-- ======================================================== -->
1385
	<complexType name="TinType">
1386
		<annotation>
1387
			<documentation>A tin is a triangulated surface that uses
1388
   the Delauny algorithm or a similar algorithm complemented with
1389
   consideration of breaklines, stoplines, and maximum length of 
1390
   triangle sides. These networks satisfy the Delauny's criterion
1391
   away from the modifications: Fore each triangle in the 
1392
   network, the circle passing through its vertices does not
1393
   contain, in its interior, the vertex of any other triangle.</documentation>
1394
		</annotation>
1395
		<complexContent>
1396
			<extension base="gml:TriangulatedSurfaceType">
1397
				<sequence>
1398
					<element name="stopLines" type="gml:LineStringSegmentArrayPropertyType" minOccurs="0" maxOccurs="unbounded">
1399
						<annotation>
1400
							<documentation>Stoplines are lines where the local
1401
       continuity or regularity of the surface is questionable.
1402
       In the area of these pathologies, triangles intersecting
1403
       a stopline shall be removed from the tin surface, leaving
1404
       holes in the surface. If coincidence occurs on surface
1405
       boundary triangles, the result shall be a change of the 
1406
       surface boundary. Stoplines contains all these
1407
       pathological segments as a set of line strings.</documentation>
1408
						</annotation>
1409
					</element>
1410
					<element name="breakLines" type="gml:LineStringSegmentArrayPropertyType" minOccurs="0" maxOccurs="unbounded">
1411
						<annotation>
1412
							<documentation>Breaklines are lines of a critical
1413
       nature to the shape of the surface, representing local
1414
       ridges, or depressions (such as drainage lines) in the
1415
       surface. As such their constituent segments must be
1416
       included in the tin eve if doing so
1417
       violates the Delauny criterion. Break lines contains these
1418
       critical segments as a set of line strings.</documentation>
1419
						</annotation>
1420
					</element>
1421
					<element name="maxLength" type="gml:LengthType">
1422
						<annotation>
1423
							<documentation>Areas of the surface where data is not 
1424
       sufficiently dense to assure reasonable calculation shall be    
1425
       removed by adding a retention criterion for triangles based 
1426
       on the length of their sides. For many triangle sides  
1427
       exceeding maximum length, the adjacent triangles to that 
1428
       triangle side shall be removed from the surface.</documentation>
1429
						</annotation>
1430
					</element>
1431
					<element name="controlPoint">
1432
						<annotation>
1433
							<documentation>The corners of the triangles in the TIN 
1434
  are often referred to as pots. ControlPoint shall contain a 
1435
  set of the GM_Position used as posts for this TIN. Since each  
1436
  TIN contains triangles, there must be at least 3 posts. The 
1437
       order in which these points are given does not affect the 
1438
       surface that is represented. Application schemas may add 
1439
       information based on ordering of control points to facilitate 
1440
       the reconstruction of the TIN from the control points.</documentation>
1441
						</annotation>
1442
						<complexType>
1443
							<choice>
1444
								<element ref="gml:posList"/>
1445
								<group ref="gml:geometricPositionGroup" minOccurs="3" maxOccurs="unbounded"/>
1446
							</choice>
1447
						</complexType>
1448
					</element>
1449
				</sequence>
1450
			</extension>
1451
		</complexContent>
1452
	</complexType>
1453
	<complexType name="LineStringSegmentArrayPropertyType">
1454
		<sequence>
1455
			<element ref="gml:LineStringSegment" minOccurs="0" maxOccurs="unbounded"/>
1456
		</sequence>
1457
	</complexType>
1458
	<!-- =========================================================== -->
1459
	<!-- primitive geometry objects (3-dimensional) -->
1460
	<!-- =========================================================== -->
1461
	<!-- =========================================================== -->
1462
	<element name="_Solid" type="gml:AbstractSolidType" abstract="true" substitutionGroup="gml:_GeometricPrimitive">
1463
		<annotation>
1464
			<documentation>The "_Solid" element is the abstract head of the substituition group for all (continuous) solid elements.</documentation>
1465
		</annotation>
1466
	</element>
1467
	<!-- =========================================================== -->
1468
	<complexType name="AbstractSolidType">
1469
		<annotation>
1470
			<documentation>An abstraction of a solid to support the different levels of complexity. A solid is always contiguous.</documentation>
1471
		</annotation>
1472
		<complexContent>
1473
			<extension base="gml:AbstractGeometricPrimitiveType"/>
1474
		</complexContent>
1475
	</complexType>
1476
	<!-- =========================================================== -->
1477
	<element name="solidProperty" type="gml:SolidPropertyType">
1478
		<annotation>
1479
			<appinfo>
1480
				<sch:pattern name="Check either href or content not both">
1481
					<sch:rule context="gml:solidProperty">
1482
						<sch:extends rule="hrefOrContent"/>
1483
					</sch:rule>
1484
				</sch:pattern>
1485
			</appinfo>
1486
			<documentation>This property element either references a solid via the XLink-attributes or contains the solid element. solidProperty is the predefined property which can be used by GML Application Schemas whenever a GML Feature has a property with a value that is substitutable for _Solid.</documentation>
1487
		</annotation>
1488
	</element>
1489
	<!-- =========================================================== -->
1490
	<complexType name="SolidPropertyType">
1491
		<annotation>
1492
			<documentation>A property that has a solid as its value domain can 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 must be given, but neither both nor none.</documentation>
1493
		</annotation>
1494
		<sequence minOccurs="0">
1495
			<element ref="gml:_Solid"/>
1496
		</sequence>
1497
		<attributeGroup ref="gml:AssociationAttributeGroup">
1498
			<annotation>
1499
				<documentation>This attribute group includes the XLink attributes (see xlinks.xsd). XLink is used in GML to reference remote resources (including those elsewhere in the same document). A simple link element can be constructed by including a specific set of XLink attributes. The XML Linking Language (XLink) is currently a Proposed Recommendation of the World Wide Web Consortium. XLink allows elements to be inserted into XML documents so as to create sophisticated links between resources; such links can be used to reference remote properties.
1500
A simple link element can be used to implement pointer functionality, and this functionality has been built into various GML 3 elements by including the gml:AssociationAttributeGroup.</documentation>
1501
			</annotation>
1502
		</attributeGroup>
1503
	</complexType>
1504
	<!-- =========================================================== -->
1505
	<element name="solidArrayProperty" type="gml:SolidArrayPropertyType"/>
1506
	<!-- =========================================================== -->
1507
	<complexType name="SolidArrayPropertyType">
1508
		<annotation>
1509
			<documentation>A container for an array of solids. The elements are always contained in the array property, referencing geometry elements or arrays of geometry elements is not supported.</documentation>
1510
		</annotation>
1511
		<sequence minOccurs="0" maxOccurs="unbounded">
1512
			<element ref="gml:_Solid"/>
1513
		</sequence>
1514
	</complexType>
1515
	<!-- =========================================================== -->
1516
	<element name="Solid" type="gml:SolidType" substitutionGroup="gml:_Solid"/>
1517
	<!-- =========================================================== -->
1518
	<complexType name="SolidType">
1519
		<annotation>
1520
			<documentation>A solid is the basis for 3-dimensional geometry. The extent of a solid is defined by the boundary surfaces (shells). A shell is represented by a composite surface, where every  shell is used to represent a single connected component of the boundary of a solid. It consists of a composite surface (a list of orientable surfaces) connected in a topological cycle (an object whose boundary is empty). Unlike a Ring, a Shell's elements have no natural sort order. Like Rings, Shells are simple.</documentation>
1521
		</annotation>
1522
		<complexContent>
1523
			<extension base="gml:AbstractSolidType">
1524
				<sequence>
1525
					<element name="exterior" type="gml:SurfacePropertyType" minOccurs="0">
1526
						<annotation>
1527
							<appinfo>
1528
								<sch:pattern name="Check either href or content not both">
1529
									<sch:rule context="gml:exterior">
1530
										<sch:extends rule="hrefOrContent"/>
1531
									</sch:rule>
1532
								</sch:pattern>
1533
							</appinfo>
1534
							<documentation>Boundaries of solids are similar to surface boundaries. In normal 3-dimensional Euclidean space, one (composite) surface is distinguished as the exterior. In the more general case, this is not always possible.</documentation>
1535
						</annotation>
1536
					</element>
1537
					<element name="interior" type="gml:SurfacePropertyType" minOccurs="0" maxOccurs="unbounded">
1538
						<annotation>
1539
							<appinfo>
1540
								<sch:pattern name="Check either href or content not both">
1541
									<sch:rule context="gml:interior">
1542
										<sch:extends rule="hrefOrContent"/>
1543
									</sch:rule>
1544
								</sch:pattern>
1545
							</appinfo>
1546
							<documentation>Boundaries of solids are similar to surface boundaries.</documentation>
1547
						</annotation>
1548
					</element>
1549
				</sequence>
1550
			</extension>
1551
		</complexContent>
1552
	</complexType>
1553
	<!-- =========================================================== -->
1554
	<!-- predefined simple types (enumerations, simple typed arrays) -->
1555
	<!-- =========================================================== -->
1556
	<simpleType name="CurveInterpolationType">
1557
		<annotation>
1558
			<documentation>CurveInterpolationType is a list of codes that may be used to identify the interpolation mechanisms specified by an
1559
application schema.</documentation>
1560
		</annotation>
1561
		<restriction base="string">
1562
			<enumeration value="linear"/>
1563
			<enumeration value="geodesic"/>
1564
			<enumeration value="circularArc3Points"/>
1565
			<enumeration value="circularArc2PointWithBulge"/>
1566
			<enumeration value="circularArcCenterPointWithRadius"/>
1567
			<enumeration value="elliptical"/>
1568
			<enumeration value="clothoid"/>
1569
			<enumeration value="conic"/>
1570
			<enumeration value="polynomialSpline"/>
1571
			<enumeration value="cubicSpline"/>
1572
			<enumeration value="rationalSpline"/>
1573
		</restriction>
1574
	</simpleType>
1575
	<!-- =========================================================== -->
1576
	<simpleType name="SurfaceInterpolationType">
1577
		<annotation>
1578
			<documentation>SurfaceInterpolationType is a list of codes that may be used to identify the interpolation mechanisms specified by an
1579
application schema.</documentation>
1580
		</annotation>
1581
		<restriction base="string">
1582
			<enumeration value="none"/>
1583
			<enumeration value="planar"/>
1584
			<enumeration value="spherical"/>
1585
			<enumeration value="elliptical"/>
1586
			<enumeration value="conic"/>
1587
			<enumeration value="tin"/>
1588
			<enumeration value="parametricCurve"/>
1589
			<enumeration value="polynomialSpline"/>
1590
			<enumeration value="rationalSpline"/>
1591
			<enumeration value="triangulatedSpline"/>
1592
		</restriction>
1593
	</simpleType>
1594
	<!-- =========================================================== -->
1595
	<simpleType name="KnotTypesType">
1596
		<annotation>
1597
			<documentation>Defines allowed values for the knots` type. Uniform knots implies that all knots are of multiplicity 1 and they differ by a positive constant from the preceding knot. Knots are quasi-uniform iff they are of multiplicity (degree + 1) at the ends, of multiplicity 1 elsewhere, and they differ by a positive constant from the preceding knot.</documentation>
1598
		</annotation>
1599
		<restriction base="string">
1600
			<enumeration value="uniform"/>
1601
			<enumeration value="quasiUniform"/>
1602
			<enumeration value="piecewiseBezier"/>
1603
		</restriction>
1604
	</simpleType>
1605
	<!-- =========================================================== -->
1606
</schema>