Hi all,

Recently a client reported an issue with how geoserver interprets the
TIME parameter in a WMS request when a full precision timestamp is not
specified. Referencing the WMS spec:

<quote>

  D.2.1 Basic syntax

The basic time format uses ISO 8601:2000 “extended” format: up to 14 digits
specifying century, year, month, day, hour, minute, and seconds, and
optionally a decimal point followed by zero or more digits for fractional
seconds, with non-numeric characters to separate each piece:

ccyy-mm-ddThh:mm:ss.sssZ

*The precision may be reduced by omitting least-significant digits*, as in
the examples below. ISO 8601:2000 prefers a decimal comma before fractional
seconds but allows a decimal period as in this International Standard. The
century digits shall be included with the year; two-digit years shall not
be used.

A time zone suffix is mandatory if the hours field appears in the time
string. All times should be expressed in Coordinated Universal Time (UTC),
indicated by the suffix Z (for "zulu"). When a local time applies, a
numeric time zone suffix as defined by ISO 8601:2004, 5.3.4.1 shall be
used. The absence of any suffix at all means local time in an undefined
zone, which shall not be used in the global network of map servers enabled
by this International Standard.

EXAMPLE 1 EXAMPLE 2 EXAMPLE 3 EXAMPLE 4

ccyy Year only
ccyy-mm Year and month
ccyy-mm-dd Year, month and day ccyy-mm-ddThhZ Year, month, day and hour in
UTC

</quote>

The part about omitting digits isn't all that clear to me. I *think* it
means that when one supplies a less precise timestamp we should actually
interpret that as a date range and match anything that lies between the
specified timestamp and the next timestamp that results from "rolling" the
time up to the next closest value? If that indeed is what is implied we
don't implement it that way as far as I can tell.

What do others think?

-Justin


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to