Mark, thanks for replying. When adding the expression to my layer I get a white background.<br>When replacing 1 by 0 I get a black background. Either way, I don't see my tiff coming up...<br>Thanks for your advice, I think I have to find a way to leave the white (or transparent ???) background as it is and to assign the actual data the right pixel value...
<br><br><div><span class="gmail_quote">On 3/25/06, <b class="gmail_sendername">Mark Wright</b> &lt;<a href="mailto:sparkymeister@gmail.com">sparkymeister@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
try removing the offsite and both transparancies from your mapfile. In<br>your layer add this:<br><br>CLASS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EXPRESSION ([pixel] != 1)<br>END<br><br>This works for me so that the border around topo maps are transparant.
<br>Make sure the background color in your html file equals the color that<br>you are removing. I don't use arcgis so I don't know if the background<br>values start with 0 or 1. If they start with 1 then change the<br>expression above from 1 to 0.
<br><br><br><br><br>Mark<br><br>On 3/25/06, Steven De Vriendt &lt;<a href="mailto:gisaalter@gmail.com">gisaalter@gmail.com</a>&gt; wrote:<br>&gt; Hi List,<br>&gt;<br>&gt; I have trouble displayin a geotiff. I'm not quite familiar with raster images...
<br>&gt; When viewing the raster in MapServer I get a black image.<br>&gt; When viewing the raster in ArcGIS I get an image but I have to set<br>&gt; display background value 1 as no data to make it transparent.<br>&gt;<br>
&gt; In my mapfile I set following options<br>&gt; TRANSPARENT ON (for the mapfile)<br>&gt;<br>&gt; OFFSITE 0 0 0<br>&gt; TRANSPARENCY 0<br>&gt; that's for the raster layer itself.<br>&gt;<br>&gt; Can anyone give me advice on how to get the black background which I
<br>&gt; can see now transparent ?<br>&gt;<br><br><br>--<br>Have fun or die trying - but try not to actually die.<br></blockquote></div><br>