Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<schema targetNamespace="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gml="http://www.opengis.net/gml" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="3.2.0">
3
	<annotation>
4
		<appinfo source="urn:ogc:specification:gml:schema-xsd:geometryBasic2d:3.2.0">geometryBasic2d.xsd</appinfo>
5
		<documentation>See ISO/DIS 19136 Clause 10.</documentation>
6
	</annotation>
7
	<include schemaLocation="geometryBasic0d1d.xsd"/>
8
	<complexType name="AbstractSurfaceType" abstract="true">
9
		<annotation>
10
			<documentation>gml:AbstractSurfaceType is an abstraction of a surface to support the different levels of complexity. A surface is always a continuous region of a plane.</documentation>
11
		</annotation>
12
		<complexContent>
13
			<extension base="gml:AbstractGeometricPrimitiveType"/>
14
		</complexContent>
15
	</complexType>
16
	<element name="AbstractSurface" type="gml:AbstractSurfaceType" abstract="true" substitutionGroup="gml:AbstractGeometricPrimitive">
17
		<annotation>
18
			<documentation>The AbstractSurface element is the abstract head of the substitution group for all (continuous) surface elements.</documentation>
19
		</annotation>
20
	</element>
21
	<complexType name="SurfacePropertyType">
22
		<annotation>
23
			<documentation>A property that has a surface as its value domain may either be an appropriate geometry element encapsulated in an element of this type or an XLink reference to a remote geometry element (where remote includes geometry elements located elsewhere in the same document). Either the reference or the contained element shall be given, but neither both nor none.</documentation>
24
		</annotation>
25
		<sequence minOccurs="0">
26
			<element ref="gml:AbstractSurface"/>
27
		</sequence>
28
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
29
		<attributeGroup ref="gml:OwnershipAttributeGroup"/>
30
	</complexType>
31
	<element name="surfaceProperty" type="gml:SurfacePropertyType">
32
		<annotation>
33
			<documentation>This property element either references a surface via the XLink-attributes or contains the surface element. surfaceProperty is the predefined property which may be used by GML Application Schemas whenever a GML feature has a property with a value that is substitutable for AbstractSurface.</documentation>
34
		</annotation>
35
	</element>
36
	<complexType name="SurfaceArrayPropertyType">
37
		<annotation>
38
			<documentation>gml:SurfaceArrayPropertyType is a container for an array of surfaces. The elements are always contained in the array property, referencing geometry elements or arrays of geometry elements via XLinks is not supported.</documentation>
39
		</annotation>
40
		<sequence minOccurs="0" maxOccurs="unbounded">
41
			<element ref="gml:AbstractSurface"/>
42
		</sequence>
43
		<attributeGroup ref="gml:OwnershipAttributeGroup"/>
44
	</complexType>
45
	<element name="surfaceArrayProperty" type="gml:SurfaceArrayPropertyType">
46
		<annotation>
47
			<documentation>This property element contains a list of surface elements. surfaceArrayProperty is the predefined property which may be used by GML Application Schemas whenever a GML feature has a property with a value that is substitutable for a list of AbstractSurfaces.</documentation>
48
		</annotation>
49
	</element>
50
	<complexType name="PolygonType">
51
		<complexContent>
52
			<extension base="gml:AbstractSurfaceType">
53
				<sequence>
54
					<element ref="gml:exterior" minOccurs="0"/>
55
					<element ref="gml:interior" minOccurs="0" maxOccurs="unbounded"/>
56
				</sequence>
57
			</extension>
58
		</complexContent>
59
	</complexType>
60
	<element name="Polygon" type="gml:PolygonType" substitutionGroup="gml:AbstractSurface">
61
		<annotation>
62
			<documentation>A Polygon is a special surface that is defined by a single surface patch (see D.3.6). The boundary of this patch is coplanar and the polygon uses planar interpolation in its interior. 
63
The elements exterior and interior describe the surface boundary of the polygon.</documentation>
64
		</annotation>
65
	</element>
66
	<element name="exterior" type="gml:AbstractRingPropertyType">
67
		<annotation>
68
			<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>
69
		</annotation>
70
	</element>
71
	<element name="interior" type="gml:AbstractRingPropertyType">
72
		<annotation>
73
			<documentation>A boundary of a surface consists of a number of rings. The "interior" rings separate the surface / surface patch from the area enclosed by the rings.</documentation>
74
		</annotation>
75
	</element>
76
	<complexType name="AbstractRingType" abstract="true">
77
		<sequence/>
78
	</complexType>
79
	<element name="AbstractRing" type="gml:AbstractRingType" abstract="true" substitutionGroup="gml:AbstractObject">
80
		<annotation>
81
			<documentation>An abstraction of a ring to support surface boundaries of different complexity.
82
The AbstractRing element is the abstract head of the substituition group for all closed boundaries of a surface patch.</documentation>
83
		</annotation>
84
	</element>
85
	<complexType name="AbstractRingPropertyType">
86
		<annotation>
87
			<documentation>A property with the content model of gml:AbstractRingPropertyType encapsulates a ring to represent the surface boundary property of a surface.</documentation>
88
		</annotation>
89
		<sequence>
90
			<element ref="gml:AbstractRing"/>
91
		</sequence>
92
	</complexType>
93
	<complexType name="LinearRingType">
94
		<complexContent>
95
			<extension base="gml:AbstractRingType">
96
				<sequence>
97
					<choice>
98
						<choice minOccurs="4" maxOccurs="unbounded">
99
							<element ref="gml:pos"/>
100
							<element ref="gml:pointProperty"/>
101
							<element ref="gml:pointRep"/>
102
						</choice>
103
						<element ref="gml:posList"/>
104
						<element ref="gml:coordinates"/>
105
					</choice>
106
				</sequence>
107
			</extension>
108
		</complexContent>
109
	</complexType>
110
	<element name="LinearRing" type="gml:LinearRingType" substitutionGroup="gml:AbstractRing">
111
		<annotation>
112
			<documentation>A LinearRing is defined by four or more coordinate tuples, with linear interpolation between them; the first and last coordinates shall be coincident. The number of direct positions in the list shall be at least four.</documentation>
113
		</annotation>
114
	</element>
115
	<complexType name="LinearRingPropertyType">
116
		<annotation>
117
			<documentation>A property with the content model of gml:LinearRingPropertyType encapsulates a linear ring to represent a component of a surface boundary.</documentation>
118
		</annotation>
119
		<sequence>
120
			<element ref="gml:LinearRing"/>
121
		</sequence>
122
	</complexType>
123
</schema>
(24-24/54)