<html>
<head>
<style type="text/css">
<!--
body { margin-left: 4px; margin-top: 4px; margin-bottom: 1px; margin-right: 4px; font-variant: normal; line-height: normal }
p { margin-top: 0; margin-bottom: 0 }
-->
</style>
</head>
<body>
<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 content="text/html; charset=UTF-8" border="0" cellspacing="0" cellpadding="0" http-equiv="Content-Type">
<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>
</table>
<p style="margin-top: 0; margin-bottom: 0">
<br>
</p>
</div>
</body>
</html>