[gdal-dev] Re: Problem with nodata values

Frank Warmerdam warmerdam at pobox.com
Wed Aug 12 10:13:42 EDT 2009

On Tue, Aug 11, 2009 at 12:53 PM, Hermann Peifer<peifer at gmx.eu> wrote:
> Markus wrote
>> This works:
>>   ...         -srcnodata "-32768" -dstnodata "-32768" -wo
>> "INIT_DEST=-32768" \
>>   ...
> I was taking a similar approach when warping several input tiffs into a
> single output tiff. It looks to me that for each input file, the output file
> is completely reset to the INIT_DEST value, overwriting the values from
> previously processed input files. The final output file did only contain the
> warped values of the last input file in the upper right corner, anything
> else was NODATA. I am wondering if this is rather a feature or a bug.


INIT_DEST should usually only be used for the first run when creating
the file.  The noted behavior is intentional.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the gdal-dev mailing list