[mapserver-users] Get current year in a CLASS EXPRESSION (mapfile)

Michael Smith michael.smith.erdc at gmail.com
Wed Mar 23 04:14:39 PDT 2016


Well, the other option would be a regex on your date field. The specifics
on that will depend on what the default format is for your date field so
its much more fragile. If someone changes your date default, your regex
will no longer work properly.

Mike

----
Michael Smith

US Army Corps
Remote Sensing GIS/Center
michael.smith at usace.army.mil




-----Original Message-----
From: mapserver-users <mapserver-users-bounces at lists.osgeo.org> on behalf
of wiltomap <wiltoma at gmail.com>
Date: Wednesday, March 23, 2016 at 6:55 AM
To: <mapserver-users at lists.osgeo.org>
Subject: Re: [mapserver-users] Get current year in a CLASS EXPRESSION
(mapfile)

>Thanks Michael! Of course, I had thought about creating a view or
>manipulating the DATA parameter. The fact is that I can't do both because
>the layer related to the mapfile is used for online data editing, and the
>framework used for the website reclaims exactly identical columns inside
>tables and views used for such operations. I can't add a new column in the
>table because it won't be an existing field in the online form. This is
>complex to explain and I have no other choice than dealing with the
>existing
>website I haven't build myself.
>
>So, my question remains. Is there a way to achieve that within EXPRESSION
>parameter?
>
>
>
>--
>View this message in context:
>http://osgeo-org.1560.x6.nabble.com/Get-current-year-in-a-CLASS-EXPRESSION
>-mapfile-tp5257968p5257982.html
>Sent from the Mapserver - User mailing list archive at Nabble.com.
>_______________________________________________
>mapserver-users mailing list
>mapserver-users at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users





More information about the MapServer-users mailing list