Gerjan,<br>
<br>
A simple alternative to SLD would be to append the following to your map request :<br>
<br>
&map_road_Roads_color=255+255+0<br>
<br>
where "road" is the LAYER NAME, "Roads" is the CLASS NAME, and 255+255+0 are the RGB values respectively.<br>
<br>
just for reference, the mapfile entry would look like:<br>
<br>
LAYER<br>
NAME road<br>
TYPE LINE<br>
STATUS OFF<br>
DATA road.shp<br>
CLASS<br>
NAME "Roads"<br>
SYMBOL 0<br>
COLOR 220 0 0<br>
END<br>
END # Layer<br>
<br>
Of course this does not have the power of SLD but it gets the job done.<br>
<br>
matt<br>
<br><div><span class="gmail_quote">On 9/15/05, <b class="gmail_sendername">Gerjan Walrecht</b> <<a href="mailto:WalrechtG@vertis.nl">WalrechtG@vertis.nl</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<p><font size="2">Bart,</font>
</p>
<p><font size="2">To be honest we hadn't looked at this before, looks
useful, but at the moment we do not want to use an extra XML file only
to pass a parameter. (Where do were put the file, etc). Would you also
happen to know how to file a RFC?</font></p>
<p><font size="2">Gerjan</font>
</p>
<p><font size="2">-----Oorspronkelijk bericht-----</font>
<br><font size="2">Van: <a href="mailto:bartvde@xs4all.nl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bartvde@xs4all.nl</a> [<a href="mailto:bartvde@xs4all.nl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mailto:bartvde@xs4all.nl</a>] </font>
<br><font size="2">Verzonden: donderdag 15 september 2005 9:41</font>
<br><font size="2">Aan: Gerjan Walrecht</font>
<br><font size="2">CC: <a href="mailto:mapserver-users@lists.umn.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mapserver-users@lists.umn.edu</a></font>
<br><font size="2">Onderwerp: Re: [UMN_MAPSERVER-USERS] dynamic colors in mapfile</font>
</p><div><span class="e" id="q_10658e005da63d10_1">
<p><font size="2">Why not use the WMS SLD (Styled Layer Descriptor) interface of Mapserver</font>
<br><font size="2">for that?</font>
</p>
<p><font size="2"><a href="http://mapserver.gis.umn.edu/doc46/sld-howto.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mapserver.gis.umn.edu/doc46/sld-howto.html</a></font>
</p>
<p><font size="2">Best regards,</font>
<br><font size="2">Bart</font>
</p>
<p><font size="2">> Hello List,</font>
<br><font size="2">></font>
<br><font size="2">></font>
<br><font size="2">></font>
<br><font size="2">> Currently we are developing an Mapserver web application which demands</font>
<br><font size="2">> that</font>
<br><font size="2">> users can change the colors of the generated map (after refreshing the map</font>
<br><font size="2">> of course). We therefore wanted to use variables in the mapfile:</font>
<br><font size="2">></font>
<br><font size="2">></font>
<br><font size="2">></font>
<br><font size="2">> ...</font>
<br><font size="2">></font>
<br><font size="2">> COLOR '%color1%'</font>
<br><font size="2">></font>
<br><font size="2">> ...</font>
<br><font size="2">></font>
<br><font size="2">></font>
<br><font size="2">></font>
<br><font size="2">> But unfortunately this is impossible, or are we overlooking something? If</font>
<br><font size="2">> not, I would like to make a RFC for this, but I haven't figured out how to</font>
<br><font size="2">> do this, is there a procedure/documents to make a Request for change</font>
<br><font size="2">> (RFC)?</font>
<br><font size="2">></font>
<br><font size="2">></font>
<br><font size="2">></font>
<br><font size="2">> Thanks in advance!</font>
<br><font size="2">></font>
<br><font size="2">> Gerjan</font>
<br><font size="2">></font>
<br><font size="2">></font>
<br><font size="2">></font>
<br><font size="2">></font>
</p>
<br>
</span></div></blockquote></div><br><br clear="all"><br>-- <br>Matt Perry<br><a href="mailto:perrygeo@gmail.com">perrygeo@gmail.com</a><br><a href="http://www.perrygeo.net">http://www.perrygeo.net</a>