Re: [gdal-dev] gdal_merge.py alpha mask

2010-06-30 Thread Stefan Klug
Am 29.06.2010 18:23, schrieb Chaitanya kumar CH: Stefan, I haven't tested the script but doesn't the current code copy the alpha band? If it does, it might be more preferable to copy all the pixels and the alpha band. Yes the current code copies the alpha band, but it uses the same nodata set

Re: [gdal-dev] gdal_merge.py alpha mask

2010-06-29 Thread Chaitanya kumar CH
Stefan, I haven't tested the script but doesn't the current code copy the alpha band? If it does, it might be more preferable to copy all the pixels and the alpha band. Please create a ticket at http://trac.osgeo.org/gdal/newticket and attach your patch. On Tue, Jun 29, 2010 at 8:19 PM, Stefan K

[gdal-dev] gdal_merge.py alpha mask

2010-06-29 Thread Stefan Klug
Hi, gdal_merge.py doesn't handle tiff files with alpha masks so I've added this functionality. My patch changes the behaviour of gdal_merge as follows: - If a band is recognized as Alpha Band it is automatically treated as having a NODATA value of 0. I'm not sure if this is the way to go. But