[mapserver-users] Problem with Transparency and IMAGECOLOR

Johannes Weskamm weskamm at terrestris.de
Mon Dec 17 05:15:50 PST 2012


Hi,

I have a question regarding the transparency of my mapfile together with 
mapserver 6.2.
The documentation tells me, that using the Parameter IMAGECOLOR together 
with TRANSPARENT ON in OUTPUTFORMAT, the resulting image of a wms 
request should have the defined color transparent.

I tried different approaches but none of them work.

So here is an example of my layer:

LAYER
     TYPE POLYGON
     STATUS ON
     GROUP "default"
     NAME "land"
     PROJECTION
         "init=epsg:900913"
     END
     DATA "../shapefiles/test"
     CLASS
         STYLE
             COLOR 255 255 0
         END
     END
END

The relevant Map parameters:

OUTPUTFORMAT
     NAME 'test'
     DRIVER GD/PNG
     IMAGEMODE PC256
     FORMATOPTION "INTERLACE=false"
     TRANSPARENT ON
END

IMAGECOLOR 255 255 0

I also tried agg/png drivers together with IMAGEMODE RGBA, but all 
combinations give me a yellow, non transparent response (i request the 
layer with transparent=true and image/png as format).

Can anyone give me an advice what i am doing wrong, or is this a bug?
Thanks,

J. Weskamm



-- 

Dipl.-Geogr. Johannes Weskamm
--- Anwendungsentwickler ---

terrestris GmbH & Co. KG
Pützchens Chaussee 56
53227 Bonn

Tel:   +49 (0)228 / 96 28 99 -555
Fax:   +49 (0)228 / 96 28 99 -57

Email: weskamm at terrestris.de <mailto:weskamm at terrestris.de>
Web: http://www.terrestris.de

Amtsgericht Bonn, HRA 6835
Komplementärin: terrestris Verwaltungsgesellschaft mbH
vertreten durch: Hinrich Paulsen, Till Adams

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121217/3389856d/attachment.htm>


More information about the MapServer-users mailing list