Hola JC, <div>I have discovered that your suggest did work. Thanks. However, it wasn't obvious because my data wasn't showing until I zoomed in far enough into the map. The front-end application, which is a FLEX viewer, wasn't showing the colored raster pixels until zoom level 4-5 click of zooming in on the map. I don't know if this is something I can fix at the .map level. The projection currently defined for this layer is:</div>
<div><br></div><div><div> PROJECTION</div><div> "proj=aea"</div><div> "lat_1=29.5"</div><div> "lat_2=45.5"</div><div> "lat_0=23"</div>
<div> "lon_0=-96"</div><div> "x_0=0"</div><div> "y_0=0"</div><div> "ellps=GRS80"</div><div> "datum=NAD83"</div>
<div> "units=m"</div><div> "no_defs"</div><div> END</div><div><br></div><div>Cheers, </div><div>Derek</div><br><div class="gmail_quote">On Fri, Jan 20, 2012 at 1:01 PM, Fuchs Juan Carlos <span dir="ltr"><<a href="mailto:jfuch@indec.mecon.gov.ar">jfuch@indec.mecon.gov.ar</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Derek<br>
<br>
Try with this for each class you want (just change the expression value and<br>
the color. Be carefull with upper/lower case ;)<br>
<br>
CLASSITEM 'FORESTYPE '<br>
CLASS #attribute name, without # gives the label name for the reference<br>
EXPRESSION > 0<br>
COLOR 214 252 252<br>
OUTLINECOLOR 0 0 0<br>
END<br>
<br>
Cheers<br>
JC<br>
-----Mensaje original-----<br>
De: jdmorgan [mailto:<a href="mailto:jdmorgan@unca.edu">jdmorgan@unca.edu</a>]<br>
Enviado el: viernes, 20 de enero de 2012 01:49 p.m.<br>
Para: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
Asunto: [mapserver-users] .img raster color expression<br>
<div><div class="h5"><br>
<br>
Hello,<br>
I originally posted this is dev, but I think it might be more inline with<br>
the user forum.<br>
I am working with a .img raster file. It has It has attribute called<br>
FORESTYPE as I can see it when I open it in a desktop GIS. I would like<br>
to key off of this value to define specific colors in a .map file.<br>
However, I cannot seem to get this working. Here is what I have:<br>
<br>
CLASS<br>
NAME "test"<br>
EXPRESSION ([FORESTYPE]> 0)<br>
STYLE<br>
COLOR 255 255 255<br>
END<br>
END<br>
<br>
Any help would be greatly appreciated.<br>
<br>
Thanks,<br>
<br>
--<br>
Derek @ NEMAC<br>
<br>
<br>
</div></div>_______________________________________________<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>
</blockquote></div><br></div>