Hi Wendell,<br><br>Sorry for all the questions in response.  Do you want to set all RGB color values greater than 200 to transparent?  You mention a &quot;color table&quot;, are you using a paletted image?  Also, out of curiosity, do the &gt; 200 areas already appear transparent when you view the image in a graphics editor?<br>

<br>For RGB images with single color values that are the background color of the image, you can use IMAGECOLR to set that color transparent.  You can also pre-process the image with GDAL and assign that pixel value as NODATA, which MapServer will respect when it renders it.  For raster data that is not RGB, you can set multiple STYLES that evaluate pixel values and render them in a specific color, essentially defining a LUT in the MAPFILE.  In that case, the omission of a pixel value will cause those areas not to be displayed.  I have not tried that with an RGB image though.<br>

<br>The technique I have found that works well for setting a range of values to be transparent is to use ImageMagick&#39;s &quot;-transparent&quot; command in conjunction with &quot;-fuzz&quot;.  Here is an example of that: <br>
<pre>convert small_vis.tif -fuzz 25% -transparent &quot;rgb(0,0,0)&quot; alpha_test10.gif<br><br></pre>Roger<br>--<br><br><div class="gmail_quote">On Fri, Apr 30, 2010 at 2:34 PM, Wendell Turner <span dir="ltr">&lt;<a href="mailto:wendell@enflight.com" target="_blank">wendell@enflight.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is there a way to turn a pixel transparent?  That is,<br>
something like:<br>
<br>
 CLASS<br>
  EXPRESSION ([red] &gt; 200 AND [green] &gt; 200 AND [blue] &gt; 200 )<br>
  TRANSPARENT<br>
 END<br>
<br>
Or is there a way to set the pixel to the index of the<br>
transparent entry in the color table?<br>
<br>
Also, is there an &#39;ELSE&#39; clause to the class/expression<br>
statements?  That is, if the expression fails, leave other<br>
pixels alone.  Using a class and an expression seems to<br>
reset all other pixels.<br>
<br>
Thanks,<br>
<br>
Wendell<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">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>