[mapserver-users] CLASS NAME Runtime substitution Variable

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Fri May 25 11:42:13 PDT 2012


Hi Steve: Have you tried just tagging &map.layer[RSS_MPOC].class[classe1_sign]=TITLE+NEWTITLE on to a GetLegendGraphic request?

Supporting runtimes for name isn't a technical issue, just hasn't been asked for...

Steve

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca
Sent: Thursday, May 24, 2012 1:52 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] CLASS NAME Runtime substitution Variable


Hi
My users will have the option to request a new map by changing YEAR. With Openlayers I use vendorParams to add new parameters in the getMap request. I use the YEAR parameters as a  Runtime substitution Variable for FILTER in the mapfile, pretty simple

My problem is for GetLegendGraphics because the class name will have to change on each request. I know that it is not possible yet to use Runtime substitution Variable on CLASS NAME. Is it because no one request for it or it is technically not possible?

The thread below discuss on using CLASS TITLE to do that
http://osgeo-org.1560.n6.nabble.com/runtime-substitution-class-name-td4228412.html

the GetLegendGraphic request look like
...&map.layer[RSS_MPOC].class[classe1_sign]=TITLE+'>= 2.38 <=56'

If I need to use this technique how can I send &map.layer[RSS_MPOC].class[classe1_sign]=TITLE+NEWTITLE as a parameter to the GetLegendGraphic  request?
thanks
steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120525/1c8dcc48/attachment.html


More information about the mapserver-users mailing list