[mapserver-users] FW: Time filter question

Dean deanm75 at hotmail.com
Mon Aug 24 15:16:09 PDT 2009


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:yassefa at dmsolutions.ca] 
Sent: Monday, 24 August 2009 11:41 PM
To: Dean
Cc: mapserver-users at lists.osgeo.org
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
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------





More information about the MapServer-users mailing list