I was hoping to do this in the map file using an expression, Something like: EXPRESSION((%now% - [ValidTime]) < 5) I'm not sure how to get the map file to use a NOW() type expression
-----Original Message----- From: Yewondwossen Assefa [mailto:[email protected]] Sent: Monday, 24 August 2009 11:41 PM To: Dean Cc: [email protected] Subject: Re: [mapserver-users] FW: Time filter question Hi There, Did you had a chance to review this doc, you might be able to acheive what you want using wms time support: http://mapserver.org/ogc/wms_time.html regards, Dean wrote: > > > Hi, > > > > I have a shape file that has an attribute 'ValidTime' as a string. This > string has the format mm/dd/yyyy hh:mm:ss > > I would like to be able to query this attribute and match against the > current time to retrieve only features with a ValidTime in the past 5 > mintues. > > Is this possible using an expression query? If so, how? I'm using a > simple map file and the WMS service to return tiles for overlay on > Google Maps. > > > > Thanks! > > Dean > > > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: [email protected] http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
