<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>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert Sanson<BR><BR>&gt;&gt;&gt; "Roger André" &lt;randre@gmail.com&gt; 25/09/2008 10:36 a.m. &gt;&gt;&gt;<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.&nbsp; Changing from the AGG to GD driver seemed to take care of the problem.&nbsp; 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>&lt;<A href="mailto:randre@gmail.com" target=_blank>randre@gmail.com</A>&gt;</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.&nbsp; I have a raster image with nodata values set to be transparent.&nbsp; 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&amp;mode=map" target=_blank>http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map&amp;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>&amp;SERVICE=WMS<BR>&amp;version="1.1.122<BR>&amp;REQUEST=GetMap<BR>&amp;LAYERS=imagery<BR>&amp;STYLES=<BR>&amp;BBOX=-180,-90,180,90<BR>&amp;WIDTH=600<BR>&amp;HEIGHT=500<BR>&amp;FORMAT=png<BR>&amp;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"&nbsp;&nbsp;&nbsp;&nbsp; "TRUE" to METADATA section of LAYER<BR>- added "&amp;TRANSPARENT=TRUE" to the end of the WMS request<BR>- made sure that in OUTPUTFORMAT I have all of these:<BR>&nbsp; OUTPUTFORMAT<BR>&nbsp;&nbsp; NAME png<BR>&nbsp;&nbsp; DRIVER "AGG/PNG"<BR>&nbsp;&nbsp; MIMETYPE "image/png"<BR>&nbsp;&nbsp; IMAGEMODE RGBA<BR>&nbsp;&nbsp; EXTENSION "png"<BR>&nbsp;&nbsp; FORMATOPTION "TRANSPARENT=ON"<BR>&nbsp;&nbsp; FORMATOPTION "INTERLACE=OFF"<BR>&nbsp;&nbsp; TRANSPARENT ON<BR>&nbsp; END #end outputformat<BR><BR>Please, can anyone tell me what I'm missing?&nbsp; <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&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;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>