<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 &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">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">http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map</a><br>&amp;SERVICE=WMS<br>&amp;version=%221.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 &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>