<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thanks.<br><br>--- <b>Gio 23/9/10, michele pierri <i><pierm4ci@yahoo.it></i></b> ha scritto:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>Da: michele pierri <pierm4ci@yahoo.it><br>Oggetto: Re: [mapserver-users] Get the legend of a layer .map file<br>A: "Bob Basques" <Bob.Basques@ci.stpaul.mn.us>, mapserver-users@lists.osgeo.org<br>Data: Giovedì 23 settembre 2010, 17:12<br><br><div id="yiv1219024282"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit;">Can you take me an example,please?<br>I'm sorry but I am not very expert.<br>And after how I can do the request via CGI?<br><div><span class="yiv1219024282Apple-style-span" style="font-family:SansSerif;font-size:medium;"><pre><p
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;white-space:pre;">CLASS</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;white-space:pre;"> EXPRESSION ([pixel] >= 0 AND [pixel] < 20 )</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;white-space:pre;"> NAME XXXX <=== IS IT WRIGHT?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;white-space:pre;"> STYLE</p><p style="margin-top:0px;
margin-right:0px;margin-bottom:0px;margin-left:0px;white-space:pre;"> COLOR 0 255 255</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;white-space:pre;"> END</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;white-space:pre;">END</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;white-space:pre;"><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;white-space:pre;"><span class="yiv1219024282Apple-style-span" style="font-family:arial;white-space:normal;font-size:13px;">Thanks again.</span></p></pre></span><div><br></div>--- <b>Gio 23/9/10, Bob Basques <i><Bob.Basques@ci.stpaul.mn.us></i></b> ha scritto:<br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><br>Da: Bob Basques <Bob.Basques@ci.stpaul.mn.us><br>Oggetto: Re:
[mapserver-users] Get the legend of a layer .map file<br>A: mapserver-users@lists.osgeo.org, "michele pierri" <pierm4ci@yahoo.it><br>Data: Giovedì 23 settembre 2010, 17:06<br><br><div id="yiv1219024282yiv131711024">
<style type="text/css">
<!--
#yiv1219024282 #yiv1219024282yiv131711024 {margin-left:4px;margin-top:4px;margin-bottom:1px;margin-right:4px;font-variant:normal;line-height:normal;}
#yiv1219024282 #yiv1219024282yiv131711024 p {margin-top:0;margin-bottom:0;}
-->
</style>
<p style="margin-top:0;margin-bottom:0;">
<font face="Comic Sans MS" size="3">Just add in a NAME parameter inside of each CLASS tag set. You'll need to request the LEGEND object via CGI or orther method, but the NAME vales are used to describe the Legend Chips in the mapserver output.</font> </p>
<br>
<p style="margin-top:0;margin-bottom:0;">
<font face="Comic Sans MS" size="3">bobb</font> </p>
<br> <br>
<p style="margin-top:0;margin-bottom:0;">
<br>
<br>
>>> michele pierri <pierm4ci@yahoo.it> wrote:<br> </p>
<div style="margin-left:15px;padding-left:7px;margin-top:0;margin-bottom:0;margin-right:0;border-left:solid 1px #050505;background-color:#f3f3f3;">
<table border="0" cellspacing="0" cellpadding="0">
<tbody><tr>
<td style="font-style:normal;font-family:SansSerif;font-variant:normal;font-weight:normal;line-height:normal;font-size:inherit;" valign="top">
<p style="margin-top:0;margin-bottom:0;">
Hi, </p>
<div>
<p style="margin-top:0;margin-bottom:0;">
I have a file.map like this: </p>
</div>
<div>
<pre> <p style="white-space:pre;margin-top:0;margin-bottom:0;">
MAP</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
NAME"distribution"</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
CONFIG "PROJ_LIB" "/usr/share/proj/"</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
STATUS ON</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
SHAPEPATH "./"</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
PROJECTION</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
"init=epsg:4326"</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
END</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
CONFIG "MS_ERRORFILE" "/tmp/mapserver.log"</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
DEBUG 5</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
LAYER</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
NAME "tif"</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
DATA "/var/www/tmp/a5e1ddfb-6dec-40d0-94e1-ded12f41397e/out/distribution.tiff"</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
STATUS DEFAULT</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
TYPE RASTER</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
CLASSITEM "[pixel]"</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
CLASS</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
EXPRESSION ([pixel] >= 0 AND [pixel] < 20 )</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
STYLE</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
COLOR 0 255 255</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
END</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
END</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
CLASS</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
EXPRESSION ([pixel] >= 20 AND [pixel] < 40)</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
STYLE</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
COLOR 0 255 0</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
END</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
END</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
CLASS</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
EXPRESSION ( [pixel] >= 40 AND [pixel] < 60)</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
STYLE</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
COLOR 255 255 0</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
END</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
END</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
CLASS</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
EXPRESSION ([pixel] >= 60 AND [pixel] < 80)</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
STYLE</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
COLOR 255 127 0</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
END</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
END</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
CLASS</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
EXPRESSION ([pixel] >= 80 AND [pixel] < 100)</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
STYLE</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
COLOR 255 0 0</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
END</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
END</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
CLASS</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
EXPRESSION ([pixel] = 100 )</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
STYLE</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
COLOR 255 123 0</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
END</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
END</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
END</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
END</p>
<br><br></pre>
<pre><p style="white-space:pre;margin-top:0;margin-bottom:0;">
Can I have returned with the image, the legend that describes the meaning of the colors?</p>
</pre>
<pre><p style="white-space:pre;margin-top:0;margin-bottom:0;">
Thanks in advance.</p>
</pre>
<pre><p style="white-space:pre;margin-top:0;margin-bottom:0;">
<br>
</p>
</pre>
</div>
</td>
</tr>
</tbody></table>
<p style="margin-top:0;margin-bottom:0;">
<br>
</p>
</div>
</div></blockquote></div></td></tr></tbody></table><br>
</div><br>-----Segue allegato-----<br><br><div class="plainMail">_______________________________________________<br>mapserver-users mailing list<br><a ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=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></div></blockquote></td></tr></table><br>