Awesome, thanks so much. Thanks,
Eric Weisbender From: Lime, Steve D (MNIT) [mailto:[email protected]] Sent: April 15, 2013 8:54 AM To: Weisbender, Eric; [email protected] Subject: RE: Filter by date Hmmmm... The MapServer mapfile parser will probably choke on /'s. You have a couple of options: Use a wildcard (tweak as necessary): FILTERITEM "year" FILTER /^[0-9]{1,2}.[0-9]{1,2}.[0-9]{4}$/ Use a logical expression (assumes version 6.x): FILTER ("[year]" ~ "^[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}$") Steve From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Weisbender, Eric Sent: Friday, April 12, 2013 11:36 AM To: [email protected]<mailto:[email protected]> Subject: [mapserver-users] Filter by date Hello List How would I FILTER a data set by the month and year ignoring the day. An example of the field format is 1/11/2010. I found the example below in the docs but I'm not quite sure how to format the filter to account for the slashes. Any help is greatly appreciated. FILTERITEM "year" FILTER /^20[0-9][0-9]/ Thanks, Eric
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
