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 [email protected] -----Original Message----- From: mapserver-users <[email protected]> on behalf of wiltomap <[email protected]> Date: Wednesday, March 23, 2016 at 6:55 AM To: <[email protected]> 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 >[email protected] >http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
