image border is opaque when viewing

John Mitchell mitchelljj98 at GMAIL.COM
Fri Dec 15 10:20:49 EST 2006


Jukka,

Thanks,

That worked but what surprised me is that is worked with IMAGEMODE of RGB.
I first tried it with PC256 which It did work as expected, but I was
pleasantly surprised to see it work with RGB since the documentation says
that it will not work with transparency.

John Mitchell

On 12/15/06, Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi> wrote:
>
> Hi,
>
> Have you set the transparancy for the geotiff layer by adding  OFFSITE 0 0
> 0 on the LAYER definitions?  That should work.
>
> Regards,
>
> -Jukka-
>
>
>
>
> ________________________________
>
> Lähettäjä: UMN MapServer Users List puolesta: John Mitchell
> Lähetetty: pe 15.12.2006 0:51
> Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU
> Aihe: [UMN_MAPSERVER-USERS] image border is opaque when viewing
>
>
> Hi,
>
> I have made the outside black border within a geotiff transparent by
> running "gdalwarp -dstnodata 0" against the geotiff.  I verified that it is
> transparent within OpenEV and photoshop, but when utilizing MapServer it is
> not transparent.
>
> Below is the outputformat used within the .map file.  I have tried with an
> imagemode of PC256 and RGB.
>
> OUTPUTFORMAT
>   NAME png
>   DRIVER "GD/PNG"
>   MIMETYPE "image/png"
>   IMAGEMODE PC256
>   #IMAGEMODE RGB
>   EXTENSION "png"
> END
>
> Thanks,
>
> John J. Mitchell
>



-- 
John J. Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061215/73ea08a1/attachment.html


More information about the mapserver-users mailing list