[mapserver-users] CLASS NAME Runtime substitution Variable
Steve.Toutant at inspq.qc.ca
Steve.Toutant at inspq.qc.ca
Fri May 25 12:41:19 PDT 2012
Yes it works when I launch the request with
&map.layer[RSS_MPOC].class[classe1_sign]=TITLE+NEWTITLE
The problem is I have several classes to modify let say 10.
That gives a long url, perhaps too long for a GET request
...&map.layer[RSS_MPOC].class[classe1_sign]=TITLE+NEWTITLE
1&map.layer[RSS_MPOC].class[classe2_sign]=TITLE+NEWTITLE2....
using runtime substition would give
...&classename1=NEWTITLE1&classename2=NEWTITLE2
I will create a ticket asking for this feature
thanks for your help,
Steve
"Lime, Steve D (DNR)" <Steve.Lime at state.mn.us>@lists.osgeo.org
Envoyé par : mapserver-users-bounces at lists.osgeo.org
2012-05-25 14:42
A
"Steve.Toutant at inspq.qc.ca" <Steve.Toutant at inspq.qc.ca>,
"mapserver-users at lists.osgeo.org" <mapserver-users at lists.osgeo.org>
cc
Objet
RE: [mapserver-users] CLASS NAME Runtime substitution Variable
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 _______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120525/d141e1d1/attachment.htm>
More information about the MapServer-users
mailing list