Trouble getting GeoTiiff transparent: what to use ? transparent, offset, transparency ?

Steven De Vriendt gisaalter at GMAIL.COM
Sat Mar 25 05:01:24 PST 2006


Mark, thanks for replying. When adding the expression to my layer I get a
white background.
When replacing 1 by 0 I get a black background. Either way, I don't see my
tiff coming up...
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...

On 3/25/06, Mark Wright <sparkymeister at gmail.com> wrote:
>
> try removing the offsite and both transparancies from your mapfile. In
> your layer add this:
>
> CLASS
>         EXPRESSION ([pixel] != 1)
> END
>
> This works for me so that the border around topo maps are transparant.
> Make sure the background color in your html file equals the color that
> you are removing. I don't use arcgis so I don't know if the background
> values start with 0 or 1. If they start with 1 then change the
> expression above from 1 to 0.
>
>
>
>
> Mark
>
> On 3/25/06, Steven De Vriendt <gisaalter at gmail.com> wrote:
> > Hi List,
> >
> > I have trouble displayin a geotiff. I'm not quite familiar with raster
> images...
> > When viewing the raster in MapServer I get a black image.
> > When viewing the raster in ArcGIS I get an image but I have to set
> > display background value 1 as no data to make it transparent.
> >
> > In my mapfile I set following options
> > TRANSPARENT ON (for the mapfile)
> >
> > OFFSITE 0 0 0
> > TRANSPARENCY 0
> > that's for the raster layer itself.
> >
> > Can anyone give me advice on how to get the black background which I
> > can see now transparent ?
> >
>
>
> --
> Have fun or die trying - but try not to actually die.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060325/16f834f7/attachment.htm>


More information about the MapServer-users mailing list