[Mapserver-dev] time support in MapServer

Kralidis,Tom [Burlington] Tom.Kralidis at ec.gc.ca
Mon Aug 30 09:26:09 EDT 2004


> -----Original Message-----
> From: mapserver-dev-admin at lists.gis.umn.edu 
> [mailto:mapserver-dev-admin at lists.gis.umn.edu] On Behalf Of Steve Lime
> Sent: Friday, 27 August, 2004 13:58
> To: Kralidis,Tom [Burlington]; mapserver-dev at lists.gis.umn.edu
> Subject: Re: [Mapserver-dev] time support in MapServer
> 
> 
> 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.
> 

Note that the interfaces for WMS and WCS deal with time in the same
fashion, via ISO8601 syntax and the "&TIME=" keyword in WMS
GetMap/GetFeatureInfo and WCSGetCoverage requests.

..Tom


> 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/maps> erver-dev
> 
> 
> _______________________________________________
> 
> Mapserver-dev mailing list
> Mapserver-dev at lists.gis.umn.edu 
> http://lists.gis.umn.edu/mailman/listinfo/maps> erver-dev
> 




More information about the mapserver-dev mailing list