SOS XML Time Encodings
This page briefly describes the encodings for XML SOS queries including time information.
Time Encodings
There are four possible elements to use when encoding time in an XML SOS request: <gml:TimeInstant>, <gml:TimePeriod>, <swe:TimeInstantGrid>, and <swe:TimeIntervalGrid>. These are described briefly below, with examples. Note that in version 1.0 of the SOS Spec, <sos:time> has been changed back to <sos:eventTime>. To validate these requests with the current OOSTethys schema trunk, you may need to change it to <sos:time>.<gml:TimeInstant>
Used to request a single measurement at an instant in time.<sos:eventTime>
<ogc:T_During>
<gml:TimeInstant>
<gml:timePosition>2007-02-04T12:24:00</gml:timePosition>
</gml:TimeInstant>
</ogc:T_During>
</sos:eventTime>
<gml:TimePeriod>
Used to request observations for a period of time.<sos:eventTime>
<ogc:T_During>
<gml:TimePeriod>
<gml:beginPosition>2007-02-04T12:24:00</gml:beginPosition>
<gml:endPosition>2007-02-04T15:24:00</gml:endPosition>
</gml:TimePeriod>
</ogc:T_During>
</sos:eventTime>
<swe:TimeInstantGrid>
Used to request a set of uniformly spaced time instantsExamples coming soon
<swe:TimeIntervalGrid>
Used to request a set of uniformly spaced time intervalsComing soon