[Mapserver-dev] time support in MapServer

Steve Lime steve.lime at dnr.state.mn.us
Fri Aug 27 13:58:28 EDT 2004


I've been working on this very slowly with Assefa. Here's our general
approach.

Lexer changes:

 - Backtics will be used to denote date/time values according to ISO
8601. This way you can deal with dates as dates, strings or even
numbers.

Parser changes:

- I've already updated the parser to support time values (as struct tm)
and have a full compliment of operators in place.

New Functions (maptime.c/.h):

- Assefa has added a version of strptime so that OSes without that
function (like Windows) have it.

- I'm adding a function called msParseTime that takes a string and
creates a struct tm variable. The function will work off a global array
of time formats. Each format consists of a regex pattern, a compiled
version of the pattern and a format string (passed into strptime). The
function loops through the formats until it hits a match. A pattern will
only be compiled once and all formats will be free'd in the msCleanup
function.

If this all works we'll have date/time support for MapServer
expressions, plus a generic parser. The next step for WCS and WMS will
be turning date/time requests into MapServer expressions.

I should have the basic version of msParseTime working this weekend.

Steve


>>> "Kralidis,Tom [Burlington]" <Tom.Kralidis at ec.gc.ca> 08/27/04 9:19 AM
>>>

Hi,

What is the state of affairs for MapServer support of time, as per Annex
A of OGC WMS 1.1.1?  I have some info on this via mapserver-dev in terms
of how to make this happen, but nothing lately.

Cheers

..Tom

=========================
Tom Kralidis
Systems Scientist
Environment Canada
Tel: +01-905-336-4409
http://www.ec.gc.ca/

_______________________________________________
Mapserver-dev mailing list
Mapserver-dev at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-dev




More information about the mapserver-dev mailing list