1 |
9559
|
tao
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
|
<schema targetNamespace="http://www.opengis.net/gml/3.2" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml/3.2" elementFormDefault="qualified" xml:lang="en" version="3.2.1.2">
|
3 |
|
|
<annotation>
|
4 |
|
|
<appinfo source="urn:x-ogc:specification:gml:schema-xsd:units:3.2.1">units.xsd</appinfo>
|
5 |
|
|
<documentation>See ISO/DIS 17.2.
|
6 |
|
|
Several GML Schema components concern or require a reference scale or units of measure. Units are required for quantities that may occur as values of properties of feature types, as the results of observations, in the range parameters of a coverage, and for measures used in Coordinate Reference System definitions.
|
7 |
|
|
The basic unit definition is an extension of the general gml:Definition element defined in 16.2.1. Three specialized elements for unit definition are further derived from this.
|
8 |
|
|
This model is based on the SI system of units [ISO 1000], which distinguishes between Base Units and Derived Units.
|
9 |
|
|
- Base Units are the preferred units for a set of orthogonal fundamental quantities which define the particular system of units, which may not be derived by combination of other base units.
|
10 |
|
|
- Derived Units are the preferred units for other quantities in the system, which may be defined by algebraic combination of the base units.
|
11 |
|
|
In some application areas Conventional units are used, which may be converted to the preferred units using a scaling factor or a formula which defines a re-scaling and offset. The set of preferred units for all physical quantity types in a particular system of units is composed of the union of its base units and derived units.
|
12 |
|
|
Unit definitions are substitutable for the gml:Definition element declared as part of the dictionary model. A dictionary that contains only unit definitions and references to unit definitions is a units dictionary.
|
13 |
|
|
|
14 |
|
|
GML is an OGC Standard.
|
15 |
|
|
Copyright (c) 2007,2010 Open Geospatial Consortium.
|
16 |
|
|
To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
|
17 |
|
|
</documentation>
|
18 |
|
|
</annotation>
|
19 |
|
|
<include schemaLocation="gml.xsd"/>
|
20 |
|
|
<include schemaLocation="dictionary.xsd"/>
|
21 |
|
|
<element name="unitOfMeasure" type="gml:UnitOfMeasureType">
|
22 |
|
|
<annotation>
|
23 |
|
|
<documentation>The element gml:unitOfMeasure is a property element to refer to a unit of measure. This is an empty element which carries a reference to a unit of measure definition.</documentation>
|
24 |
|
|
</annotation>
|
25 |
|
|
</element>
|
26 |
|
|
<complexType name="UnitOfMeasureType">
|
27 |
|
|
<sequence/>
|
28 |
|
|
<attribute name="uom" type="gml:UomIdentifier" use="required"/>
|
29 |
|
|
</complexType>
|
30 |
|
|
<element name="UnitDefinition" type="gml:UnitDefinitionType" substitutionGroup="gml:Definition">
|
31 |
|
|
<annotation>
|
32 |
|
|
<documentation>A gml:UnitDefinition is a general definition of a unit of measure. This generic element is used only for units for which no relationship with other units or units systems is known.
|
33 |
|
|
The content model of gml:UnitDefinition adds three additional properties to gml:Definition, gml:quantityType, gml:quantityTypeReference and gml:catalogSymbol.
|
34 |
|
|
The gml:catalogSymbol property optionally gives the short symbol used for this unit. This element is usually used when the relationship of this unit to other units or units systems is unknown.</documentation>
|
35 |
|
|
</annotation>
|
36 |
|
|
</element>
|
37 |
|
|
<complexType name="UnitDefinitionType">
|
38 |
|
|
<complexContent>
|
39 |
|
|
<extension base="gml:DefinitionType">
|
40 |
|
|
<sequence>
|
41 |
|
|
<element ref="gml:quantityType" minOccurs="0"/>
|
42 |
|
|
<element ref="gml:quantityTypeReference" minOccurs="0"/>
|
43 |
|
|
<element ref="gml:catalogSymbol" minOccurs="0"/>
|
44 |
|
|
</sequence>
|
45 |
|
|
</extension>
|
46 |
|
|
</complexContent>
|
47 |
|
|
</complexType>
|
48 |
|
|
<element name="quantityType" type="gml:StringOrRefType">
|
49 |
|
|
<annotation>
|
50 |
|
|
<documentation>The gml:quantityType property indicates the phenomenon to which the units apply. This element contains an informal description of the phenomenon or type of physical quantity that is measured or observed. When the physical quantity is the result of an observation or measurement, this term is known as observable type or measurand.
|
51 |
|
|
The use of gml:quantityType for references to remote values is deprecated.</documentation>
|
52 |
|
|
</annotation>
|
53 |
|
|
</element>
|
54 |
|
|
<element name="quantityTypeReference" type="gml:ReferenceType">
|
55 |
|
|
<annotation>
|
56 |
|
|
<documentation>The gml:quantityTypeReference property indicates the phenomenon to which the units apply. The content is a reference to a remote value.</documentation>
|
57 |
|
|
</annotation>
|
58 |
|
|
</element>
|
59 |
|
|
<element name="catalogSymbol" type="gml:CodeType">
|
60 |
|
|
<annotation>
|
61 |
|
|
<documentation>The catalogSymbol is the preferred lexical symbol used for this unit of measure.
|
62 |
|
|
The codeSpace attribute in gml:CodeType identifies a namespace for the catalog symbol value, and might reference the external catalog. The string value in gml:CodeType contains the value of a symbol that should be 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.</documentation>
|
63 |
|
|
</annotation>
|
64 |
|
|
</element>
|
65 |
|
|
<element name="BaseUnit" type="gml:BaseUnitType" substitutionGroup="gml:UnitDefinition">
|
66 |
|
|
<annotation>
|
67 |
|
|
<documentation>A base unit is a unit of measure that cannot be derived by combination of other base units within a particular system of units. For example, in the SI system of units, the base units are metre, kilogram, second, Ampere, Kelvin, mole, and candela, for the physical quantity types length, mass, time interval, electric current, thermodynamic temperature, amount of substance and luminous intensity, respectively.
|
68 |
|
|
gml:BaseUnit extends generic gml:UnitDefinition with the property gml:unitsSystem, which carries a reference to the units system to which this base unit is asserted to belong. </documentation>
|
69 |
|
|
</annotation>
|
70 |
|
|
</element>
|
71 |
|
|
<complexType name="BaseUnitType">
|
72 |
|
|
<complexContent>
|
73 |
|
|
<extension base="gml:UnitDefinitionType">
|
74 |
|
|
<sequence>
|
75 |
|
|
<element name="unitsSystem" type="gml:ReferenceType"/>
|
76 |
|
|
</sequence>
|
77 |
|
|
</extension>
|
78 |
|
|
</complexContent>
|
79 |
|
|
</complexType>
|
80 |
|
|
<element name="DerivedUnit" type="gml:DerivedUnitType" substitutionGroup="gml:UnitDefinition">
|
81 |
|
|
<annotation>
|
82 |
|
|
<documentation>Derived units are defined by combination of other units. Derived units are used for quantities other than those corresponding to the base units, such as hertz (s-1) for frequency, Newton (kg.m/s2) for force. Derived units based directly on base units are usually preferred for quantities other than the fundamental quantities within a system. If a derived unit is not the preferred unit, the gml:ConventionalUnit element should be used instead.
|
83 |
|
|
The gml:DerivedUnit extends gml:UnitDefinition with the property gml:derivationUnitTerms.</documentation>
|
84 |
|
|
</annotation>
|
85 |
|
|
</element>
|
86 |
|
|
<complexType name="DerivedUnitType">
|
87 |
|
|
<complexContent>
|
88 |
|
|
<extension base="gml:UnitDefinitionType">
|
89 |
|
|
<sequence>
|
90 |
|
|
<element ref="gml:derivationUnitTerm" maxOccurs="unbounded"/>
|
91 |
|
|
</sequence>
|
92 |
|
|
</extension>
|
93 |
|
|
</complexContent>
|
94 |
|
|
</complexType>
|
95 |
|
|
<element name="derivationUnitTerm" type="gml:DerivationUnitTermType">
|
96 |
|
|
<annotation>
|
97 |
|
|
<documentation>A set of gml:derivationUnitTerm elements describes a derived unit of measure. Each element carries an integer exponent. The terms are combined by raising each referenced unit to the power of its exponent and forming the product.
|
98 |
|
|
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 may be positive or negative, but not zero.</documentation>
|
99 |
|
|
</annotation>
|
100 |
|
|
</element>
|
101 |
|
|
<complexType name="DerivationUnitTermType">
|
102 |
|
|
<complexContent>
|
103 |
|
|
<extension base="gml:UnitOfMeasureType">
|
104 |
|
|
<attribute name="exponent" type="integer"/>
|
105 |
|
|
</extension>
|
106 |
|
|
</complexContent>
|
107 |
|
|
</complexType>
|
108 |
|
|
<element name="ConventionalUnit" type="gml:ConventionalUnitType" substitutionGroup="gml:UnitDefinition">
|
109 |
|
|
<annotation>
|
110 |
|
|
<documentation>Conventional units that are neither base units nor defined by direct combination of base units are used in many application domains. For example electronVolt for energy, feet and nautical miles for length. In most cases there is a known, usually linear, conversion to a preferred unit which is either a base unit or derived by direct combination of base units.
|
111 |
|
|
The gml:ConventionalUnit extends gml:UnitDefinition with a property that describes a conversion to a preferred unit for this physical quantity. When the conversion is exact, the element gml:conversionToPreferredUnit should be used, or when the conversion is not exact the element gml:roughConversionToPreferredUnit is available. Both of these elements have the same content model. The gml:derivationUnitTerm property defined above is included to allow a user to optionally record how this unit may be derived from other ("more primitive") units.</documentation>
|
112 |
|
|
</annotation>
|
113 |
|
|
</element>
|
114 |
|
|
<complexType name="ConventionalUnitType">
|
115 |
|
|
<complexContent>
|
116 |
|
|
<extension base="gml:UnitDefinitionType">
|
117 |
|
|
<sequence>
|
118 |
|
|
<choice>
|
119 |
|
|
<element ref="gml:conversionToPreferredUnit"/>
|
120 |
|
|
<element ref="gml:roughConversionToPreferredUnit"/>
|
121 |
|
|
</choice>
|
122 |
|
|
<element ref="gml:derivationUnitTerm" minOccurs="0" maxOccurs="unbounded"/>
|
123 |
|
|
</sequence>
|
124 |
|
|
</extension>
|
125 |
|
|
</complexContent>
|
126 |
|
|
</complexType>
|
127 |
|
|
<element name="conversionToPreferredUnit" type="gml:ConversionToPreferredUnitType">
|
128 |
|
|
<annotation>
|
129 |
|
|
<documentation>The elements gml:conversionToPreferredUnit and gml:roughConversionToPreferredUnit represent parameters used to convert conventional units to preferred units for this physical quantity type. A preferred unit is either a Base Unit or a Derived Unit that is selected for all values of one physical quantity type.</documentation>
|
130 |
|
|
</annotation>
|
131 |
|
|
</element>
|
132 |
|
|
<element name="roughConversionToPreferredUnit" type="gml:ConversionToPreferredUnitType">
|
133 |
|
|
<annotation>
|
134 |
|
|
<documentation>The elements gml:conversionToPreferredUnit and gml:roughConversionToPreferredUnit represent parameters used to convert conventional units to preferred units for this physical quantity type. A preferred unit is either a Base Unit or a Derived Unit that is selected for all values of one physical quantity type.</documentation>
|
135 |
|
|
</annotation>
|
136 |
|
|
</element>
|
137 |
|
|
<complexType name="ConversionToPreferredUnitType">
|
138 |
|
|
<annotation>
|
139 |
|
|
<documentation>The inherited attribute uom references the preferred unit that this conversion applies to. The conversion of a unit to the preferred unit for this physical quantity type is specified by an arithmetic conversion (scaling and/or offset). The content model extends gml:UnitOfMeasureType, which has a mandatory attribute uom which identifies the preferred unit for the physical quantity type that this conversion applies to. The conversion is specified by a choice of
|
140 |
|
|
- gml:factor, which defines the scale factor, or
|
141 |
|
|
- gml:formula, which defines a formula
|
142 |
|
|
by which a value using the conventional unit of measure can be converted to obtain the corresponding value using the preferred unit of measure.
|
143 |
|
|
The formula defines the parameters of a simple formula by which a value using the conventional 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 base 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>
|
144 |
|
|
</annotation>
|
145 |
|
|
<complexContent>
|
146 |
|
|
<extension base="gml:UnitOfMeasureType">
|
147 |
|
|
<choice>
|
148 |
|
|
<element name="factor" type="double"/>
|
149 |
|
|
<element name="formula" type="gml:FormulaType"/>
|
150 |
|
|
</choice>
|
151 |
|
|
</extension>
|
152 |
|
|
</complexContent>
|
153 |
|
|
</complexType>
|
154 |
|
|
<complexType name="FormulaType">
|
155 |
|
|
<sequence>
|
156 |
|
|
<element name="a" type="double" minOccurs="0"/>
|
157 |
|
|
<element name="b" type="double"/>
|
158 |
|
|
<element name="c" type="double"/>
|
159 |
|
|
<element name="d" type="double" minOccurs="0"/>
|
160 |
|
|
</sequence>
|
161 |
|
|
</complexType>
|
162 |
|
|
</schema>
|