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> <<a href="mailto:sparkymeister@gmail.com">sparkymeister@gmail.com</a>> 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> 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 <<a href="mailto:gisaalter@gmail.com">gisaalter@gmail.com</a>> wrote:<br>> Hi List,<br>><br>> I have trouble displayin a geotiff. I'm not quite familiar with raster images...
<br>> When viewing the raster in MapServer I get a black image.<br>> When viewing the raster in ArcGIS I get an image but I have to set<br>> display background value 1 as no data to make it transparent.<br>><br>
> In my mapfile I set following options<br>> TRANSPARENT ON (for the mapfile)<br>><br>> OFFSITE 0 0 0<br>> TRANSPARENCY 0<br>> that's for the raster layer itself.<br>><br>> Can anyone give me advice on how to get the black background which I
<br>> can see now transparent ?<br>><br><br><br>--<br>Have fun or die trying - but try not to actually die.<br></blockquote></div><br>