[mapserver-users] Using IMAGECOLOR to create a transparency mask
Mike Dunham-Wilkie
mike at barrodale.com
Wed Feb 4 11:05:06 PST 2009
Sorry Glenn, I don't have an answer, but I've been dealing with the
same problem.
Transparency seems to work as expected with:
OUTPUTFORMAT
NAME png24
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGBA
EXTENSION "png"
TRANSPARENT ON
END
but not with:
OUTPUTFORMAT
NAME 'AGG'
DRIVER AGG/PNG
IMAGEMODE RGBA
FORMATOPTION "PALETTE_FORCE=TRUE"
FORMATOPTION "PALETTE="
TRANSPARENT ON
END
It's as if with AGG/PNG the TRANSPARENT ON setting is completely ignored.
Mike
At 10:52 AM 04/02/2009, gwaldron wrote:
>I'm trying to use IMAGECOLOR to try to force all pixels of a certain color to
>become fully transparent, but I am not having any luck getting it to work.
>
>My output format it AGG/PNG, RGBA, TRANSPARENT ON.
>
>I have a shapefile layer set to COLOR 0 50 100, and my map-level IMAGECOLOR
>set to the same. I was hoping all the polys in the shapefile would render as
>transparent pixels, but no luck; they just show up as blue polygons.
>
>What am I doing wrong here? Thanks.
>
>-----
>Glenn Waldron * Pelican Mapping * gwaldron at pelicanmapping.com * +1 703 652
>4791
>--
>View this message in context:
>http://n2.nabble.com/Using-IMAGECOLOR-to-create-a-transparency-mask-tp2270688p2270688.html
>Sent from the Mapserver - User mailing list archive at Nabble.com.
>
>_______________________________________________
>mapserver-users mailing list
>mapserver-users at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users
----------------------------------------------
Michael Dunham-Wilkie, M.Sc., M.P.A.
Senior Database Analyst
Barrodale Computing Services Ltd.
Tel: (250) 472-4372 Fax: (250) 472-4373
Web: <http://www.barrodale.com>http://www.barrodale.com
Email: mike at barrodale.com
----------------------------------------------
Mailing Address:
P.O. Box 3075 STN CSC
Victoria BC Canada V8W 3W2
Shipping Address:
Hut R, McKenzie Avenue
University of Victoria
Victoria BC Canada V8W 3W2
----------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090204/d0858c25/attachment.htm>
More information about the MapServer-users
mailing list