[OSGeo-Discuss] gdal_merge.py and transparent tiff's

Brent Fraser bfraser at geoanalytic.com
Sat Jun 25 19:47:09 PDT 2011

To get rid of the black, set the nodata_value on the command line:

gdal_merge.py -n 0 -o result.tiff -co COMPRESS=LZW -co TILED=YES 200k--n57-21_ozf-crop.tiff 200k--n57-22_ozf-crop.tiff

Best Regards,
Brent Fraser

On 6/25/2011 8:24 PM, hatred wrote:
> Hi guys!
> I was prepare some amount of maps. In originaly it have a box, i crop
> it using GIMP/listgeo/getifcp, Now I can make atlas in QLandKarteGT
> and it work well... But, I need to merge this images into one and I am
> fail: in result image my pages separated by transparent areas.
> My sources files:
> http://hatred.homelinux.net/~hatred/maps/geotiff/200k--n57-21_ozf-crop.tiff
> http://hatred.homelinux.net/~hatred/maps/geotiff/200k--n57-22_ozf-crop.tiff
> Result file (sorry for big size):
> http://hatred.homelinux.net/~hatred/maps/geotiff/result.tiff
> My command line:
> gdal_merge.py -o result.tiff -co COMPRESS=LZW -co TILED=YES
> 200k--n57-21_ozf-crop.tiff 200k--n57-22_ozf-crop.tiff
> GDAL version: 1.8.0
> OS: Linux
> Also, in QGIS this maps separated by black areas. In GlobalMapper
> under wine this pages loaded good (like QLandKarteGT)
> Thanks for any help!
> _______________________________________________
> Discuss mailing list
> Discuss at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/discuss

More information about the Discuss mailing list