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" version="3.2.1.2">
|
3 |
|
|
<annotation>
|
4 |
|
|
<appinfo source="urn:x-ogc:specification:gml:schema-xsd:temporal:3.2.1">temporal.xsd</appinfo>
|
5 |
|
|
<documentation>See ISO/DIS 19136 15.2.
|
6 |
|
|
The GML temporal schemas include components for describing temporal geometry and topology, temporal reference systems, and the temporal characteristics of geographic data. The model underlying the representation constitutes a profile of the conceptual schema described in ISO 19108. The underlying spatiotemporal model strives to accommodate both feature-level and attribute-level time stamping; basic support for tracking moving objects is also included.
|
7 |
|
|
Time is measured on two types of scales: interval and ordinal. An interval scale offers a basis for measuring duration, an ordinal scale provides information only about relative position in time.
|
8 |
|
|
Two other ISO standards are relevant to describing temporal objects: ISO 8601 describes encodings for time instants and time periods, as text strings with particular structure and punctuation; ISO 11404 provides a detailed description of time intervals as part of a general discussion of language independent datatypes.
|
9 |
|
|
The temporal schemas cover two interrelated topics and provide basic schema components for representing temporal instants and periods, temporal topology, and reference systems; more specialized schema components defines components used for dynamic features. Instances of temporal geometric types are used as values for the temporal properties of geographic features.
|
10 |
|
|
|
11 |
|
|
GML is an OGC Standard.
|
12 |
|
|
Copyright (c) 2007,2010 Open Geospatial Consortium.
|
13 |
|
|
To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
|
14 |
|
|
</documentation>
|
15 |
|
|
</annotation>
|
16 |
|
|
<include schemaLocation="gml.xsd"/>
|
17 |
|
|
<include schemaLocation="gmlBase.xsd"/>
|
18 |
|
|
<element name="AbstractTimeObject" type="gml:AbstractTimeObjectType" abstract="true" substitutionGroup="gml:AbstractGML">
|
19 |
|
|
<annotation>
|
20 |
|
|
<documentation>gml:AbstractTimeObject acts as the head of a substitution group for all temporal primitives and complexes.</documentation>
|
21 |
|
|
</annotation>
|
22 |
|
|
</element>
|
23 |
|
|
<complexType name="AbstractTimeObjectType" abstract="true">
|
24 |
|
|
<complexContent>
|
25 |
|
|
<extension base="gml:AbstractGMLType"/>
|
26 |
|
|
</complexContent>
|
27 |
|
|
</complexType>
|
28 |
|
|
<element name="AbstractTimePrimitive" type="gml:AbstractTimePrimitiveType" abstract="true" substitutionGroup="gml:AbstractTimeObject">
|
29 |
|
|
<annotation>
|
30 |
|
|
<documentation>gml:AbstractTimePrimitive acts as the head of a substitution group for geometric and topological temporal primitives.</documentation>
|
31 |
|
|
</annotation>
|
32 |
|
|
</element>
|
33 |
|
|
<complexType name="AbstractTimePrimitiveType" abstract="true">
|
34 |
|
|
<complexContent>
|
35 |
|
|
<extension base="gml:AbstractTimeObjectType">
|
36 |
|
|
<sequence>
|
37 |
|
|
<element name="relatedTime" type="gml:RelatedTimeType" minOccurs="0" maxOccurs="unbounded"/>
|
38 |
|
|
</sequence>
|
39 |
|
|
</extension>
|
40 |
|
|
</complexContent>
|
41 |
|
|
</complexType>
|
42 |
|
|
<complexType name="TimePrimitivePropertyType">
|
43 |
|
|
<annotation>
|
44 |
|
|
<documentation>gml:TimePrimitivePropertyType provides a standard content model for associations between an arbitrary member of the substitution group whose head is gml:AbstractTimePrimitive and another object.</documentation>
|
45 |
|
|
</annotation>
|
46 |
|
|
<sequence minOccurs="0">
|
47 |
|
|
<element ref="gml:AbstractTimePrimitive"/>
|
48 |
|
|
</sequence>
|
49 |
|
|
<attributeGroup ref="gml:AssociationAttributeGroup"/>
|
50 |
|
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
51 |
|
|
</complexType>
|
52 |
|
|
<element name="validTime" type="gml:TimePrimitivePropertyType">
|
53 |
|
|
<annotation>
|
54 |
|
|
<documentation>gml:validTime is a convenience property element.</documentation>
|
55 |
|
|
</annotation>
|
56 |
|
|
</element>
|
57 |
|
|
<complexType name="RelatedTimeType">
|
58 |
|
|
<annotation>
|
59 |
|
|
<documentation>gml:RelatedTimeType provides a content model for indicating the relative position of an arbitrary member of the substitution group whose head is gml:AbstractTimePrimitive. It extends the generic gml:TimePrimitivePropertyType with an XML attribute relativePosition, whose value is selected from the set of 13 temporal relationships identified by Allen (1983)</documentation>
|
60 |
|
|
</annotation>
|
61 |
|
|
<complexContent>
|
62 |
|
|
<extension base="gml:TimePrimitivePropertyType">
|
63 |
|
|
<attribute name="relativePosition">
|
64 |
|
|
<simpleType>
|
65 |
|
|
<restriction base="string">
|
66 |
|
|
<enumeration value="Before"/>
|
67 |
|
|
<enumeration value="After"/>
|
68 |
|
|
<enumeration value="Begins"/>
|
69 |
|
|
<enumeration value="Ends"/>
|
70 |
|
|
<enumeration value="During"/>
|
71 |
|
|
<enumeration value="Equals"/>
|
72 |
|
|
<enumeration value="Contains"/>
|
73 |
|
|
<enumeration value="Overlaps"/>
|
74 |
|
|
<enumeration value="Meets"/>
|
75 |
|
|
<enumeration value="OverlappedBy"/>
|
76 |
|
|
<enumeration value="MetBy"/>
|
77 |
|
|
<enumeration value="BegunBy"/>
|
78 |
|
|
<enumeration value="EndedBy"/>
|
79 |
|
|
</restriction>
|
80 |
|
|
</simpleType>
|
81 |
|
|
</attribute>
|
82 |
|
|
</extension>
|
83 |
|
|
</complexContent>
|
84 |
|
|
</complexType>
|
85 |
|
|
<element name="AbstractTimeComplex" type="gml:AbstractTimeComplexType" abstract="true" substitutionGroup="gml:AbstractTimeObject">
|
86 |
|
|
<annotation>
|
87 |
|
|
<documentation>gml:AbstractTimeComplex is an aggregation of temporal primitives and acts as the head of a substitution group for temporal complexes.</documentation>
|
88 |
|
|
</annotation>
|
89 |
|
|
</element>
|
90 |
|
|
<complexType name="AbstractTimeComplexType" abstract="true">
|
91 |
|
|
<complexContent>
|
92 |
|
|
<extension base="gml:AbstractTimeObjectType"/>
|
93 |
|
|
</complexContent>
|
94 |
|
|
</complexType>
|
95 |
|
|
<element name="AbstractTimeGeometricPrimitive" type="gml:AbstractTimeGeometricPrimitiveType" abstract="true" substitutionGroup="gml:AbstractTimePrimitive">
|
96 |
|
|
<annotation>
|
97 |
|
|
<documentation>gml:TimeGeometricPrimitive acts as the head of a substitution group for geometric temporal primitives.
|
98 |
|
|
A temporal geometry shall be associated with a temporal reference system through the frame attribute that provides a URI reference that identifies a description of the reference system. Following ISO 19108, the Gregorian calendar with UTC is the default reference system, but others may also be used. The GPS calendar is an alternative reference systems in common use.
|
99 |
|
|
The two geometric primitives in the temporal dimension are the instant and the period. GML components are defined to support these as follows.</documentation>
|
100 |
|
|
</annotation>
|
101 |
|
|
</element>
|
102 |
|
|
<complexType name="AbstractTimeGeometricPrimitiveType" abstract="true">
|
103 |
|
|
<complexContent>
|
104 |
|
|
<extension base="gml:AbstractTimePrimitiveType">
|
105 |
|
|
<attribute name="frame" type="anyURI" default="#ISO-8601"/>
|
106 |
|
|
</extension>
|
107 |
|
|
</complexContent>
|
108 |
|
|
</complexType>
|
109 |
|
|
<element name="TimeInstant" type="gml:TimeInstantType" substitutionGroup="gml:AbstractTimeGeometricPrimitive">
|
110 |
|
|
<annotation>
|
111 |
|
|
<documentation>gml:TimeInstant acts as a zero-dimensional geometric primitive that represents an identifiable position in time.</documentation>
|
112 |
|
|
</annotation>
|
113 |
|
|
</element>
|
114 |
|
|
<complexType name="TimeInstantType" final="#all">
|
115 |
|
|
<complexContent>
|
116 |
|
|
<extension base="gml:AbstractTimeGeometricPrimitiveType">
|
117 |
|
|
<sequence>
|
118 |
|
|
<element ref="gml:timePosition"/>
|
119 |
|
|
</sequence>
|
120 |
|
|
</extension>
|
121 |
|
|
</complexContent>
|
122 |
|
|
</complexType>
|
123 |
|
|
<complexType name="TimeInstantPropertyType">
|
124 |
|
|
<annotation>
|
125 |
|
|
<documentation>gml:TimeInstantPropertyType provides for associating a gml:TimeInstant with an object.</documentation>
|
126 |
|
|
</annotation>
|
127 |
|
|
<sequence minOccurs="0">
|
128 |
|
|
<element ref="gml:TimeInstant"/>
|
129 |
|
|
</sequence>
|
130 |
|
|
<attributeGroup ref="gml:AssociationAttributeGroup"/>
|
131 |
|
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
132 |
|
|
</complexType>
|
133 |
|
|
<element name="TimePeriod" type="gml:TimePeriodType" substitutionGroup="gml:AbstractTimeGeometricPrimitive">
|
134 |
|
|
<annotation>
|
135 |
|
|
<documentation>gml:TimePeriod acts as a one-dimensional geometric primitive that represents an identifiable extent in time.
|
136 |
|
|
The location in of a gml:TimePeriod is described by the temporal positions of the instants at which it begins and ends. The length of the period is equal to the temporal distance between the two bounding temporal positions.
|
137 |
|
|
Both beginning and end may be described in terms of their direct position using gml:TimePositionType which is an XML Schema simple content type, or by reference to an indentifiable time instant using gml:TimeInstantPropertyType.
|
138 |
|
|
Alternatively a limit of a gml:TimePeriod may use the conventional GML property model to make a reference to a time instant described elsewhere, or a limit may be indicated as a direct position.</documentation>
|
139 |
|
|
</annotation>
|
140 |
|
|
</element>
|
141 |
|
|
<complexType name="TimePeriodType">
|
142 |
|
|
<complexContent>
|
143 |
|
|
<extension base="gml:AbstractTimeGeometricPrimitiveType">
|
144 |
|
|
<sequence>
|
145 |
|
|
<choice>
|
146 |
|
|
<element name="beginPosition" type="gml:TimePositionType"/>
|
147 |
|
|
<element name="begin" type="gml:TimeInstantPropertyType"/>
|
148 |
|
|
</choice>
|
149 |
|
|
<choice>
|
150 |
|
|
<element name="endPosition" type="gml:TimePositionType"/>
|
151 |
|
|
<element name="end" type="gml:TimeInstantPropertyType"/>
|
152 |
|
|
</choice>
|
153 |
|
|
<group ref="gml:timeLength" minOccurs="0"/>
|
154 |
|
|
</sequence>
|
155 |
|
|
</extension>
|
156 |
|
|
</complexContent>
|
157 |
|
|
</complexType>
|
158 |
|
|
<complexType name="TimePeriodPropertyType">
|
159 |
|
|
<annotation>
|
160 |
|
|
<documentation>gml:TimePeriodPropertyType provides for associating a gml:TimePeriod with an object.</documentation>
|
161 |
|
|
</annotation>
|
162 |
|
|
<sequence minOccurs="0">
|
163 |
|
|
<element ref="gml:TimePeriod"/>
|
164 |
|
|
</sequence>
|
165 |
|
|
<attributeGroup ref="gml:AssociationAttributeGroup"/>
|
166 |
|
|
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
|
167 |
|
|
</complexType>
|
168 |
|
|
<complexType name="TimePositionType" final="#all">
|
169 |
|
|
<annotation>
|
170 |
|
|
<documentation>The method for identifying a temporal position is specific to each temporal reference system. gml:TimePositionType supports the description of temporal position according to the subtypes described in ISO 19108.
|
171 |
|
|
Values based on calendars and clocks use lexical formats that are based on ISO 8601, as described in XML Schema Part 2:2001. A decimal value may be used with coordinate systems such as GPS time or UNIX time. A URI may be used to provide a reference to some era in an ordinal reference system .
|
172 |
|
|
In common with many of the components modelled as data types in the ISO 19100 series of International Standards, the corresponding GML component has simple content. However, the content model gml:TimePositionType is defined in several steps.
|
173 |
|
|
Three XML attributes appear on gml:TimePositionType:
|
174 |
|
|
A time value shall be associated with a temporal reference system through the frame attribute that provides a URI reference that identifies a description of the reference system. Following ISO 19108, the Gregorian calendar with UTC is the default reference system, but others may also be used. Components for describing temporal reference systems are described in 14.4, but it is not required that the reference system be described in this, as the reference may refer to anything that may be indentified with a URI.
|
175 |
|
|
For time values using a calendar containing more than one era, the (optional) calendarEraName attribute provides the name of the calendar era.
|
176 |
|
|
Inexact temporal positions may be expressed using the optional indeterminatePosition attribute. This takes a value from an enumeration.</documentation>
|
177 |
|
|
</annotation>
|
178 |
|
|
<simpleContent>
|
179 |
|
|
<extension base="gml:TimePositionUnion">
|
180 |
|
|
<attribute name="frame" type="anyURI" default="#ISO-8601"/>
|
181 |
|
|
<attribute name="calendarEraName" type="string"/>
|
182 |
|
|
<attribute name="indeterminatePosition" type="gml:TimeIndeterminateValueType"/>
|
183 |
|
|
</extension>
|
184 |
|
|
</simpleContent>
|
185 |
|
|
</complexType>
|
186 |
|
|
<simpleType name="TimeIndeterminateValueType">
|
187 |
|
|
<annotation>
|
188 |
|
|
<documentation>These values are interpreted as follows:
|
189 |
|
|
- "unknown" indicates that no specific value for temporal position is provided.
|
190 |
|
|
- "now" indicates that the specified value shall be replaced with the current temporal position whenever the value is accessed.
|
191 |
|
|
- "before" indicates that the actual temporal position is unknown, but it is known to be before the specified value.
|
192 |
|
|
- "after" indicates that the actual temporal position is unknown, but it is known to be after the specified value.
|
193 |
|
|
A value for indeterminatePosition may
|
194 |
|
|
- be used either alone, or
|
195 |
|
|
- qualify a specific value for temporal position.</documentation>
|
196 |
|
|
</annotation>
|
197 |
|
|
<restriction base="string">
|
198 |
|
|
<enumeration value="after"/>
|
199 |
|
|
<enumeration value="before"/>
|
200 |
|
|
<enumeration value="now"/>
|
201 |
|
|
<enumeration value="unknown"/>
|
202 |
|
|
</restriction>
|
203 |
|
|
</simpleType>
|
204 |
|
|
<simpleType name="TimePositionUnion">
|
205 |
|
|
<annotation>
|
206 |
|
|
<documentation>The simple type gml:TimePositionUnion is a union of XML Schema simple types which instantiate the subtypes for temporal position described in ISO 19108.
|
207 |
|
|
An ordinal era may be referenced via URI. A decimal value may be used to indicate the distance from the scale origin . time is used for a position that recurs daily (see ISO 19108:2002 5.4.4.2).
|
208 |
|
|
Finally, calendar and clock forms that support the representation of time in systems based on years, months, days, hours, minutes and seconds, in a notation following ISO 8601, are assembled by gml:CalDate</documentation>
|
209 |
|
|
</annotation>
|
210 |
|
|
<union memberTypes="gml:CalDate time dateTime anyURI decimal"/>
|
211 |
|
|
</simpleType>
|
212 |
|
|
<simpleType name="CalDate">
|
213 |
|
|
<union memberTypes="date gYearMonth gYear"/>
|
214 |
|
|
</simpleType>
|
215 |
|
|
<element name="timePosition" type="gml:TimePositionType">
|
216 |
|
|
<annotation>
|
217 |
|
|
<documentation>This element is used directly as a property of gml:TimeInstant (see 15.2.2.3), and may also be used in application schemas.</documentation>
|
218 |
|
|
</annotation>
|
219 |
|
|
</element>
|
220 |
|
|
<group name="timeLength">
|
221 |
|
|
<annotation>
|
222 |
|
|
<documentation>The length of a time period.</documentation>
|
223 |
|
|
</annotation>
|
224 |
|
|
<choice>
|
225 |
|
|
<element ref="gml:duration"/>
|
226 |
|
|
<element ref="gml:timeInterval"/>
|
227 |
|
|
</choice>
|
228 |
|
|
</group>
|
229 |
|
|
<element name="duration" type="duration">
|
230 |
|
|
<annotation>
|
231 |
|
|
<documentation>gml:duration conforms to the ISO 8601 syntax for temporal length as implemented by the XML Schema duration type.</documentation>
|
232 |
|
|
</annotation>
|
233 |
|
|
</element>
|
234 |
|
|
<element name="timeInterval" type="gml:TimeIntervalLengthType">
|
235 |
|
|
<annotation>
|
236 |
|
|
<documentation> gml:timeInterval conforms to ISO 11404 which is based on floating point values for temporal length.
|
237 |
|
|
ISO 11404 syntax specifies the use of a positiveInteger together with appropriate values for radix and factor. The resolution of the time interval is to one radix ^(-factor) of the specified time unit.
|
238 |
|
|
The value of the unit is either selected from the units for time intervals from ISO 31-1:1992, or is another suitable unit. The encoding is defined for GML in gml:TimeUnitType. The second component of this union type provides a method for indicating time units other than the six standard units given in the enumeration.</documentation>
|
239 |
|
|
</annotation>
|
240 |
|
|
</element>
|
241 |
|
|
<complexType name="TimeIntervalLengthType" final="#all">
|
242 |
|
|
<simpleContent>
|
243 |
|
|
<extension base="decimal">
|
244 |
|
|
<attribute name="unit" type="gml:TimeUnitType" use="required"/>
|
245 |
|
|
<attribute name="radix" type="positiveInteger"/>
|
246 |
|
|
<attribute name="factor" type="integer"/>
|
247 |
|
|
</extension>
|
248 |
|
|
</simpleContent>
|
249 |
|
|
</complexType>
|
250 |
|
|
<simpleType name="TimeUnitType">
|
251 |
|
|
<union>
|
252 |
|
|
<simpleType>
|
253 |
|
|
<restriction base="string">
|
254 |
|
|
<enumeration value="year"/>
|
255 |
|
|
<enumeration value="month"/>
|
256 |
|
|
<enumeration value="day"/>
|
257 |
|
|
<enumeration value="hour"/>
|
258 |
|
|
<enumeration value="minute"/>
|
259 |
|
|
<enumeration value="second"/>
|
260 |
|
|
</restriction>
|
261 |
|
|
</simpleType>
|
262 |
|
|
<simpleType>
|
263 |
|
|
<restriction base="string">
|
264 |
|
|
<pattern value="other:\w{2,}"/>
|
265 |
|
|
</restriction>
|
266 |
|
|
</simpleType>
|
267 |
|
|
</union>
|
268 |
|
|
</simpleType>
|
269 |
|
|
</schema>
|