<div dir="ltr">Sorry, but I can't test that. I don't have pdf support compiled into this version of Mapserver. <br><br>I did get transparency to work using the AGG driver by altering my OUTPUTFORMAT to look like this:<br>
OUTPUTFORMAT<br> NAME 'AGGA'<br> DRIVER AGG/PNG<br> IMAGEMODE RGBA<br> EXTENSION "png"<br> FORMATOPTION "TRANSPARENT=ON"<br> FORMATOPTION "INTERLACE=OFF"<br> TRANSPARENT ON<br>
END #end outputformat<br><br>Unfortunately, it seemed to have decreased the quality of the rendering. I've switched back to using the GD driver, and that seems to give good quality and correct transparency.<br> OUTPUTFORMAT<br>
NAME 'png'<br> DRIVER GD/PNG<br> IMAGEMODE RGBA<br> EXTENSION "png"<br> FORMATOPTION "TRANSPARENT=ON"<br> FORMATOPTION "INTERLACE=OFF"<br> TRANSPARENT ON<br> 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"><<a href="mailto:SansonR@asurequality.com">SansonR@asurequality.com</a>></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> </div>
<div>Thanks,</div>
<div> </div>
<div>Robert Sanson<br><br>>>> "Roger André" <<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>> 25/09/2008 10:36 a.m. >>><br></div>
<div dir="ltr"><div class="Ih2E3d">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><div class="gmail_quote"><div class="Ih2E3d">On Wed, Sep 24, 2008 at 1:38 PM, Roger André <<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>> wrote:<br>
</div><blockquote class="gmail_quote">
<div dir="ltr"><div class="Ih2E3d">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></div>&version="1.1.122<div>
<div></div><div class="Wj3C7c"><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></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 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></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>