Statistics
| Revision:

root / branches / Mobile1.0 / org.gvsig.gpe.gml / testdata / schemas / 3.1.1 / base / feature.xsd @ 79

History | View | Annotate | Download (8.88 KB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<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" elementFormDefault="qualified" version="3.1.1">
3
	<annotation>
4
		<appinfo source="urn:opengis:specification:gml:schema-xsd:feature:v3.1.1"/>
5
		<documentation>GML Feature schema. 		      
6
    Copyright (c) 2001-2005 OGC, All Rights Reserved.
7
	For conditions, see OGC Software Notice http://www.opengeospatial.org/about/?page=ipr</documentation>
8
	</annotation>
9
	<!-- ============================================================== -->
10
	<!-- ==================        includes and imports  ======================= -->
11
	<!-- ============================================================== -->
12
	<include schemaLocation="geometryBasic2d.xsd"/>
13
	<include schemaLocation="temporal.xsd"/>
14
	<!-- ============================================================== -->
15
	<element name="_Feature" type="gml:AbstractFeatureType" abstract="true" substitutionGroup="gml:_GML"/>
16
	<!-- =========================================================== -->
17
	<complexType name="AbstractFeatureType" abstract="true">
18
		<annotation>
19
			<documentation>An abstract feature provides a set of common properties, including id, metaDataProperty, name and description inherited from AbstractGMLType, plus boundedBy.    A concrete feature type must derive from this type and specify additional  properties in an application schema. A feature must possess an identifying attribute ('id' - 'fid' has been deprecated).</documentation>
20
		</annotation>
21
		<complexContent>
22
			<extension base="gml:AbstractGMLType">
23
				<sequence>
24
					<element ref="gml:boundedBy" minOccurs="0"/>
25
					<element ref="gml:location" minOccurs="0">
26
						<annotation>
27
							<appinfo>deprecated</appinfo>
28
							<documentation>deprecated in GML version 3.1</documentation>
29
						</annotation>
30
					</element>
31
					<!-- additional properties must be specified in an application schema -->
32
				</sequence>
33
			</extension>
34
		</complexContent>
35
	</complexType>
36
	<!-- ============================================================== -->
37
	<!-- =========================================================== -->
38
	<element name="boundedBy" type="gml:BoundingShapeType"/>
39
	<!-- ====================================================================== -->
40
	<complexType name="BoundingShapeType">
41
		<annotation>
42
			<documentation>Bounding shape.</documentation>
43
		</annotation>
44
		<sequence>
45
			<choice>
46
				<element ref="gml:Envelope"/>
47
				<element ref="gml:Null"/>
48
			</choice>
49
		</sequence>
50
	</complexType>
51
	<!-- =========================================================== -->
52
	<element name="EnvelopeWithTimePeriod" type="gml:EnvelopeWithTimePeriodType" substitutionGroup="gml:Envelope"/>
53
	<!-- ====================================================================== -->
54
	<complexType name="EnvelopeWithTimePeriodType">
55
		<annotation>
56
			<documentation>Envelope that includes also a temporal extent.</documentation>
57
		</annotation>
58
		<complexContent>
59
			<extension base="gml:EnvelopeType">
60
				<sequence>
61
					<element ref="gml:timePosition" minOccurs="2" maxOccurs="2"/>
62
				</sequence>
63
				<attribute name="frame" type="anyURI" use="optional" default="#ISO-8601"/>
64
			</extension>
65
		</complexContent>
66
	</complexType>
67
	<!-- ====================================================================== -->
68
	<!-- ===== property for feature association ==== -->
69
	<element name="featureMember" type="gml:FeaturePropertyType"/>
70
	<element name="featureProperty" type="gml:FeaturePropertyType"/>
71
	<!-- ============================================================== -->
72
	<complexType name="FeaturePropertyType">
73
		<annotation>
74
			<documentation>Container for a feature - follow gml:AssociationType pattern.</documentation>
75
		</annotation>
76
		<sequence minOccurs="0">
77
			<element ref="gml:_Feature"/>
78
		</sequence>
79
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
80
	</complexType>
81
	<!-- ============================================================== -->
82
	<!-- ===== property for association of an array of features ===== -->
83
	<element name="featureMembers" type="gml:FeatureArrayPropertyType"/>
84
	<!-- =========================================================== -->
85
	<complexType name="FeatureArrayPropertyType">
86
		<annotation>
87
			<documentation>Container for features - follow gml:ArrayAssociationType pattern.</documentation>
88
		</annotation>
89
		<sequence>
90
			<element ref="gml:_Feature" minOccurs="0" maxOccurs="unbounded"/>
91
		</sequence>
92
	</complexType>
93
	<!-- ============================================================== -->
94
	<!-- =========================================================== -->
95
	<element name="_FeatureCollection" type="gml:AbstractFeatureCollectionType" abstract="true" substitutionGroup="gml:_Feature"/>
96
	<!-- ===========================================================   -->
97
	<complexType name="AbstractFeatureCollectionType" abstract="true">
98
		<annotation>
99
			<documentation>A feature collection contains zero or more features.</documentation>
100
		</annotation>
101
		<complexContent>
102
			<extension base="gml:AbstractFeatureType">
103
				<sequence>
104
					<element ref="gml:featureMember" minOccurs="0" maxOccurs="unbounded"/>
105
					<element ref="gml:featureMembers" minOccurs="0"/>
106
				</sequence>
107
			</extension>
108
		</complexContent>
109
	</complexType>
110
	<!-- =========================================================== -->
111
	<element name="FeatureCollection" type="gml:FeatureCollectionType" substitutionGroup="gml:_Feature"/>
112
	<!-- =========================================================== -->
113
	<complexType name="FeatureCollectionType">
114
		<annotation>
115
			<documentation>Concrete generic feature collection.</documentation>
116
		</annotation>
117
		<complexContent>
118
			<extension base="gml:AbstractFeatureCollectionType"/>
119
		</complexContent>
120
	</complexType>
121
	<!-- ============================================================== -->
122
	<!-- ============================================================== -->
123
	<element name="LocationKeyWord" type="gml:CodeType"/>
124
	<element name="LocationString" type="gml:StringOrRefType"/>
125
	<!-- =========================================================== -->
126
	<!-- ============= common aliases for geometry properties =============== -->
127
	<element name="centerOf" type="gml:PointPropertyType"/>
128
	<element name="position" type="gml:PointPropertyType"/>
129
	<element name="edgeOf" type="gml:CurvePropertyType"/>
130
	<element name="centerLineOf" type="gml:CurvePropertyType"/>
131
	<element name="extentOf" type="gml:SurfacePropertyType"/>
132
	<!-- =========================================================== -->
133
	<!-- ================= deprecated components  =========================== -->
134
	<complexType name="BoundedFeatureType" abstract="true">
135
		<annotation>
136
			<documentation>Makes boundedBy mandatory</documentation>
137
		</annotation>
138
		<complexContent>
139
			<restriction base="gml:AbstractFeatureType">
140
				<sequence>
141
					<group ref="gml:StandardObjectProperties"/>
142
					<element ref="gml:boundedBy"/>
143
					<element ref="gml:location" minOccurs="0">
144
						<annotation>
145
							<appinfo>deprecated</appinfo>
146
							<documentation>deprecated in GML version 3.1</documentation>
147
						</annotation>
148
					</element>
149
				</sequence>
150
			</restriction>
151
		</complexContent>
152
	</complexType>
153
	<!-- =========================================================== -->
154
	<element name="location" type="gml:LocationPropertyType">
155
		<annotation>
156
			<documentation>Deprecated in GML 3.1.0</documentation>
157
		</annotation>
158
	</element>
159
	<!-- ============================================================== -->
160
	<complexType name="LocationPropertyType">
161
		<annotation>
162
			<documentation>Convenience property for generalised location.  
163
      A representative location for plotting or analysis.  
164
      Often augmented by one or more additional geometry properties with more specific semantics.</documentation>
165
			<documentation>Deprecated in GML 3.1.0</documentation>
166
		</annotation>
167
		<sequence minOccurs="0">
168
			<choice>
169
				<element ref="gml:_Geometry"/>
170
				<element ref="gml:LocationKeyWord"/>
171
				<element ref="gml:LocationString"/>
172
				<element ref="gml:Null"/>
173
			</choice>
174
		</sequence>
175
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
176
	</complexType>
177
	<!-- ============================================================== -->
178
	<element name="priorityLocation" type="gml:PriorityLocationPropertyType" substitutionGroup="gml:location">
179
		<annotation>
180
			<documentation>Deprecated in GML 3.1.0</documentation>
181
		</annotation>
182
	</element>
183
	<!-- ============================================================== -->
184
	<complexType name="PriorityLocationPropertyType">
185
		<annotation>
186
			<documentation>G-XML component</documentation>
187
			<documentation>Deprecated in GML 3.1.0</documentation>
188
		</annotation>
189
		<complexContent>
190
			<extension base="gml:LocationPropertyType">
191
				<attribute name="priority" type="string" use="optional"/>
192
			</extension>
193
		</complexContent>
194
	</complexType>
195
	<!-- ============================================================== -->
196
</schema>