[mapserver-users] Problem with Transparency and IMAGECOLOR
Worth Lutz
wal3 at mindspring.com
Mon Dec 17 08:33:32 PST 2012
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: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johannes
Weskamm
Sent: Monday, December 17, 2012 8:16 AM
To: mapserver-users at lists.osgeo.org
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: weskamm at terrestris.de
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121217/b0317926/attachment.htm>
More information about the MapServer-users
mailing list