[gdal-dev] gdal_merge.py alpha mask
Chaitanya kumar CH
chaitanya.ch at gmail.com
Tue Jun 29 12:23:57 EDT 2010
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
Please create a ticket at http://trac.osgeo.org/gdal/newticket and attach
On Tue, Jun 29, 2010 at 8:19 PM, Stefan Klug <Klug.Stefan at gmx.de> wrote:
> gdal_merge.py doesn't handle tiff files with alpha masks so I've added this
> 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 it makes some sense, as the
> resulting alpha channel is a correct alpha merge, independent of the nodata
> value used for the other bands.
> - If a band has mask flag GMF_ALPHA set, the mask band controls the parts
> that get written to the destination
> Would be great if someone could review and possibly checkin the patch.
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
Chaitanya kumar CH.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev