[gdal-dev] Re: PackBitsDecode: Not enough data ...

Hermann Peifer peifer at gmx.eu
Thu Jul 2 11:27:11 EDT 2009


Even Rouault wrote:
> Le Wednesday 01 July 2009 10:50:51 Hermann Peifer, vous avez écrit :
>> Even Rouault wrote:
>>> Does gdalinfo -checksum lceugr100_00_pct_epsg4326.tif works ?
>> Not really:
>> Warning 1: lceugr100_00_pct_epsg4326.tif:PackBitsDecode: discarding 94
>> bytes to avoid buffer overrun
>> ERROR 1: lceugr100_00_pct_epsg4326.tif:PackBitsDecode: Not enough data
>> for scanline 13228
>> ERROR 1: TIFFReadEncodedStrip() failed.
>>
>> ERROR 1: IReadBlock failed at X offset 0, Y offset 13228
>> ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 13228
>> ERROR 3: Checksum value couldn't be computed due to I/O read error.
>>
>>> If it doesn't, you might want to try with a recent GDAL (e.g 1.6.1)and
>>> internal libtiff support.
>> OK. I upgraded from version 1.6.0 to 1.6.1. This didn't help. I ran into
>> the same error at the same scanline 22054. :-(
>>
>> I am also not too sure about internal libtiff support, as configure
>> tells me:
>> LIBTIFF support:           external (BigTIFF=no)
> 
> That tells you that you're using libtiff from your system (probably libtiff 
> 3.8.2). Try again with : ./configure --with-libtiff=internal, make clean, 
> make. If it still doesn't work, you should check (with third-party software 
> not using libtiff) if your file is not corrupted. If it is not, then it is a 
> bug in libtiff.
> 

./configure --with-libtiff=internal did the trick. I ended up with:
LIBTIFF support:           internal (BigTIFF=yes)

... and was able to warp the input file directly into a compressed 
output file. No gdalwarp > gdal_translate sequence needed.

Thanks for all hints, Hermann



More information about the gdal-dev mailing list