<div dir="ltr">I can confirm that the target nodata values are set to zero (instead of "nodata").<div><br></div><div>This can be solved by adding -a_nodata <nodata> manually to the command, in which case the valeus are set to "nodata" and therefore transparent.</div>
<div><br></div><div>e.g. instead of </div><div>gdal_merge.py -n 126 -of GTiff -o /data/src/qgis/qgis-master/tests/testdata/tmp1.tif /data/src/qgis/qgis-master/tests/testdata/landsat.tif<br></div><div>the command should be</div>
<div><div>gdal_merge.py -n 126 -a_nodata 126 -of GTiff -o /data/src/qgis/qgis-master/tests/testdata/tmp1.tif /data/src/qgis/qgis-master/tests/testdata/landsat.tif<br></div></div><div><br></div><div>Can you confirm this works for you? If so, I could fix this for future releases.</div>
<div>Although, there should probably be an option for this?</div><div><br></div><div>Etienne</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 6, 2013 at 11:36 AM, Harish <span dir="ltr"><<a href="mailto:harry.om2000@gmail.com" target="_blank">harry.om2000@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Dear List!<br>Has this discussion made previously in list or I am wrong at my point described? <br>
or communication gap due to poor English? <br><br>I want to repeat:<br></div><div>If we use 'No data value' as zero by selecting the check box in Raster>Miscellaneous>Merge operation, it gives black color in no data region of output image. We can temporarily see the no data portions transparent by putting 'Additional no data value as zero in layer Properties>Transparency but after removing it from project whenever image is loaded again, it gives blackish no data areas.<br>

 <br></div><div>In Raster>Extraction>clipper operation it works fine and no data areas in output image remains transparent/white always.<br><br></div><div>Using QGIS2.0.1 win7 32 bit<br></div><div><br></div><div>Regards<br>

</div><div><br></div><div></div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Thu, Nov 28, 2013 at 6:38 PM, Harish <span dir="ltr"><<a href="mailto:harry.om2000@gmail.com" target="_blank">harry.om2000@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Correction!<br></div>Even after these message/behavior, results come in the target path/name, but with black color in no data areas.<br>

<div class="gmail_extra">Regards<br></div><div class="gmail_extra">
<br><br clear="all"><br><a href="http://www.nird.org.in" target="_blank"></a>
</div></div>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>Harish Kumar Solanki, Assistant Professor<br>National Institute of Rural Development (NIRD), <br>Ministry of Rural Development, Government of India <br>
Jaipur, Rajasthan, India- Pin-302006<br>
<b></b><br>Geo_Coordinates (Office): <span style>26.92162 N, 75.78921 </span>E<br><br>Email- <a href="mailto:hksolanki@nird.gov.in" target="_blank">hksolanki@nird.gov.in</a>, <a href="mailto:harry.om2000@gmail.com" target="_blank">harry.om2000@gmail.com</a>, <br>

Tele-Fax-0141-2209905, Mo.- 09214446732, 09414291732<br>Website-  <a href="http://www.nird.org.in" target="_blank">http://www.nird.org.in, http://watershed.rajasthan.gov.in/</a><br>LinkedIn: <a href="http://www.linkedIn.com/in/hksolanki" target="_blank">www.linkedIn.com/in/hksolanki</a><br>

<a href="http://www.nird.org.in" target="_blank"></a>
</font></span></div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>