[gdal-dev] gdalwarp does not apply source nodata value to destination

Etienne Tourigny etourigny.dev at gmail.com
Fri May 17 07:33:07 PDT 2013


I have created a ticket and attached a patch to resolve this.

http://trac.osgeo.org/gdal/ticket/5087

On Wed, May 15, 2013 at 11:12 AM, Etienne Tourigny
<etourigny.dev at gmail.com>wrote:

> I have just noticed that destination nodata value is not set when
> -dstnodata option is not used in gdalwarp.
>
> This can be problematic when warping a dataset with no data values, as the
> result can be different from expected, if -dstnodata is not set.
> gdalwarp does use source nodata pixels if -srcnodata is not used.
>
> I consider this as a bug (or at the very least a limitation), because one
> cannot warp a dataset in an automatic fashion and get expected output (with
> same nodata value as input).
>
> Would it be OK to copy them over if -dstnodata is not used, or would there
> be problems with doing this? Or perhaps a new argument -copynodata could be
> added if there is fear of disruption.
>
> cheers
> Etienne
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130517/e67c74ec/attachment.html>


More information about the gdal-dev mailing list