For me it works using:
IMAGETYPE png With no OUTPUTFORMAT in my mapfile. Im using the predefined OUTPUTFORMAT of png. There are several predefined OUTPUTFORMATs described at: http://mapserver.org/mapfile/outputformat.html . I hope this helps. Worth Lutz _____ From: [email protected] [mailto:[email protected]] On Behalf Of Johannes Weskamm Sent: Monday, December 17, 2012 8:16 AM To: [email protected] Subject: [mapserver-users] Problem with Transparency and IMAGECOLOR 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: [email protected] Web: http://www.terrestris.de Amtsgericht Bonn, HRA 6835 Komplementärin: terrestris Verwaltungsgesellschaft mbH vertreten durch: Hinrich Paulsen, Till Adams _____ No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2805 / Virus Database: 2637/5964 - Release Date: 12/16/12
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
