1 |
9559
|
tao
|
<?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.2">
|
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.
|
18 |
|
|
To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
|
19 |
|
|
</documentation>
|
20 |
|
|
</annotation>
|
21 |
|
|
<include schemaLocation="gml.xsd"/>
|
22 |
|
|
<include schemaLocation="geometryBasic0d1d.xsd"/>
|
23 |
|
|
<include schemaLocation="temporal.xsd"/>
|
24 |
|
|
<element name="Boolean" substitutionGroup="gml:AbstractScalarValue" nillable="true">
|
25 |
|
|
<complexType>
|
26 |
|
|
<simpleContent>
|
27 |
|
|
<extension base="boolean">
|
28 |
|
|
<attribute name="nilReason" type="gml:NilReasonType"/>
|
29 |
|
|
</extension>
|
30 |
|
|
</simpleContent>
|
31 |
|
|
</complexType>
|
32 |
|
|
</element>
|
33 |
|
|
<element name="BooleanList" type="gml:booleanOrNilReasonList" substitutionGroup="gml:AbstractScalarValueList"/>
|
34 |
|
|
<element name="Category" substitutionGroup="gml:AbstractScalarValue" nillable="true">
|
35 |
|
|
<annotation>
|
36 |
|
|
<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>
|
37 |
|
|
</annotation>
|
38 |
|
|
<complexType>
|
39 |
|
|
<simpleContent>
|
40 |
|
|
<extension base="gml:CodeType">
|
41 |
|
|
<attribute name="nilReason" type="gml:NilReasonType"/>
|
42 |
|
|
</extension>
|
43 |
|
|
</simpleContent>
|
44 |
|
|
</complexType>
|
45 |
|
|
</element>
|
46 |
|
|
<element name="CategoryList" type="gml:CodeOrNilReasonListType" substitutionGroup="gml:AbstractScalarValueList"/>
|
47 |
|
|
<element name="Count" substitutionGroup="gml:AbstractScalarValue" nillable="true">
|
48 |
|
|
<complexType>
|
49 |
|
|
<simpleContent>
|
50 |
|
|
<extension base="integer">
|
51 |
|
|
<attribute name="nilReason" type="gml:NilReasonType"/>
|
52 |
|
|
</extension>
|
53 |
|
|
</simpleContent>
|
54 |
|
|
</complexType>
|
55 |
|
|
</element>
|
56 |
|
|
<element name="CountList" type="gml:integerOrNilReasonList" substitutionGroup="gml:AbstractScalarValueList"/>
|
57 |
|
|
<element name="Quantity" substitutionGroup="gml:AbstractScalarValue" nillable="true">
|
58 |
|
|
<annotation>
|
59 |
|
|
<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>
|
60 |
|
|
</annotation>
|
61 |
|
|
<complexType>
|
62 |
|
|
<simpleContent>
|
63 |
|
|
<extension base="gml:MeasureType">
|
64 |
|
|
<attribute name="nilReason" type="gml:NilReasonType"/>
|
65 |
|
|
</extension>
|
66 |
|
|
</simpleContent>
|
67 |
|
|
</complexType>
|
68 |
|
|
</element>
|
69 |
|
|
<element name="QuantityList" type="gml:MeasureOrNilReasonListType" substitutionGroup="gml:AbstractScalarValueList"/>
|
70 |
|
|
<element name="AbstractValue" type="anyType" abstract="true" substitutionGroup="gml:AbstractObject">
|
71 |
|
|
<annotation>
|
72 |
|
|
<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.
|
73 |
|
|
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>
|
74 |
|
|
</annotation>
|
75 |
|
|
</element>
|
76 |
|
|
<element name="AbstractScalarValue" type="anyType" abstract="true" substitutionGroup="gml:AbstractValue">
|
77 |
|
|
<annotation>
|
78 |
|
|
<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>
|
79 |
|
|
</annotation>
|
80 |
|
|
</element>
|
81 |
|
|
<element name="AbstractScalarValueList" type="anyType" abstract="true" substitutionGroup="gml:AbstractValue">
|
82 |
|
|
<annotation>
|
83 |
|
|
<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>
|
84 |
|
|
</annotation>
|
85 |
|
|
</element>
|
86 |
|
|
<group name="Value">
|
87 |
|
|
<annotation>
|
88 |
|
|
<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>
|
89 |
|
|
</annotation>
|
90 |
|
|
<choice>
|
91 |
|
|
<element ref="gml:AbstractValue"/>
|
92 |
|
|
<element ref="gml:AbstractGeometry"/>
|
93 |
|
|
<element ref="gml:AbstractTimeObject"/>
|
94 |
|
|
<element ref="gml:Null"/>
|
95 |
|
|
</choice>
|
96 |
|
|
</group>
|
97 |
|
|
<element name="valueProperty" type="gml:ValuePropertyType">
|
98 |
|
|
<annotation>
|
99 |
|
|
<documentation>Property that refers to, or contains, a Value. Convenience element for general use.</documentation>
|
100 |
|
|
</annotation>
|
101 |
|
|
</element>
|
102 |
|
|
<element name="valueComponent" type="gml:ValuePropertyType">
|
103 |
|
|
<annotation>
|
104 |
|
|
<documentation>Property that refers to, or contains, a Value.</documentation>
|
105 |
|
|
</annotation>
|
106 |
|
|
</element>
|
107 |
|
|
<complexType name="ValuePropertyType">
|
108 |
|
|
<sequence minOccurs="0">
|
109 |
|
|
<group ref="gml:Value"/>
|
110 |
|
|
</sequence>
|
111 |
|
|
<attributeGroup ref="gml:AssociationAttributeGroup"/>
|
112 |
|
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
113 |
|
|
</complexType>
|
114 |
|
|
<element name="valueComponents" type="gml:ValueArrayPropertyType">
|
115 |
|
|
<annotation>
|
116 |
|
|
<documentation>Property that contains Values.</documentation>
|
117 |
|
|
</annotation>
|
118 |
|
|
</element>
|
119 |
|
|
<complexType name="ValueArrayPropertyType">
|
120 |
|
|
<sequence maxOccurs="unbounded">
|
121 |
|
|
<group ref="gml:Value"/>
|
122 |
|
|
</sequence>
|
123 |
|
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
124 |
|
|
</complexType>
|
125 |
|
|
<element name="CompositeValue" type="gml:CompositeValueType" substitutionGroup="gml:AbstractValue">
|
126 |
|
|
<annotation>
|
127 |
|
|
<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>
|
128 |
|
|
</annotation>
|
129 |
|
|
</element>
|
130 |
|
|
<complexType name="CompositeValueType">
|
131 |
|
|
<complexContent>
|
132 |
|
|
<extension base="gml:AbstractGMLType">
|
133 |
|
|
<sequence>
|
134 |
|
|
<element ref="gml:valueComponent" minOccurs="0" maxOccurs="unbounded"/>
|
135 |
|
|
<element ref="gml:valueComponents" minOccurs="0"/>
|
136 |
|
|
</sequence>
|
137 |
|
|
<attributeGroup ref="gml:AggregationAttributeGroup"/>
|
138 |
|
|
</extension>
|
139 |
|
|
</complexContent>
|
140 |
|
|
</complexType>
|
141 |
|
|
<element name="ValueArray" type="gml:ValueArrayType" substitutionGroup="gml:CompositeValue">
|
142 |
|
|
<annotation>
|
143 |
|
|
<documentation>A Value Array is used for homogeneous arrays of primitive and aggregate values.
|
144 |
|
|
The member values may be scalars, composites, arrays or lists.
|
145 |
|
|
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>
|
146 |
|
|
</annotation>
|
147 |
|
|
</element>
|
148 |
|
|
<complexType name="ValueArrayType">
|
149 |
|
|
<complexContent>
|
150 |
|
|
<extension base="gml:CompositeValueType">
|
151 |
|
|
<attributeGroup ref="gml:referenceSystem"/>
|
152 |
|
|
</extension>
|
153 |
|
|
</complexContent>
|
154 |
|
|
</complexType>
|
155 |
|
|
<attributeGroup name="referenceSystem">
|
156 |
|
|
<attribute name="codeSpace" type="anyURI"/>
|
157 |
|
|
<attribute name="uom" type="gml:UomIdentifier"/>
|
158 |
|
|
</attributeGroup>
|
159 |
|
|
<element name="CategoryExtent" type="gml:CategoryExtentType" substitutionGroup="gml:AbstractValue"/>
|
160 |
|
|
<complexType name="CategoryExtentType">
|
161 |
|
|
<simpleContent>
|
162 |
|
|
<restriction base="gml:CodeOrNilReasonListType">
|
163 |
|
|
<length value="2"/>
|
164 |
|
|
</restriction>
|
165 |
|
|
</simpleContent>
|
166 |
|
|
</complexType>
|
167 |
|
|
<element name="CountExtent" type="gml:CountExtentType" substitutionGroup="gml:AbstractValue"/>
|
168 |
|
|
<simpleType name="CountExtentType">
|
169 |
|
|
<restriction base="gml:integerOrNilReasonList">
|
170 |
|
|
<length value="2"/>
|
171 |
|
|
</restriction>
|
172 |
|
|
</simpleType>
|
173 |
|
|
<element name="QuantityExtent" type="gml:QuantityExtentType" substitutionGroup="gml:AbstractValue"/>
|
174 |
|
|
<complexType name="QuantityExtentType">
|
175 |
|
|
<simpleContent>
|
176 |
|
|
<restriction base="gml:MeasureOrNilReasonListType">
|
177 |
|
|
<length value="2"/>
|
178 |
|
|
</restriction>
|
179 |
|
|
</simpleContent>
|
180 |
|
|
</complexType>
|
181 |
|
|
<complexType name="BooleanPropertyType">
|
182 |
|
|
<sequence minOccurs="0">
|
183 |
|
|
<element ref="gml:Boolean"/>
|
184 |
|
|
</sequence>
|
185 |
|
|
<attributeGroup ref="gml:AssociationAttributeGroup"/>
|
186 |
|
|
</complexType>
|
187 |
|
|
<complexType name="CategoryPropertyType">
|
188 |
|
|
<sequence minOccurs="0">
|
189 |
|
|
<element ref="gml:Category"/>
|
190 |
|
|
</sequence>
|
191 |
|
|
<attributeGroup ref="gml:AssociationAttributeGroup"/>
|
192 |
|
|
</complexType>
|
193 |
|
|
<complexType name="QuantityPropertyType">
|
194 |
|
|
<sequence minOccurs="0">
|
195 |
|
|
<element ref="gml:Quantity"/>
|
196 |
|
|
</sequence>
|
197 |
|
|
<attributeGroup ref="gml:AssociationAttributeGroup"/>
|
198 |
|
|
</complexType>
|
199 |
|
|
<complexType name="CountPropertyType">
|
200 |
|
|
<sequence minOccurs="0">
|
201 |
|
|
<element ref="gml:Count"/>
|
202 |
|
|
</sequence>
|
203 |
|
|
<attributeGroup ref="gml:AssociationAttributeGroup"/>
|
204 |
|
|
</complexType>
|
205 |
|
|
</schema>
|