<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV>Is it possible to get layer transparency when outputformat=PDF?</DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV> </DIV>
<DIV>Robert Sanson<BR><BR>>>> "Roger André" <randre@gmail.com> 25/09/2008 10:36 a.m. >>><BR></DIV>
<DIV dir=ltr>Thanks to some help from a fellow GIS developer, I think I've narrowed the problem down to the OUTPUTFORMAT section of my mapfile. Changing from the AGG to GD driver seemed to take care of the problem. Will need to do some additional futzing to see if I can get it working with AGG.<BR>--<BR><BR><BR><BR>
<DIV class=gmail_quote>On Wed, Sep 24, 2008 at 1:38 PM, Roger André <DEFANGHTML_SPAN dir=ltr><<A href="mailto:randre@gmail.com" target=_blank>randre@gmail.com</A>></DEFANGHTML_SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote defanghtml_style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<DIV dir=ltr>Ok, this is driving me bonkers. I have a raster image with nodata values set to be transparent. When I make requests to this layer in "mode=map", it works beautifully, and the nodata values are transparent.<BR><BR>- <A href="http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map&mode=map" target=_blank>http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map&mode=map</A><BR><BR>However, when I try to view the same data via a WMS request, the nodata values are displayed in black.<BR><BR>- <A href="http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map" target=_blank>http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map</A><BR>&SERVICE=WMS<BR>&version="1.1.122<BR>&REQUEST=GetMap<BR>&LAYERS=imagery<BR>&STYLES=<BR>&BBOX=-180,-90,180,90<BR>&WIDTH=600<BR>&HEIGHT=500<BR>&FORMAT=png<BR>&SRS=epsg:4326<BR><BR>I have tried doing a couple of things to fix this, none of which has worked:<BR>- added "wms_transparent" "TRUE" to METADATA section of LAYER<BR>- added "&TRANSPARENT=TRUE" to the end of the WMS request<BR>- made sure that in OUTPUTFORMAT I have all of these:<BR> OUTPUTFORMAT<BR> NAME png<BR> DRIVER "AGG/PNG"<BR> MIMETYPE "image/png"<BR> IMAGEMODE RGBA<BR> EXTENSION "png"<BR> FORMATOPTION "TRANSPARENT=ON"<BR> FORMATOPTION "INTERLACE=OFF"<BR> TRANSPARENT ON<BR> END #end outputformat<BR><BR>Please, can anyone tell me what I'm missing? <BR><BR>Thanks,<BR><BR>Roger<BR>--<BR></DIV></BLOCKQUOTE></DIV><BR></DIV><BR><BR><FONT style="BACKGROUND-COLOR: #ffffff">
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">Click <A href="https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==">here</A> to report this email as spam.</FONT></P></FONT><br><br><table bgcolor=white style="color:black"><tr><td><br>------------------------------------------------------------------<br>
The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message.<br>
------------------------------------------------------------------</td></tr></table><br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been scanned for malware by SurfControl plc. </FONT><A href="http://www.surfcontrol.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>www.surfcontrol.com</FONT></A></P>
</body></HTML>