#7075 closed defect (fixed)

gdalwarp: destination nodata implictly set if source has, but even when -dstalpha is specified

Reported by: Even Rouault Owned by: warmerdam
Priority: normal Milestone: 2.3.0
Component: default Version: unspecified
Severity: normal Keywords:


See https://lists.osgeo.org/pipermail/gdal-dev/2017-October/047320.html

gdalwarp recopies implictly the source nodata value to the target dataset, even if -dstalpha is specified. Having both nodata and alpha is confusing.

It appears that the current behaviour is a unintented side effect of a GDAL 1.11.0 change:

* gdalwarp: copy nodata values from source to dest if -dstnodata is not given ; add option to not set dest nodata with -dstnodata None (#5087)

Change History (1)

comment:1 Changed 15 months ago by Even Rouault

Resolution: fixed
Status: newclosed

In 40347:

gdalwarp: do not set implicitly nodata on destination dataset when -dstalpha is specified (fixes #7075)

Note: See TracTickets for help on using tickets.