Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<schema targetNamespace="http://www.opengis.net/gml/3.2" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="3.2.1 2010-01-28">
3
	<annotation>
4
		<appinfo source="urn:x-ogc:specification:gml:schema-xsd:valueObjects:3.2.1">valueObjects.xsd</appinfo>
5
		<documentation>See ISO/DIS 19136 17.5.
6
The elements declared in this Clause build on other GML schema components, in particular gml:AbstractTimeObject, gml:AbstractGeometry, and the following types:  gml:MeasureType, gml:MeasureListType, gml:CodeType, gml:CodeOrNilReasonListType, gml:BooleanOrNilReasonListType, gml:IntegerOrNilReasonList.  
7
Of particular interest are elements that are the heads of substitution groups, and one named choice group. These are the primary reasons for the value objects schema, since they may act as variables in the definition of content models, such as Observations, when it is desired to permit alternative value types to occur some of which may have complex content such as arrays, geometry and time objects, and where it is useful not to prescribe the actual value type in advance. The members of the groups include quantities, category classifications, boolean, count, temporal and spatial values, and aggregates of these.  
8
The value objects are defined in a hierarchy. The following relationships are defined:
9
-	Concrete elements gml:Quantity, gml:Category, gml:Count and gml:Boolean are substitutable for the abstract element gml:AbstractScalarValue.  
10
-	Concrete elements gml:QuantityList, gml:CategoryList, gml:CountList and gml:BooleanList are substitutable for the abstract element gml:AbstractScalarValueList.  
11
-	Concrete element gml:ValueArray is substitutable for the concrete element gml:CompositeValue.  
12
-	Abstract elements gml:AbstractScalarValue and gml:AbstractScalarValueList, and concrete elements gml:CompositeValue, gml:ValueExtent, gml:CategoryExtent, gml:CountExtent and gml:QuantityExtent are substitutable for abstract element gml:AbstractValue.  
13
-	Abstract elements gml:AbstractValue, gml:AbstractTimeObject and gml:AbstractGeometry are all in a choice group named gml:Value, which is used for compositing in gml:CompositeValue and gml:ValueExtent.  
14
-	Schemas which need values may use the abstract element gml:AbstractValue in a content model in order to permit any of the gml:AbstractScalarValues, gml:AbstractScalarValueLists, gml:CompositeValue or gml:ValueExtent to occur in an instance, or the named group gml:Value to also permit gml:AbstractTimeObjects, gml:AbstractGeometrys.
15

    
16
GML is an OGC Standard.
17
Copyright (c) 2007,2010 Open Geospatial Consortium, Inc. All Rights Reserved.
18
To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
19
		</documentation>
20
	</annotation>
21
	<include schemaLocation="geometryBasic0d1d.xsd"/>
22
	<include schemaLocation="temporal.xsd"/>
23
	<element name="Boolean" substitutionGroup="gml:AbstractScalarValue" nillable="true">
24
		<complexType>
25
			<simpleContent>
26
				<extension base="boolean">
27
					<attribute name="nilReason" type="gml:NilReasonType"/>
28
				</extension>
29
			</simpleContent>
30
		</complexType>
31
	</element>
32
	<element name="BooleanList" type="gml:booleanOrNilReasonList" substitutionGroup="gml:AbstractScalarValueList"/>
33
	<element name="Category" substitutionGroup="gml:AbstractScalarValue" nillable="true">
34
		<annotation>
35
			<documentation>A gml:Category has an optional XML attribute codeSpace, whose value is a URI which identifies a dictionary, codelist or authority for the term.</documentation>
36
		</annotation>
37
		<complexType>
38
			<simpleContent>
39
				<extension base="gml:CodeType">
40
					<attribute name="nilReason" type="gml:NilReasonType"/>
41
				</extension>
42
			</simpleContent>
43
		</complexType>
44
	</element>
45
	<element name="CategoryList" type="gml:CodeOrNilReasonListType" substitutionGroup="gml:AbstractScalarValueList"/>
46
	<element name="Count" substitutionGroup="gml:AbstractScalarValue" nillable="true">
47
		<complexType>
48
			<simpleContent>
49
				<extension base="integer">
50
					<attribute name="nilReason" type="gml:NilReasonType"/>
51
				</extension>
52
			</simpleContent>
53
		</complexType>
54
	</element>
55
	<element name="CountList" type="gml:integerOrNilReasonList" substitutionGroup="gml:AbstractScalarValueList"/>
56
	<element name="Quantity" substitutionGroup="gml:AbstractScalarValue" nillable="true">
57
		<annotation>
58
			<documentation>An XML attribute uom ("unit of measure") is required, whose value is a URI which identifies the definition of a ratio scale or units by which the numeric value shall be multiplied, or an interval or position scale on which the value occurs.</documentation>
59
		</annotation>
60
		<complexType>
61
			<simpleContent>
62
				<extension base="gml:MeasureType">
63
					<attribute name="nilReason" type="gml:NilReasonType"/>
64
				</extension>
65
			</simpleContent>
66
		</complexType>
67
	</element>
68
	<element name="QuantityList" type="gml:MeasureOrNilReasonListType" substitutionGroup="gml:AbstractScalarValueList"/>
69
	<element name="AbstractValue" type="anyType" abstract="true" substitutionGroup="gml:AbstractObject">
70
		<annotation>
71
			<documentation>gml:AbstractValue is an abstract element which acts as the head of a substitution group which contains gml:AbstractScalarValue, gml:AbstractScalarValueList, gml:CompositeValue and gml:ValueExtent, and (transitively) the elements in their substitution groups.
72
These elements may be used in an application schema as variables, so that in an XML instance document any member of its substitution group may occur.</documentation>
73
		</annotation>
74
	</element>
75
	<element name="AbstractScalarValue" type="anyType" abstract="true" substitutionGroup="gml:AbstractValue">
76
		<annotation>
77
			<documentation>gml:AbstractScalarValue is an abstract element which acts as the head of a substitution group which contains gml:Boolean, gml:Category, gml:Count and gml:Quantity, and (transitively) the elements in their substitution groups.</documentation>
78
		</annotation>
79
	</element>
80
	<element name="AbstractScalarValueList" type="anyType" abstract="true" substitutionGroup="gml:AbstractValue">
81
		<annotation>
82
			<documentation>gml:AbstractScalarValueList is an abstract element which acts as the head of a substitution group which contains gml:BooleanList, gml:CategoryList, gml:CountList and gml:QuantityList, and (transitively) the elements in their substitution groups.</documentation>
83
		</annotation>
84
	</element>
85
	<group name="Value">
86
		<annotation>
87
			<documentation>This is a convenience choice group which unifies generic values defined in this Clause with spatial and temporal objects and the measures described above, so that any of these may be used within aggregate values.</documentation>
88
		</annotation>
89
		<choice>
90
			<element ref="gml:AbstractValue"/>
91
			<element ref="gml:AbstractGeometry"/>
92
			<element ref="gml:AbstractTimeObject"/>
93
			<element ref="gml:Null"/>
94
		</choice>
95
	</group>
96
	<element name="valueProperty" type="gml:ValuePropertyType">
97
		<annotation>
98
			<documentation>Property that refers to, or contains, a Value. Convenience element for general use.</documentation>
99
		</annotation>
100
	</element>
101
	<element name="valueComponent" type="gml:ValuePropertyType">
102
		<annotation>
103
			<documentation>Property that refers to, or contains, a Value.</documentation>
104
		</annotation>
105
	</element>
106
	<complexType name="ValuePropertyType">
107
		<sequence minOccurs="0">
108
			<group ref="gml:Value"/>
109
		</sequence>
110
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
111
		<attributeGroup ref="gml:OwnershipAttributeGroup"/>
112
	</complexType>
113
	<element name="valueComponents" type="gml:ValueArrayPropertyType">
114
		<annotation>
115
			<documentation>Property that contains Values.</documentation>
116
		</annotation>
117
	</element>
118
	<complexType name="ValueArrayPropertyType">
119
		<sequence maxOccurs="unbounded">
120
			<group ref="gml:Value"/>
121
		</sequence>
122
		<attributeGroup ref="gml:OwnershipAttributeGroup"/>
123
	</complexType>
124
	<element name="CompositeValue" type="gml:CompositeValueType" substitutionGroup="gml:AbstractValue">
125
		<annotation>
126
			<documentation>gml:CompositeValue is an aggregate value built from other values . It contains zero or an arbitrary number of gml:valueComponent elements, and zero or one gml:valueComponents property elements.  It may be used for strongly coupled aggregates (vectors, tensors) or for arbitrary collections of values.</documentation>
127
		</annotation>
128
	</element>
129
	<complexType name="CompositeValueType">
130
		<complexContent>
131
			<extension base="gml:AbstractGMLType">
132
				<sequence>
133
					<element ref="gml:valueComponent" minOccurs="0" maxOccurs="unbounded"/>
134
					<element ref="gml:valueComponents" minOccurs="0"/>
135
				</sequence>
136
				<attributeGroup ref="gml:AggregationAttributeGroup"/>
137
			</extension>
138
		</complexContent>
139
	</complexType>
140
	<element name="ValueArray" type="gml:ValueArrayType" substitutionGroup="gml:CompositeValue">
141
		<annotation>
142
			<documentation>A Value Array is used for homogeneous arrays of primitive and aggregate values.  
143
The member values may be scalars, composites, arrays or lists.
144
ValueArray has the same content model as CompositeValue, but the member values shall be homogeneous.  The element declaration contains a Schematron constraint which expresses this restriction precisely.  Since the members are homogeneous, the gml:referenceSystem (uom, codeSpace) may be specified on the gml:ValueArray itself and inherited by all the members if desired.</documentation>
145
		</annotation>
146
	</element>
147
	<complexType name="ValueArrayType">
148
		<complexContent>
149
			<extension base="gml:CompositeValueType">
150
				<attributeGroup ref="gml:referenceSystem"/>
151
			</extension>
152
		</complexContent>
153
	</complexType>
154
	<attributeGroup name="referenceSystem">
155
		<attribute name="codeSpace" type="anyURI"/>
156
		<attribute name="uom" type="gml:UomIdentifier"/>
157
	</attributeGroup>
158
	<element name="CategoryExtent" type="gml:CategoryExtentType" substitutionGroup="gml:AbstractValue"/>
159
	<complexType name="CategoryExtentType">
160
		<simpleContent>
161
			<restriction base="gml:CodeOrNilReasonListType">
162
				<length value="2"/>
163
			</restriction>
164
		</simpleContent>
165
	</complexType>
166
	<element name="CountExtent" type="gml:CountExtentType" substitutionGroup="gml:AbstractValue"/>
167
	<simpleType name="CountExtentType">
168
		<restriction base="gml:integerOrNilReasonList">
169
			<length value="2"/>
170
		</restriction>
171
	</simpleType>
172
	<element name="QuantityExtent" type="gml:QuantityExtentType" substitutionGroup="gml:AbstractValue"/>
173
	<complexType name="QuantityExtentType">
174
		<simpleContent>
175
			<restriction base="gml:MeasureOrNilReasonListType">
176
				<length value="2"/>
177
			</restriction>
178
		</simpleContent>
179
	</complexType>
180
	<complexType name="BooleanPropertyType">
181
		<sequence minOccurs="0">
182
			<element ref="gml:Boolean"/>
183
		</sequence>
184
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
185
	</complexType>
186
	<complexType name="CategoryPropertyType">
187
		<sequence minOccurs="0">
188
			<element ref="gml:Category"/>
189
		</sequence>
190
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
191
	</complexType>
192
	<complexType name="QuantityPropertyType">
193
		<sequence minOccurs="0">
194
			<element ref="gml:Quantity"/>
195
		</sequence>
196
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
197
	</complexType>
198
	<complexType name="CountPropertyType">
199
		<sequence minOccurs="0">
200
			<element ref="gml:Count"/>
201
		</sequence>
202
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
203
	</complexType>
204
</schema>
(30-30/30)