1 |
9238
|
tao
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
|
<schema targetNamespace="http://www.opengis.net/gml" xmlns:gml="http://www.opengis.net/gml" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="3.1.1.2" xml:lang="en">
|
3 |
|
|
<annotation>
|
4 |
|
|
<appinfo source="urn:opengis:specification:gml:schema-units:3.1.1"/>
|
5 |
|
|
<documentation>Builds on gmlBase.xsd to encode units of measure (or uom), including definitions of units of measure and dictionaries of such definitions. GML 3.0 candidate schema, primary editor: Arliss Whiteside.
|
6 |
|
|
Parts of this schema are based on Subclause 6.5.7 of ISO/CD 19103 Geographic information - Conceptual schema language, on Subclause A.5.2.2.3 of ISO/CD 19118 Geographic information - Encoding, and on most of OpenGIS Recommendation Paper OGC 02-007r4 Units of Measure Use and Definition Recommendations.
|
7 |
|
|
|
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 |
|
|
<!-- ==============================================================
|
14 |
|
|
includes and imports
|
15 |
|
|
============================================================== -->
|
16 |
|
|
<include schemaLocation="gml.xsd"/>
|
17 |
|
|
<include schemaLocation="dictionary.xsd"/>
|
18 |
|
|
<!-- ==============================================================
|
19 |
|
|
elements and types
|
20 |
|
|
============================================================== -->
|
21 |
|
|
<element name="unitOfMeasure" type="gml:UnitOfMeasureType"/>
|
22 |
|
|
<!-- =========================================================== -->
|
23 |
|
|
<complexType name="UnitOfMeasureType">
|
24 |
|
|
<annotation>
|
25 |
|
|
<documentation>Reference to a unit of measure definition that applies to all the numerical values described by the element containing this element. Notice that a complexType which needs to include the uom attribute can do so by extending this complexType. Alternately, this complexType can be used as a pattern for a new complexType.</documentation>
|
26 |
|
|
</annotation>
|
27 |
|
|
<sequence/>
|
28 |
|
|
<attribute name="uom" type="anyURI" use="required">
|
29 |
|
|
<annotation>
|
30 |
|
|
<documentation>Reference to a unit of measure definition, usually within the same XML document but possibly outside the XML document which contains this reference. For a reference within the same XML document, the "#" symbol should be used, followed by a text abbreviation of the unit name. However, the "#" symbol may be optional, and still may be interpreted as a reference.</documentation>
|
31 |
|
|
</annotation>
|
32 |
|
|
</attribute>
|
33 |
|
|
</complexType>
|
34 |
|
|
<!-- =========================================================== -->
|
35 |
|
|
<element name="UnitDefinition" type="gml:UnitDefinitionType" substitutionGroup="gml:Definition"/>
|
36 |
|
|
<!-- =========================================================== -->
|
37 |
|
|
<complexType name="UnitDefinitionType">
|
38 |
|
|
<annotation>
|
39 |
|
|
<documentation>Definition of a unit of measure (or uom). The definition includes a quantityType property, which indicates the phenomenon to which the units apply, and a catalogSymbol, which gives the short symbol used for this unit. This element is used when the relationship of this unit to other units or units systems is unknown.</documentation>
|
40 |
|
|
</annotation>
|
41 |
|
|
<complexContent>
|
42 |
|
|
<extension base="gml:DefinitionType">
|
43 |
|
|
<sequence>
|
44 |
|
|
<element ref="gml:quantityType"/>
|
45 |
|
|
<element ref="gml:catalogSymbol" minOccurs="0"/>
|
46 |
|
|
</sequence>
|
47 |
|
|
</extension>
|
48 |
|
|
</complexContent>
|
49 |
|
|
</complexType>
|
50 |
|
|
<!-- =========================================================== -->
|
51 |
|
|
<element name="BaseUnit" type="gml:BaseUnitType" substitutionGroup="gml:UnitDefinition"/>
|
52 |
|
|
<!-- =========================================================== -->
|
53 |
|
|
<complexType name="BaseUnitType">
|
54 |
|
|
<annotation>
|
55 |
|
|
<documentation>Definition of a unit of measure which is a base unit from the system of units. A base unit cannot be derived by combination of other base units within this system. Sometimes known as "fundamental unit".</documentation>
|
56 |
|
|
</annotation>
|
57 |
|
|
<complexContent>
|
58 |
|
|
<extension base="gml:UnitDefinitionType">
|
59 |
|
|
<sequence>
|
60 |
|
|
<element name="unitsSystem" type="gml:ReferenceType"/>
|
61 |
|
|
</sequence>
|
62 |
|
|
</extension>
|
63 |
|
|
</complexContent>
|
64 |
|
|
</complexType>
|
65 |
|
|
<!-- =========================================================== -->
|
66 |
|
|
<element name="DerivedUnit" type="gml:DerivedUnitType" substitutionGroup="gml:UnitDefinition"/>
|
67 |
|
|
<!-- ============================================================ -->
|
68 |
|
|
<complexType name="DerivedUnitType">
|
69 |
|
|
<annotation>
|
70 |
|
|
<documentation>Definition of a unit of measure which is defined through algebraic combination of more primitive units, which are usually base units from a particular system of units. Derived units based directly on base units are usually preferred for quantities other than the base units or fundamental quantities within a system. If a derived unit is not the preferred unit, the ConventionalUnit element should be used instead.</documentation>
|
71 |
|
|
</annotation>
|
72 |
|
|
<complexContent>
|
73 |
|
|
<extension base="gml:UnitDefinitionType">
|
74 |
|
|
<sequence>
|
75 |
|
|
<element ref="gml:derivationUnitTerm" maxOccurs="unbounded"/>
|
76 |
|
|
</sequence>
|
77 |
|
|
</extension>
|
78 |
|
|
</complexContent>
|
79 |
|
|
</complexType>
|
80 |
|
|
<!-- =========================================================== -->
|
81 |
|
|
<element name="ConventionalUnit" type="gml:ConventionalUnitType" substitutionGroup="gml:UnitDefinition"/>
|
82 |
|
|
<!-- =========================================================== -->
|
83 |
|
|
<complexType name="ConventionalUnitType">
|
84 |
|
|
<annotation>
|
85 |
|
|
<documentation>Definition of a unit of measure which is related to a preferred unit for this quantity type through a conversion formula. A method for deriving this unit by algebraic combination of more primitive units, may also be provided.</documentation>
|
86 |
|
|
</annotation>
|
87 |
|
|
<complexContent>
|
88 |
|
|
<extension base="gml:UnitDefinitionType">
|
89 |
|
|
<sequence>
|
90 |
|
|
<choice>
|
91 |
|
|
<element ref="gml:conversionToPreferredUnit"/>
|
92 |
|
|
<element ref="gml:roughConversionToPreferredUnit"/>
|
93 |
|
|
</choice>
|
94 |
|
|
<element ref="gml:derivationUnitTerm" minOccurs="0" maxOccurs="unbounded"/>
|
95 |
|
|
</sequence>
|
96 |
|
|
</extension>
|
97 |
|
|
</complexContent>
|
98 |
|
|
</complexType>
|
99 |
|
|
<!-- =========================================================== -->
|
100 |
|
|
<element name="quantityType" type="gml:StringOrRefType">
|
101 |
|
|
<annotation>
|
102 |
|
|
<documentation>Informal description of the phenomenon or type of quantity that is measured or observed. For example, "length", "angle", "time", "pressure", or "temperature". When the quantity is the result of an observation or measurement, this term is known as Observable Type or Measurand.</documentation>
|
103 |
|
|
</annotation>
|
104 |
|
|
</element>
|
105 |
|
|
<!-- =========================================================== -->
|
106 |
|
|
<element name="catalogSymbol" type="gml:CodeType">
|
107 |
|
|
<annotation>
|
108 |
|
|
<documentation>For global understanding of a unit of measure, it is often possible to reference an item in a catalog of units, using a symbol in that catalog. The "codeSpace" attribute in "CodeType" identifies a namespace for the catalog symbol value, and might reference the catalog. The "string" value in "CodeType" contains the value of a symbol that is unique within this catalog namespace. This symbol often appears explicitly in the catalog, but it could be a combination of symbols using a specified algebra of units. For example, the symbol "cm" might indicate that it is the "m" symbol combined with the "c" prefix.</documentation>
|
109 |
|
|
</annotation>
|
110 |
|
|
</element>
|
111 |
|
|
<!-- =========================================================== -->
|
112 |
|
|
<element name="derivationUnitTerm" type="gml:DerivationUnitTermType"/>
|
113 |
|
|
<!-- =========================================================== -->
|
114 |
|
|
<complexType name="DerivationUnitTermType">
|
115 |
|
|
<annotation>
|
116 |
|
|
<documentation>Definition of one unit term for a derived unit of measure. This unit term references another unit of measure (uom) and provides an integer exponent applied to that unit in defining the compound unit. The exponent can be positive or negative, but not zero.</documentation>
|
117 |
|
|
</annotation>
|
118 |
|
|
<complexContent>
|
119 |
|
|
<extension base="gml:UnitOfMeasureType">
|
120 |
|
|
<attribute name="exponent" type="integer"/>
|
121 |
|
|
</extension>
|
122 |
|
|
</complexContent>
|
123 |
|
|
</complexType>
|
124 |
|
|
<!-- =========================================================== -->
|
125 |
|
|
<element name="conversionToPreferredUnit" type="gml:ConversionToPreferredUnitType">
|
126 |
|
|
<annotation>
|
127 |
|
|
<documentation>This element is included when this unit has an accurate conversion to the preferred unit for this quantity type.</documentation>
|
128 |
|
|
</annotation>
|
129 |
|
|
</element>
|
130 |
|
|
<!-- =========================================================== -->
|
131 |
|
|
<element name="roughConversionToPreferredUnit" type="gml:ConversionToPreferredUnitType">
|
132 |
|
|
<annotation>
|
133 |
|
|
<documentation>This element is included when the correct definition of this unit is unknown, but this unit has a rough or inaccurate conversion to the preferred unit for this quantity type.</documentation>
|
134 |
|
|
</annotation>
|
135 |
|
|
</element>
|
136 |
|
|
<!-- =========================================================== -->
|
137 |
|
|
<complexType name="ConversionToPreferredUnitType">
|
138 |
|
|
<annotation>
|
139 |
|
|
<documentation>Relation of a unit to the preferred unit for this quantity type, specified by an arithmetic conversion (scaling and/or offset). A preferred unit is either a base unit or a derived unit selected for all units of one quantity type. The mandatory attribute "uom" shall reference the preferred unit that this conversion applies to. The conversion is specified by one of two alternative elements: "factor" or "formula".</documentation>
|
140 |
|
|
</annotation>
|
141 |
|
|
<complexContent>
|
142 |
|
|
<extension base="gml:UnitOfMeasureType">
|
143 |
|
|
<choice>
|
144 |
|
|
<element name="factor" type="double">
|
145 |
|
|
<annotation>
|
146 |
|
|
<documentation>Specification of the scale factor by which a value using this unit of measure can be multiplied to obtain the corresponding value using the preferred unit of measure.</documentation>
|
147 |
|
|
</annotation>
|
148 |
|
|
</element>
|
149 |
|
|
<element name="formula" type="gml:FormulaType">
|
150 |
|
|
<annotation>
|
151 |
|
|
<documentation>Specification of the formula by which a value using this unit of measure can be converted to obtain the corresponding value using the preferred unit of measure.</documentation>
|
152 |
|
|
</annotation>
|
153 |
|
|
</element>
|
154 |
|
|
</choice>
|
155 |
|
|
</extension>
|
156 |
|
|
</complexContent>
|
157 |
|
|
</complexType>
|
158 |
|
|
<!-- =========================================================== -->
|
159 |
|
|
<complexType name="FormulaType">
|
160 |
|
|
<annotation>
|
161 |
|
|
<documentation>Paremeters of a simple formula by which a value using this unit of measure can be converted to the corresponding value using the preferred unit of measure. The formula element contains elements a, b, c and d, whose values use the XML Schema type "double". These values are used in the formula y = (a + bx) / (c + dx), where x is a value using this unit, and y is the corresponding value using the preferred unit. The elements a and d are optional, and if values are not provided, those parameters are considered to be zero. If values are not provided for both a and d, the formula is equivalent to a fraction with numerator and denominator parameters.</documentation>
|
162 |
|
|
</annotation>
|
163 |
|
|
<sequence>
|
164 |
|
|
<element name="a" type="double" minOccurs="0"/>
|
165 |
|
|
<element name="b" type="double"/>
|
166 |
|
|
<element name="c" type="double"/>
|
167 |
|
|
<element name="d" type="double" minOccurs="0"/>
|
168 |
|
|
</sequence>
|
169 |
|
|
</complexType>
|
170 |
|
|
<!-- =========================================================== -->
|
171 |
|
|
</schema>
|