<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
I have a question regarding the transparency of my mapfile together
with mapserver 6.2.<br>
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.<br>
<br>
I tried different approaches but none of them work.<br>
<br>
So here is an example of my layer:<br>
<br>
LAYER<br>
TYPE POLYGON<br>
STATUS ON<br>
GROUP "default"<br>
NAME "land"<br>
PROJECTION<br>
"init=epsg:900913"<br>
END<br>
DATA "../shapefiles/test"<br>
CLASS<br>
STYLE<br>
COLOR 255 255 0<br>
END<br>
END<br>
END<br>
<br>
The relevant Map parameters:<br>
<br>
OUTPUTFORMAT<br>
NAME 'test'<br>
DRIVER GD/PNG<br>
IMAGEMODE PC256<br>
FORMATOPTION "INTERLACE=false"<br>
TRANSPARENT ON<br>
END<br>
<br>
IMAGECOLOR 255 255 0 <br>
<br>
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).<br>
<br>
Can anyone give me an advice what i am doing wrong, or is this a bug?<br>
Thanks,<br>
<br>
J. Weskamm<br>
<br>
<br>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-15">
<style type="text/css">
#signature {
color: #333 !important;
font-family: monospace;
font-size: 12px;
padding: 10px;
line-height: 1.5em;
}
#highlight-container {
padding: 5px;
width: 450px;
margin: 30px 0;
border-width: 0px 0 0px 0;
border-right-width: 0;
border-left-width: 0;
border-style: dotted;
border-color: #333;
}
#signature a,
#signature a:link,
#signature a:visited,
#signature a:hover,
#signature a:active {
color: darkblue !important;
}
#signature address {
font-style: normal;
}
#col-container {
width: 550px;
}
#col-1 {
width: 180px; float: left;
}
#col-2 {
width: 320px; float: left;
}
#col-clear {
clear: both; padding-top: 30px;
}
#signature img {
margin-top:10px;
}
#col-container p,
#col-container address {
margin: 4px 0 0 0;
}
#signature .no-margin {
margin: 0;
}
#highlight {
font-weight: bold;
}
</style>
<div id="signature">
<div id="col-container">
<div id="col-2">
<p class="no-margin"> Dipl.-Geogr. Johannes Weskamm<br>
— Anwendungsentwickler —<br>
</p>
<address> terrestris GmbH & Co. KG<br>
Pützchens Chaussee 56<br>
53227 Bonn </address>
<p> Tel: +49 (0)228 / 96 28 99 -555<br>
Fax: +49 (0)228 / 96 28 99 -57<br>
</p>
<p> Email: <a href="mailto:weskamm@terrestris.de">weskamm@terrestris.de</a><br>
Web: <a href="http://www.terrestris.de">http://www.terrestris.de</a>
</p>
</div>
<div id="col-clear">
<p> Amtsgericht Bonn, HRA 6835<br>
Komplementärin: terrestris Verwaltungsgesellschaft mbH<br>
vertreten durch: Hinrich Paulsen, Till Adams <br>
</p>
</div>
</div>
</div>
</div>
</body>
</html>