to answer your question : Yes.<br>i,m using 6.1-dev <br><br>here a one of the mapfile's class :<br>CLASS<br> NAME "<70%"<br> EXPRESSION ([taux_infra_personne]<(0.7*[taux_infra_personne_qc]))<br> GROUP "2010"<br>
STYLE<br> OUTLINECOLOR 0 0 0 <br> COLOR 0 254 51<br> END<br> LABEL<br> ALIGN CENTER<br> COLOR 10 0 0<br> OUTLINECOLOR 250 255 255<br> ANTIALIAS FALSE<br>
TYPE TRUETYPE<br> FONT "arialbd"<br> SIZE 9<br> END<br>END<br><br>all i want, it is the NAME would be like the EXPRESSION :<br> NAME ([taux_infra_personne]<(0.7*[taux_infra_personne_qc]))<br>
EXPRESSION ([taux_infra_personne]<(0.7*[taux_infra_personne_qc]))<br><br><br><br><div class="gmail_quote">2012/2/7 <a href="mailto:marcandre_trottier@hotmail.com">marcandre_trottier@hotmail.com</a> <span dir="ltr"><<a href="mailto:marcandre_trottier@hotmail.com">marcandre_trottier@hotmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">i'm using mapserver 6.1.<br>
<br>
i'm using a timeline and the legend must change each year but don't want to<br>
write all 5 class from 1997 to 2011.<br>
with a variable i could have only 5 class in my mapfile and when i will<br>
insert 2012's data, it will work automatically<br>
<br>
what's your idea ?<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/variable-in-tag-NAME-of-a-CLASS-tp4342830p4372638.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/variable-in-tag-NAME-of-a-CLASS-tp4342830p4372638.html</a><br>
Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></div></div></blockquote><div>Le 30 janvier 2012 16:32, Lime, Steve D (DNR) <span dir="ltr"><<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>></span> a écrit :<br>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Marc-Andre: Is your end game to change legend text dynamically? What version are you using? I may
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">have a work-around for you.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Steve</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>]
<b>On Behalf Of </b><a href="mailto:Steve.Toutant@inspq.qc.ca" target="_blank">Steve.Toutant@inspq.qc.ca</a><br>
<b>Sent:</b> Friday, January 27, 2012 8:05 AM<br>
<b>To:</b> Marc-André Trottier<br>
<b>Cc:</b> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>; <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a><br>
<b>Subject:</b> RE [mapserver-users] variable in tag NAME of a CLASS</span></p>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">According to this <a href="http://mapserver.org/cgi/runsub.html#parameters-supported" target="_blank">http://mapserver.org/cgi/runsub.html#parameters-supported</a></span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">it seems that you can not use run-time substitution for a class name</span></p>
<p style="margin-bottom:12.0pt"><br>
<br>
</p>
<table style="width:100.0%" border="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td style="width:40.0%;padding:.75pt .75pt .75pt .75pt" valign="top" width="40%">
<p class="MsoNormal"><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">Marc-André Trottier <<a href="mailto:trottier.marcandre@gmail.com" target="_blank">trottier.marcandre@gmail.com</a>>@<a href="http://lists.osgeo.org/" target="_blank">lists.osgeo.org</a></span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">
</span><br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif"">Envoyé par : <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a></span>
</p>
<p><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">2012-01-27 07:23</span>
</p>
</td>
<td style="width:59.0%;padding:.75pt .75pt .75pt .75pt" valign="top" width="59%">
<table style="width:100.0%" border="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt" valign="top">
<p class="MsoNormal" style="text-align:right" align="right"><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">A</span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt" valign="top">
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif""><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a></span>
</p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt" valign="top">
<p class="MsoNormal" style="text-align:right" align="right"><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">cc</span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt" valign="top"><br></td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt" valign="top">
<p class="MsoNormal" style="text-align:right" align="right"><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">Objet</span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt" valign="top">
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">[mapserver-users] variable in tag NAME of a CLASS</span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"> </p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt" valign="top"><br></td>
<td style="padding:.75pt .75pt .75pt .75pt" valign="top"><br></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<br>
<br>
<br>
<br>
<br>
Can we put a variable or a attribute in the tag NAME of a CLASS ? <br>
something like this : NAME "[patate]"<br>
according to my tests<br>
it do not seems but if someone can confirm <br>
<br>
Marc-André Trottier<tt><span style="font-size:10.0pt">_______________________________________________</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
<tt>mapserver-users mailing list</tt><br>
<tt><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a></tt><br>
<tt><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></tt></span> <br></div></div><br>