<table cellspacing="0" cellpadding="0" border="0" ><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><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-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; ">&nbsp;&nbsp;EXPRESSION ([pixel] &gt;= 0 AND [pixel] &lt; 20 )</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; white-space: pre; ">  NAME XXXX &lt;=== IS IT WRIGHT?</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; white-space: pre; ">&nbsp;&nbsp;STYLE</p><p style="margin-top: 0px; margin-right:
 0px; margin-bottom: 0px; margin-left: 0px; white-space: pre; ">&nbsp;&nbsp;&nbsp;COLOR 0 255 255</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; white-space: pre; ">&nbsp;&nbsp;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="Apple-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>&lt;Bob.Basques@ci.stpaul.mn.us&gt;</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 &lt;Bob.Basques@ci.stpaul.mn.us&gt;<br>Oggetto: Re:
 [mapserver-users] Get the legend of a layer .map file<br>A: mapserver-users@lists.osgeo.org, "michele pierri" &lt;pierm4ci@yahoo.it&gt;<br>Data: Giovedì 23 settembre 2010, 17:06<br><br><div id="yiv131711024">
  
    <style type="text/css">
<!--
#yiv131711024  {margin-left:4px;margin-top:4px;margin-bottom:1px;margin-right:4px;font-variant:normal;line-height:normal;}
#yiv131711024 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. &nbsp;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>
      &gt;&gt;&gt; michele pierri &lt;pierm4ci@yahoo.it&gt; 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;">
&nbsp;&nbsp;&nbsp;NAME"distribution"</p>
          <p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;CONFIG &nbsp;"PROJ_LIB" "/usr/share/proj/"</p>
        <p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;STATUS ON</p>
      <p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;SHAPEPATH "./"</p>
    <p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;PROJECTION</p>
  <p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"init=epsg:4326"</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;END</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;CONFIG &nbsp;"MS_ERRORFILE" "/tmp/mapserver.log"</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;DEBUG 5</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;LAYER</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NAME "tif"</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DATA "/var/www/tmp/a5e1ddfb-6dec-40d0-94e1-ded12f41397e/out/distribution.tiff"</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;STATUS DEFAULT</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TYPE RASTER</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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;">
&nbsp;&nbsp;EXPRESSION ([pixel] &gt;= 0 AND [pixel] &lt; 20 )</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;STYLE</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;COLOR 0 255 255</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;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;">
&nbsp;&nbsp;&nbsp;&nbsp;EXPRESSION ([pixel] &gt;= 20 AND [pixel] &lt; 40)</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;STYLE</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;COLOR 0 255 0</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;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;">
&nbsp;&nbsp;&nbsp;EXPRESSION ( [pixel] &gt;= 40 AND [pixel] &lt; 60)</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;STYLE</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;&nbsp;COLOR 255 255 0</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;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;">
&nbsp;&nbsp;&nbsp;EXPRESSION ([pixel] &gt;= 60 AND [pixel] &lt; 80)</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;STYLE</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;COLOR 255 127 0</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;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;">
&nbsp;&nbsp;&nbsp;EXPRESSION ([pixel] &gt;= 80 AND [pixel] &lt; 100)</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;STYLE</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;COLOR 255 0 0</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;END</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;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;">
&nbsp;&nbsp;&nbsp;EXPRESSION ([pixel] = 100 )</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;&nbsp;STYLE</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;COLOR 255 123 0</p>
<p style="white-space:pre;margin-top:0;margin-bottom:0;">
&nbsp;&nbsp;&nbsp;&nbsp;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, &nbsp;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></table><br>