Project

General

Profile

1 9238 tao
<?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:xlink="http://www.w3.org/1999/xlink" xmlns:gml="http://www.opengis.net/gml" xmlns:sch="http://www.ascc.net/xml/schematron" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
4
        version="3.1.1.2">
5
	<annotation>
6
		<appinfo source="urn:opengis:specification:gml:schema-xsd:geometryBasic2d:3.1.1">geometryBasic2d.xsd</appinfo>
7
		<documentation>
8
			GML is an OGC Standard.
9
			Copyright (c) 2001,2005,2010 Open Geospatial Consortium.
10
			To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
11
		</documentation>
12
	</annotation>
13
	<include schemaLocation="gml.xsd"/>
14
	<include schemaLocation="geometryBasic0d1d.xsd"/>
15
	<!-- =========================================================== -->
16
	<!-- primitive geometry objects (2-dimensional) -->
17
	<!-- =========================================================== -->
18
	<element name="_Surface" type="gml:AbstractSurfaceType" abstract="true" substitutionGroup="gml:_GeometricPrimitive">
19
		<annotation>
20
			<documentation>The "_Surface" element is the abstract head of the substituition group for all (continuous) surface elements.</documentation>
21
		</annotation>
22
	</element>
23
	<!-- =========================================================== -->
24
	<complexType name="AbstractSurfaceType">
25
		<annotation>
26
			<documentation>An abstraction of a surface to support the different levels of complexity. A surface is always a continuous region of a plane.</documentation>
27
		</annotation>
28
		<complexContent>
29
			<extension base="gml:AbstractGeometricPrimitiveType"/>
30
		</complexContent>
31
	</complexType>
32
	<!-- =========================================================== -->
33
	<element name="surfaceProperty" type="gml:SurfacePropertyType">
34
		<annotation>
35
			<appinfo>
36
				<sch:pattern name="Check either href or content not both">
37
					<sch:rule context="gml:surfaceProperty">
38
						<sch:extends rule="hrefOrContent"/>
39
					</sch:rule>
40
				</sch:pattern>
41
			</appinfo>
42
			<documentation>This property element either references a surface via the XLink-attributes or contains the surface element. surfaceProperty 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 _Surface.</documentation>
43
		</annotation>
44
	</element>
45
	<!-- =========================================================== -->
46
	<complexType name="SurfacePropertyType">
47
		<annotation>
48
			<documentation>A property that has a surface 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>
49
		</annotation>
50
		<sequence minOccurs="0">
51
			<element ref="gml:_Surface"/>
52
		</sequence>
53
		<attributeGroup ref="gml:AssociationAttributeGroup">
54
			<annotation>
55
				<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.
56
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>
57
			</annotation>
58
		</attributeGroup>
59
	</complexType>
60
	<!-- =========================================================== -->
61
	<element name="surfaceArrayProperty" type="gml:SurfaceArrayPropertyType"/>
62
	<!-- =========================================================== -->
63
	<complexType name="SurfaceArrayPropertyType">
64
		<annotation>
65
			<documentation>A container for an array of surfaces. The elements are always contained in the array property, referencing geometry elements or arrays of geometry elements is not supported.</documentation>
66
		</annotation>
67
		<sequence>
68
			<element ref="gml:_Surface" minOccurs="0" maxOccurs="unbounded"/>
69
		</sequence>
70
	</complexType>
71
	<!-- =========================================================== -->
72
	<element name="Polygon" type="gml:PolygonType" substitutionGroup="gml:_Surface"/>
73
	<!-- =========================================================== -->
74
	<complexType name="PolygonType">
75
		<annotation>
76
			<documentation>A Polygon is a special surface that is defined by a single surface patch. The boundary of this patch is coplanar and the polygon uses planar interpolation in its interior. It is backwards compatible with the Polygon of GML 2, GM_Polygon of ISO 19107 is implemented by PolygonPatch.</documentation>
77
		</annotation>
78
		<complexContent>
79
			<extension base="gml:AbstractSurfaceType">
80
				<sequence>
81
					<element ref="gml:exterior" minOccurs="0"/>
82
					<element ref="gml:interior" minOccurs="0" maxOccurs="unbounded"/>
83
				</sequence>
84
			</extension>
85
		</complexContent>
86
	</complexType>
87
	<!-- =========================================================== -->
88
	<!-- rings (closed curves for surface boundaries) -->
89
	<!-- =========================================================== -->
90
	<element name="_Ring" type="gml:AbstractRingType" abstract="true" substitutionGroup="gml:_Geometry">
91
		<annotation>
92
			<documentation>The "_Ring" element is the abstract head of the substituition group for all closed boundaries of a surface patch.</documentation>
93
		</annotation>
94
	</element>
95
	<!-- =========================================================== -->
96
	<complexType name="AbstractRingType" abstract="true">
97
		<annotation>
98
			<documentation>An abstraction of a ring to support surface boundaries of different complexity.</documentation>
99
		</annotation>
100
		<complexContent>
101
			<extension base="gml:AbstractGeometryType"/>
102
		</complexContent>
103
	</complexType>
104
	<!-- =========================================================== -->
105
	<element name="exterior" type="gml:AbstractRingPropertyType">
106
		<annotation>
107
			<documentation>A boundary of a surface consists of a number of rings. In the normal 2D case, one of these rings is distinguished as being the exterior boundary. In a general manifold this is not always possible, in which case all boundaries shall be listed as interior boundaries, and the exterior will be empty.</documentation>
108
		</annotation>
109
	</element>
110
	<element name="interior" type="gml:AbstractRingPropertyType">
111
		<annotation>
112
			<documentation>A boundary of a surface consists of a number of rings. The "interior" rings seperate the surface / surface patch from the area enclosed by the rings.</documentation>
113
		</annotation>
114
	</element>
115
	<element name="outerBoundaryIs" type="gml:AbstractRingPropertyType" substitutionGroup="gml:exterior">
116
		<annotation>
117
			<documentation>Deprecated with GML 3.0, included only for backwards compatibility with GML 2. Use "exterior" instead.</documentation>
118
		</annotation>
119
	</element>
120
	<element name="innerBoundaryIs" type="gml:AbstractRingPropertyType" substitutionGroup="gml:interior">
121
		<annotation>
122
			<documentation>Deprecated with GML 3.0, included only for backwards compatibility with GML 2. Use "interior" instead.</documentation>
123
		</annotation>
124
	</element>
125
	<!-- =========================================================== -->
126
	<complexType name="AbstractRingPropertyType">
127
		<annotation>
128
			<documentation>Encapsulates a ring to represent the surface boundary property of a surface.</documentation>
129
		</annotation>
130
		<sequence>
131
			<element ref="gml:_Ring"/>
132
		</sequence>
133
	</complexType>
134
	<!-- =========================================================== -->
135
	<element name="LinearRing" type="gml:LinearRingType" substitutionGroup="gml:_Ring"/>
136
	<!-- =========================================================== -->
137
	<complexType name="LinearRingType">
138
		<annotation>
139
			<documentation>A LinearRing is defined by four or more coordinate tuples, with linear interpolation between them; the first and last coordinates must be coincident.</documentation>
140
		</annotation>
141
		<complexContent>
142
			<extension base="gml:AbstractRingType">
143
				<sequence>
144
					<choice>
145
						<annotation>
146
							<documentation>GML supports two different ways to specify the control points of a linear ring.
147
1. A sequence of "pos" (DirectPositionType) or "pointProperty" (PointPropertyType) elements. "pos" elements are control points that are only part of this ring, "pointProperty" elements contain a point that may be referenced from other geometry elements or reference another point defined outside of this ring (reuse of existing points).
148
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 ring only. The number of direct positions in the list must be at least four.</documentation>
149
						</annotation>
150
						<choice minOccurs="4" maxOccurs="unbounded">
151
							<element ref="gml:pos"/>
152
							<element ref="gml:pointProperty"/>
153
							<element ref="gml:pointRep">
154
								<annotation>
155
									<documentation>Deprecated with GML version 3.1.0. Use "pointProperty" instead. Included for backwards compatibility with GML 3.0.0.</documentation>
156
								</annotation>
157
							</element>
158
						</choice>
159
						<element ref="gml:posList"/>
160
						<element ref="gml:coordinates">
161
							<annotation>
162
								<documentation>Deprecated with GML version 3.1.0. Use "posList" instead.</documentation>
163
							</annotation>
164
						</element>
165
						<element ref="gml:coord" minOccurs="4" maxOccurs="unbounded">
166
							<annotation>
167
								<documentation>Deprecated with GML version 3.0 and included for backwards compatibility with GML 2. Use "pos" elements instead.</documentation>
168
							</annotation>
169
						</element>
170
					</choice>
171
				</sequence>
172
			</extension>
173
		</complexContent>
174
	</complexType>
175
	<!-- =========================================================== -->
176
	<complexType name="LinearRingPropertyType">
177
		<annotation>
178
			<documentation>Encapsulates a ring to represent properties in features or geometry collections.</documentation>
179
		</annotation>
180
		<choice>
181
			<element ref="gml:LinearRing"/>
182
		</choice>
183
	</complexType>
184
	<!-- =========================================================== -->
185
	<!--
186
187
	The following types and elements are deprecated and should not be used !
188
189
	-->
190
	<!-- =========================================================== -->
191
	<element name="polygonProperty" type="gml:PolygonPropertyType">
192
		<annotation>
193
			<documentation>Deprecated with GML 3.0 and included only for backwards compatibility with GML 2.0. Use "surfaceProperty" instead.
194
This property element either references a polygon via the XLink-attributes or contains the polygon element.</documentation>
195
		</annotation>
196
	</element>
197
	<!-- =========================================================== -->
198
	<complexType name="PolygonPropertyType">
199
		<annotation>
200
			<documentation>This type is deprecated with GML 3 and shall not be used. It is included for backwards compatibility with GML 2. Use SurfacePropertyType instead.
201
A property that has a polygon 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>
202
		</annotation>
203
		<sequence minOccurs="0">
204
			<element ref="gml:Polygon"/>
205
		</sequence>
206
		<attributeGroup ref="gml:AssociationAttributeGroup">
207
			<annotation>
208
				<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.
209
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>
210
			</annotation>
211
		</attributeGroup>
212
	</complexType>
213
	<!-- =========================================================== -->
214
</schema>