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