1 |
9559
|
tao
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
|
<schema targetNamespace="http://www.opengis.net/gml" elementFormDefault="qualified" attributeFormDefault="unqualified" version="3.1.1.2" xml:lang="en" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml">
|
3 |
|
|
<annotation>
|
4 |
|
|
<appinfo source="urn:opengis:specification:gml:schema-measures:3.1.1"/>
|
5 |
|
|
<documentation>Extends the units.xsd and basicTypes.xsd schemas with types for recording measures using specific types of units, especially the measures and units needed for coordinate reference systems and coordinate operations. The specific unit types encoded are length, angle, scale factor, time, area, volume, speed, and grid length. This schema allows angle values to be recorded as single numbers or in degree-minute-second format.
|
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 Subclause 4.7 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="units.xsd"/>
|
18 |
|
|
<!-- ==============================================================
|
19 |
|
|
elements and types
|
20 |
|
|
============================================================== -->
|
21 |
|
|
<!-- This schema uses the gml:MeasureType defined in basicTypes.xsd with the modified meaning:
|
22 |
|
|
<documentation>Value of a quantity, with its units. This element uses the XML Schema primitive data type "double" because it supports both decimal and scientific notation, and thus offers flexibility and precision. However, there is no requirement to store values using any particular format, and applications receiving elements of this type may choose to coerce the data to any other type as convenient. The XML attribute uom references the units or scale by which the amount should be multiplied. For a reference within the same XML document, the abbreviated XPointer prefix "#" 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> -->
|
23 |
|
|
<!-- =========================================================== -->
|
24 |
|
|
<element name="measure" type="gml:MeasureType"/>
|
25 |
|
|
<!-- =========================================================== -->
|
26 |
|
|
<complexType name="LengthType">
|
27 |
|
|
<annotation>
|
28 |
|
|
<documentation>Value of a length (or distance) quantity, with its units. Uses the MeasureType with the restriction that the unit of measure referenced by uom must be suitable for a length, such as metres or feet.</documentation>
|
29 |
|
|
</annotation>
|
30 |
|
|
<simpleContent>
|
31 |
|
|
<restriction base="gml:MeasureType"/>
|
32 |
|
|
</simpleContent>
|
33 |
|
|
</complexType>
|
34 |
|
|
<!-- =========================================================== -->
|
35 |
|
|
<complexType name="ScaleType">
|
36 |
|
|
<annotation>
|
37 |
|
|
<documentation>Value of a scale factor (or ratio) that has no physical unit. Uses the MeasureType with the restriction that the unit of measure referenced by uom must be suitable for a scale factor, such as percent, permil, or parts-per-million.</documentation>
|
38 |
|
|
</annotation>
|
39 |
|
|
<simpleContent>
|
40 |
|
|
<restriction base="gml:MeasureType"/>
|
41 |
|
|
</simpleContent>
|
42 |
|
|
</complexType>
|
43 |
|
|
<!-- =========================================================== -->
|
44 |
|
|
<complexType name="TimeType">
|
45 |
|
|
<annotation>
|
46 |
|
|
<documentation>Value of a time or temporal quantity, with its units. Uses the MeasureType with the restriction that the unit of measure referenced by uom must be suitable for a time value, such as seconds or weeks.</documentation>
|
47 |
|
|
</annotation>
|
48 |
|
|
<simpleContent>
|
49 |
|
|
<restriction base="gml:MeasureType"/>
|
50 |
|
|
</simpleContent>
|
51 |
|
|
</complexType>
|
52 |
|
|
<!-- =========================================================== -->
|
53 |
|
|
<complexType name="GridLengthType">
|
54 |
|
|
<annotation>
|
55 |
|
|
<documentation>Value of a length (or distance) quantity in a grid, where the grid spacing does not have any associated physical units, or does not have a constant physical spacing. This grid length will often be used in a digital image grid, where the base units are likely to be pixel spacings. Uses the MeasureType with the restriction that the unit of measure referenced by uom must be suitable for length along the axes of a grid, such as pixel spacings or grid spacings.</documentation>
|
56 |
|
|
</annotation>
|
57 |
|
|
<simpleContent>
|
58 |
|
|
<restriction base="gml:MeasureType"/>
|
59 |
|
|
</simpleContent>
|
60 |
|
|
</complexType>
|
61 |
|
|
<!-- =========================================================== -->
|
62 |
|
|
<complexType name="AreaType">
|
63 |
|
|
<annotation>
|
64 |
|
|
<documentation>Value of a spatial area quantity, with its units. Uses the MeasureType with the restriction that the unit of measure referenced by uom must be suitable for an area, such as square metres or square miles.</documentation>
|
65 |
|
|
</annotation>
|
66 |
|
|
<simpleContent>
|
67 |
|
|
<restriction base="gml:MeasureType"/>
|
68 |
|
|
</simpleContent>
|
69 |
|
|
</complexType>
|
70 |
|
|
<!-- =========================================================== -->
|
71 |
|
|
<complexType name="VolumeType">
|
72 |
|
|
<annotation>
|
73 |
|
|
<documentation>Value of a spatial volume quantity, with its units. Uses the MeasureType with the restriction that the unit of measure referenced by uom must be suitable for a volume, such as cubic metres or cubic feet.</documentation>
|
74 |
|
|
</annotation>
|
75 |
|
|
<simpleContent>
|
76 |
|
|
<restriction base="gml:MeasureType"/>
|
77 |
|
|
</simpleContent>
|
78 |
|
|
</complexType>
|
79 |
|
|
<!-- =========================================================== -->
|
80 |
|
|
<complexType name="SpeedType">
|
81 |
|
|
<annotation>
|
82 |
|
|
<documentation>Value of a speed, with its units. Uses the MeasureType with the restriction that the unit of measure referenced by uom must be suitable for a velocity, such as metres per second or miles per hour.</documentation>
|
83 |
|
|
</annotation>
|
84 |
|
|
<simpleContent>
|
85 |
|
|
<restriction base="gml:MeasureType"/>
|
86 |
|
|
</simpleContent>
|
87 |
|
|
</complexType>
|
88 |
|
|
<!-- =========================================================== -->
|
89 |
|
|
<complexType name="AngleChoiceType">
|
90 |
|
|
<annotation>
|
91 |
|
|
<documentation>Value of an angle quantity provided in either degree-minute-second format or single value format.</documentation>
|
92 |
|
|
</annotation>
|
93 |
|
|
<choice>
|
94 |
|
|
<element ref="gml:angle"/>
|
95 |
|
|
<element ref="gml:dmsAngle"/>
|
96 |
|
|
</choice>
|
97 |
|
|
</complexType>
|
98 |
|
|
<!-- =========================================================== -->
|
99 |
|
|
<element name="angle" type="gml:MeasureType"/>
|
100 |
|
|
<!-- =========================================================== -->
|
101 |
|
|
<complexType name="AngleType">
|
102 |
|
|
<annotation>
|
103 |
|
|
<documentation>Value of an angle quantity recorded as a single number, with its units. Uses the MeasureType with the restriction that the unit of measure referenced by uom must be suitable for an angle, such as degrees or radians.</documentation>
|
104 |
|
|
</annotation>
|
105 |
|
|
<simpleContent>
|
106 |
|
|
<restriction base="gml:MeasureType"/>
|
107 |
|
|
</simpleContent>
|
108 |
|
|
</complexType>
|
109 |
|
|
<!-- =========================================================== -->
|
110 |
|
|
<element name="dmsAngle" type="gml:DMSAngleType"/>
|
111 |
|
|
<!-- =========================================================== -->
|
112 |
|
|
<complexType name="DMSAngleType">
|
113 |
|
|
<annotation>
|
114 |
|
|
<documentation>Angle value provided in degree-minute-second or degree-minute format.</documentation>
|
115 |
|
|
</annotation>
|
116 |
|
|
<sequence>
|
117 |
|
|
<element ref="gml:degrees"/>
|
118 |
|
|
<choice minOccurs="0">
|
119 |
|
|
<element ref="gml:decimalMinutes"/>
|
120 |
|
|
<sequence>
|
121 |
|
|
<element ref="gml:minutes"/>
|
122 |
|
|
<element ref="gml:seconds" minOccurs="0"/>
|
123 |
|
|
</sequence>
|
124 |
|
|
</choice>
|
125 |
|
|
</sequence>
|
126 |
|
|
</complexType>
|
127 |
|
|
<!-- =========================================================== -->
|
128 |
|
|
<element name="degrees" type="gml:DegreesType"/>
|
129 |
|
|
<!-- =========================================================== -->
|
130 |
|
|
<complexType name="DegreesType">
|
131 |
|
|
<annotation>
|
132 |
|
|
<documentation>Integer number of degrees, plus the angle direction. This element can be used for geographic Latitude and Longitude. For Latitude, the XML attribute direction can take the values "N" or "S", meaning North or South of the equator. For Longitude, direction can take the values "E" or "W", meaning East or West of the prime meridian. This element can also be used for other angles. In that case, the direction can take the values "+" or "-" (of SignType), in the specified rotational direction from a specified reference direction.</documentation>
|
133 |
|
|
</annotation>
|
134 |
|
|
<simpleContent>
|
135 |
|
|
<extension base="gml:DegreeValueType">
|
136 |
|
|
<attribute name="direction">
|
137 |
|
|
<simpleType>
|
138 |
|
|
<union>
|
139 |
|
|
<simpleType>
|
140 |
|
|
<restriction base="string">
|
141 |
|
|
<enumeration value="N"/>
|
142 |
|
|
<enumeration value="E"/>
|
143 |
|
|
<enumeration value="S"/>
|
144 |
|
|
<enumeration value="W"/>
|
145 |
|
|
</restriction>
|
146 |
|
|
</simpleType>
|
147 |
|
|
<simpleType>
|
148 |
|
|
<restriction base="gml:SignType"/>
|
149 |
|
|
</simpleType>
|
150 |
|
|
</union>
|
151 |
|
|
</simpleType>
|
152 |
|
|
</attribute>
|
153 |
|
|
</extension>
|
154 |
|
|
</simpleContent>
|
155 |
|
|
</complexType>
|
156 |
|
|
<!-- =========================================================== -->
|
157 |
|
|
<simpleType name="DegreeValueType">
|
158 |
|
|
<annotation>
|
159 |
|
|
<documentation>Integer number of degrees in a degree-minute-second or degree-minute angular value, without indication of direction.</documentation>
|
160 |
|
|
</annotation>
|
161 |
|
|
<restriction base="nonNegativeInteger">
|
162 |
|
|
<maxInclusive value="359"/>
|
163 |
|
|
</restriction>
|
164 |
|
|
</simpleType>
|
165 |
|
|
<!-- =========================================================== -->
|
166 |
|
|
<element name="decimalMinutes" type="gml:DecimalMinutesType"/>
|
167 |
|
|
<!-- =========================================================== -->
|
168 |
|
|
<simpleType name="DecimalMinutesType">
|
169 |
|
|
<annotation>
|
170 |
|
|
<documentation>Decimal number of arc-minutes in a degree-minute angular value.</documentation>
|
171 |
|
|
</annotation>
|
172 |
|
|
<restriction base="decimal">
|
173 |
|
|
<minInclusive value="0.00"/>
|
174 |
|
|
<maxExclusive value="60.00"/>
|
175 |
|
|
</restriction>
|
176 |
|
|
</simpleType>
|
177 |
|
|
<!-- =========================================================== -->
|
178 |
|
|
<element name="minutes" type="gml:ArcMinutesType"/>
|
179 |
|
|
<!-- =========================================================== -->
|
180 |
|
|
<simpleType name="ArcMinutesType">
|
181 |
|
|
<annotation>
|
182 |
|
|
<documentation>Integer number of arc-minutes in a degree-minute-second angular value.</documentation>
|
183 |
|
|
</annotation>
|
184 |
|
|
<restriction base="nonNegativeInteger">
|
185 |
|
|
<maxInclusive value="59"/>
|
186 |
|
|
</restriction>
|
187 |
|
|
</simpleType>
|
188 |
|
|
<!-- =========================================================== -->
|
189 |
|
|
<element name="seconds" type="gml:ArcSecondsType"/>
|
190 |
|
|
<!-- =========================================================== -->
|
191 |
|
|
<simpleType name="ArcSecondsType">
|
192 |
|
|
<annotation>
|
193 |
|
|
<documentation>Number of arc-seconds in a degree-minute-second angular value.</documentation>
|
194 |
|
|
</annotation>
|
195 |
|
|
<restriction base="decimal">
|
196 |
|
|
<minInclusive value="0.00"/>
|
197 |
|
|
<maxExclusive value="60.00"/>
|
198 |
|
|
</restriction>
|
199 |
|
|
</simpleType>
|
200 |
|
|
<!-- =========================================================== -->
|
201 |
|
|
</schema>
|