<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
#signature a,
#signature a:link,
#signature a:visited,
#signature a:hover,
#signature a:active {
color: darkblue !important;
}
#COL-1
{float:left;}
#COL-2
{float:left;}
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
color:black;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";
color:black;}
address
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
color:black;
font-style:italic;}
p.no-margin, li.no-margin, div.no-margin
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";
color:black;}
p.no-margin1, li.no-margin1, div.no-margin1
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
color:black;}
p.no-margin2, li.no-margin2, div.no-margin2
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
color:black;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:Arial;
color:blue;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>For me it works using:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>IMAGETYPE png<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>With no “OUTPUTFORMAT” in my
mapfile. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>I’m using the predefined OUTPUTFORMAT
of “png”.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>There are several predefined OUTPUTFORMATs
described at: <a href="http://mapserver.org/mapfile/outputformat.html">http://mapserver.org/mapfile/outputformat.html</a>
.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>I hope this helps.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>Worth Lutz<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Johannes Weskamm<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, December 17, 2012
8:16 AM<br>
<b><span style='font-weight:bold'>To:</span></b>
mapserver-users@lists.osgeo.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [mapserver-users] Problem
with Transparency and IMAGECOLOR</span></font><font color=black><span
style='color:windowtext'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>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>
<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>-- <o:p></o:p></span></font></p>
<div id=signature>
<div id=col-container>
<div id=col-2>
<p class=no-margin2 style='line-height:18.0pt'><font size=1 color="#333333"
face="Courier New"><span style='font-size:9.0pt;font-family:"Courier New";
color:#333333'>Dipl.-Geogr. Johannes Weskamm<br>
— Anwendungsentwickler —<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-top:3.0pt;line-height:18.0pt'><font size=1
color="#333333" face="Courier New"><span style='font-size:9.0pt;font-family:
"Courier New";color:#333333'>terrestris GmbH & Co. KG<br>
Pützchens Chaussee 56<br>
53227 <st1:City w:st="on"><st1:place w:st="on">Bonn</st1:place></st1:City> <o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-top:3.0pt;line-height:18.0pt'><font size=1
color="#333333" face="Courier New"><span style='font-size:9.0pt;font-family:
"Courier New";color:#333333'>Tel: +49 (0)228 / 96 28 99 -555<br>
Fax: +49 (0)228 / 96 28 99 -57<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-top:3.0pt;line-height:18.0pt'><font size=1
color="#333333" face="Courier New"><span style='font-size:9.0pt;font-family:
"Courier New";color:#333333'>Email: <a href="mailto:weskamm@terrestris.de">weskamm@terrestris.de</a><br>
Web: <a href="http://www.terrestris.de">http://www.terrestris.de</a>
<o:p></o:p></span></font></p>
</div>
<div id=col-clear>
<p class=MsoNormal style='margin-top:3.0pt;line-height:18.0pt'><font size=1
color="#333333" face="Courier New"><span style='font-size:9.0pt;font-family:
"Courier New";color:#333333'>Amtsgericht Bonn, HRA 6835<br>
Komplementärin: terrestris Verwaltungsgesellschaft mbH<br>
vertreten durch: Hinrich Paulsen, Till <st1:place w:st="on">Adams</st1:place> <o:p></o:p></span></font></p>
</div>
</div>
</div>
</div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=1 width="100%" noshade color="#aca899" align=center>
</span></font></div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'
color="#000000"><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>No virus found in this message.<br>
Checked by AVG - <a href="http://www.avg.com">www.avg.com</a><br>
Version: 2013.0.2805 / Virus Database: 2637/5964 - Release Date: 12/16/12<o:p></o:p></span></font></p>
</div>
</body>
</html>