source: RevitalizationWS/schemas/gml/trunk/src/main/resources/units.xsd @ 7379

Subversion URL:
Revision 7379, 11.1 KB checked in by mnagni, 11 years ago (diff)

Contains the configuration to generate an ogc complaint GML library. The version of the Maven's POM file has to be considered as the GML version

  • Property svn:mime-type set to text/plain
1<?xml version="1.0" encoding="UTF-8"?>
2<schema targetNamespace="" xmlns:gml="" xmlns="" elementFormDefault="qualified" version="3.1.1 2010-01-28" 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. of ISO/CD 19118 Geographic information - Encoding, and on most of OpenGIS Recommendation Paper OGC 02-007r4 Units of Measure Use and Definition Recommendations.
8                GML is an OGC Standard.
9                Copyright (c) 2001,2005,2010 Open Geospatial Consortium, Inc. All Rights Reserved.
10                To obtain additional rights of use, visit .
11                </documentation>
12        </annotation>
13        <!-- ==============================================================
14       includes and imports
15        ============================================================== -->
16        <include schemaLocation="dictionary.xsd"/>
17        <!-- ==============================================================
18       elements and types
19        ============================================================== -->
20        <element name="unitOfMeasure" type="gml:UnitOfMeasureType"/>
21        <!-- =========================================================== -->
22        <complexType name="UnitOfMeasureType">
23                <annotation>
24                        <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>
25                </annotation>
26                <sequence/>
27                <attribute name="uom" type="anyURI" use="required">
28                        <annotation>
29                                <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>
30                        </annotation>
31                </attribute>
32        </complexType>
33        <!-- =========================================================== -->
34        <element name="UnitDefinition" type="gml:UnitDefinitionType" substitutionGroup="gml:Definition"/>
35        <!-- =========================================================== -->
36        <complexType name="UnitDefinitionType">
37                <annotation>
38                        <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>
39                </annotation>
40                <complexContent>
41                        <extension base="gml:DefinitionType">
42                                <sequence>
43                                        <element ref="gml:quantityType"/>
44                                        <element ref="gml:catalogSymbol" minOccurs="0"/>
45                                </sequence>
46                        </extension>
47                </complexContent>
48        </complexType>
49        <!-- =========================================================== -->
50        <element name="BaseUnit" type="gml:BaseUnitType" substitutionGroup="gml:UnitDefinition"/>
51        <!-- =========================================================== -->
52        <complexType name="BaseUnitType">
53                <annotation>
54                        <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>
55                </annotation>
56                <complexContent>
57                        <extension base="gml:UnitDefinitionType">
58                                <sequence>
59                                        <element name="unitsSystem" type="gml:ReferenceType"/>
60                                </sequence>
61                        </extension>
62                </complexContent>
63        </complexType>
64        <!-- =========================================================== -->
65        <element name="DerivedUnit" type="gml:DerivedUnitType" substitutionGroup="gml:UnitDefinition"/>
66        <!-- ============================================================ -->
67        <complexType name="DerivedUnitType">
68                <annotation>
69                        <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>
70                </annotation>
71                <complexContent>
72                        <extension base="gml:UnitDefinitionType">
73                                <sequence>
74                                        <element ref="gml:derivationUnitTerm" maxOccurs="unbounded"/>
75                                </sequence>
76                        </extension>
77                </complexContent>
78        </complexType>
79        <!-- =========================================================== -->
80        <element name="ConventionalUnit" type="gml:ConventionalUnitType" substitutionGroup="gml:UnitDefinition"/>
81        <!-- =========================================================== -->
82        <complexType name="ConventionalUnitType">
83                <annotation>
84                        <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>
85                </annotation>
86                <complexContent>
87                        <extension base="gml:UnitDefinitionType">
88                                <sequence>
89                                        <choice>
90                                                <element ref="gml:conversionToPreferredUnit"/>
91                                                <element ref="gml:roughConversionToPreferredUnit"/>
92                                        </choice>
93                                        <element ref="gml:derivationUnitTerm" minOccurs="0" maxOccurs="unbounded"/>
94                                </sequence>
95                        </extension>
96                </complexContent>
97        </complexType>
98        <!-- =========================================================== -->
99        <element name="quantityType" type="gml:StringOrRefType">
100                <annotation>
101                        <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>
102                </annotation>
103        </element>
104        <!-- =========================================================== -->
105        <element name="catalogSymbol" type="gml:CodeType">
106                <annotation>
107                        <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>
108                </annotation>
109        </element>
110        <!-- =========================================================== -->
111        <element name="derivationUnitTerm" type="gml:DerivationUnitTermType"/>
112        <!-- =========================================================== -->
113        <complexType name="DerivationUnitTermType">
114                <annotation>
115                        <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>
116                </annotation>
117                <complexContent>
118                        <extension base="gml:UnitOfMeasureType">
119                                <attribute name="exponent" type="integer"/>
120                        </extension>
121                </complexContent>
122        </complexType>
123        <!-- =========================================================== -->
124        <element name="conversionToPreferredUnit" type="gml:ConversionToPreferredUnitType">
125                <annotation>
126                        <documentation>This element is included when this unit has an accurate conversion to the preferred unit for this quantity type.</documentation>
127                </annotation>
128        </element>
129        <!-- =========================================================== -->
130        <element name="roughConversionToPreferredUnit" type="gml:ConversionToPreferredUnitType">
131                <annotation>
132                        <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>
133                </annotation>
134        </element>
135        <!-- =========================================================== -->
136        <complexType name="ConversionToPreferredUnitType">
137                <annotation>
138                        <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>
139                </annotation>
140                <complexContent>
141                        <extension base="gml:UnitOfMeasureType">
142                                <choice>
143                                        <element name="factor" type="double">
144                                                <annotation>
145                                                        <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>
146                                                </annotation>
147                                        </element>
148                                        <element name="formula" type="gml:FormulaType">
149                                                <annotation>
150                                                        <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>
151                                                </annotation>
152                                        </element>
153                                </choice>
154                        </extension>
155                </complexContent>
156        </complexType>
157        <!-- =========================================================== -->
158        <complexType name="FormulaType">
159                <annotation>
160                        <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>
161                </annotation>
162                <sequence>
163                        <element name="a" type="double" minOccurs="0"/>
164                        <element name="b" type="double"/>
165                        <element name="c" type="double"/>
166                        <element name="d" type="double" minOccurs="0"/>
167                </sequence>
168        </complexType>
169        <!-- =========================================================== -->
Note: See TracBrowser for help on using the repository browser.