<div dir="ltr">Sorry, but I can&#39;t test that.&nbsp; I don&#39;t have pdf support compiled into this version of Mapserver.&nbsp; <br><br>I did get transparency to work using the AGG driver by altering my OUTPUTFORMAT to look like this:<br>
&nbsp; OUTPUTFORMAT<br>&nbsp;&nbsp; NAME &#39;AGGA&#39;<br>&nbsp;&nbsp; DRIVER AGG/PNG<br>&nbsp;&nbsp; IMAGEMODE RGBA<br>&nbsp;&nbsp; EXTENSION &quot;png&quot;<br>&nbsp;&nbsp; FORMATOPTION &quot;TRANSPARENT=ON&quot;<br>&nbsp;&nbsp; FORMATOPTION &quot;INTERLACE=OFF&quot;<br>&nbsp;&nbsp; TRANSPARENT ON<br>
&nbsp; END #end outputformat<br><br>Unfortunately, it seemed to have decreased the quality of the rendering.&nbsp; I&#39;ve switched back to using the GD driver, and that seems to give good quality and correct transparency.<br>&nbsp; OUTPUTFORMAT<br>
&nbsp;&nbsp; NAME &#39;png&#39;<br>&nbsp;&nbsp; DRIVER GD/PNG<br>&nbsp;&nbsp; IMAGEMODE RGBA<br>&nbsp;&nbsp; EXTENSION &quot;png&quot;<br>&nbsp;&nbsp; FORMATOPTION &quot;TRANSPARENT=ON&quot;<br>&nbsp;&nbsp; FORMATOPTION &quot;INTERLACE=OFF&quot;<br>&nbsp;&nbsp; TRANSPARENT ON<br>&nbsp; END #end outputformat<br>
<br>---<br><br><div class="gmail_quote">On Wed, Sep 24, 2008 at 3:39 PM, Robert Sanson <span dir="ltr">&lt;<a href="mailto:SansonR@asurequality.com">SansonR@asurequality.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
<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; &quot;Roger André&quot; &lt;<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>&gt; 25/09/2008 10:36 a.m. &gt;&gt;&gt;<br></div>
<div dir="ltr"><div class="Ih2E3d">Thanks to some help from a fellow GIS developer, I think I&#39;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><div class="gmail_quote"><div class="Ih2E3d">On Wed, Sep 24, 2008 at 1:38 PM, Roger André &lt;<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>&gt; wrote:<br>
</div><blockquote class="gmail_quote">
<div dir="ltr"><div class="Ih2E3d">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 &quot;mode=map&quot;, 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></div>&amp;version=&quot;1.1.122<div>
<div></div><div class="Wj3C7c"><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 &quot;wms_transparent&quot;&nbsp;&nbsp;&nbsp;&nbsp; &quot;TRUE&quot; to METADATA section of LAYER<br>- added &quot;&amp;TRANSPARENT=TRUE&quot; 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 &quot;AGG/PNG&quot;<br>&nbsp;&nbsp; MIMETYPE &quot;image/png&quot;<br>&nbsp;&nbsp; IMAGEMODE RGBA<br>&nbsp;&nbsp; EXTENSION &quot;png&quot;<br>&nbsp;&nbsp; FORMATOPTION &quot;TRANSPARENT=ON&quot;<br>&nbsp;&nbsp; FORMATOPTION &quot;INTERLACE=OFF&quot;<br>
&nbsp;&nbsp; TRANSPARENT ON<br>&nbsp; END #end outputformat<br><br>Please, can anyone tell me what I&#39;m missing?&nbsp; <br><br>Thanks,<br><br>Roger<br>--<br></div></div></div></blockquote></div><br></div><br><br><font style="background-color: rgb(255, 255, 255);">
<p align="center"><font style="background-color: rgb(255, 255, 255);">Click <a href="https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==" target="_blank">here</a> to report this email as spam.</font></p></font><br><br>
<table style="color: black;" bgcolor="white"><tbody><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></tbody></table><br><br>
<p align="center"><font style="background-color: rgb(255, 255, 255);">This message has been scanned for malware by SurfControl plc.  </font><a href="http://www.surfcontrol.com/" target="_blank"><font style="background-color: rgb(255, 255, 255);" color="#000000">www.surfcontrol.com</font></a></p>

</div>
<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br></div>