[Gdal-dev] gdaladdo error: Wrong "StripByteCounts" field

Frank Warmerdam warmerdam at pobox.com
Wed Nov 1 11:01:18 EST 2006


marco vieira wrote:
> Hi folks:
> 
> I'm geting this error when using gdaladdo in a tif file created by other 
> gdal utilities
> 
> (1) gdal_translate -of GTiff -ot Int16 %s.asc %s.tif -quiet
> (2) gdalwarp -tr 0.00232621 0.00232621 (...)
> (3) gdaladdo -r average 1_50_Best_Server.dat.tif 2 4 8
> Then:
> 0...10...20...31...40...51...60...70Warning 1: 
> TIFFReadDirectory:1_50_Best_Server.dat.tif: Wrong "StripByteCounts" 
> field, ignoring and calculating from imagelength
> .Warning 1: TIFFReadDirectory:1_50_Best_Server.dat.tif: Wrong 
> "StripByteCounts" field, ignoring and calculating from imagelength
> ERROR 1: 1_50_Best_Server.dat.tif:DumpModeDecode: Not enough data for 
> scanline 0
> ERROR 1: TIFFReadEncodedTile() failed.
> 
> ERROR 1: IReadBlock failed at X offset 0, Y offset 6
> ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 6
> ERROR 1: 1_50_Best_Server.dat.tif:DumpModeDecode: Not enough data for 
> scanline 0
> ERROR 1: TIFFReadEncodedTile() failed.
> (...)


Marco,

There have been a number of fixes in this general area.  Could you download
and try reproducing the problem with FWTools 1.0.7 for linux?  I should
run fine on Debian on x86.  If the problem occurs with FWTools (essentially
build from GDAL and libtiff CVS) then please file a bug against GDAL with
all the details I will need to reproduce the problem.

It is also potentially possible you ran out of disk space and the file was
truncated.  The error checking for this isn't all what it ought to be.

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    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list