RE: [mapserver-users] CLASS NAME Runtime substitution Variable

2012-05-25 Thread Lime, Steve D (DNR)
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-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
steve.tout...@inspq.qc.ca
Sent: Thursday, May 24, 2012 1:52 PM
To: mapserver-users@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] CLASS NAME Runtime substitution Variable

2012-05-25 Thread Steve . Toutant
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
1map.layer[RSS_MPOC].class[classe2_sign]=TITLE+NEWTITLE2

using runtime substition would give 
...classename1=NEWTITLE1classename2=NEWTITLE2

I will create a ticket asking for this feature
thanks for your help,
Steve




Lime, Steve D (DNR) steve.l...@state.mn.us@lists.osgeo.org 
Envoyé par : mapserver-users-boun...@lists.osgeo.org
2012-05-25 14:42

A
steve.tout...@inspq.qc.ca steve.tout...@inspq.qc.ca, 
mapserver-users@lists.osgeo.org mapserver-users@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-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
steve.tout...@inspq.qc.ca
Sent: Thursday, May 24, 2012 1:52 PM
To: mapserver-users@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users