[Gdal-dev] gdaladdo problems on an Mac OS X Panther

Frank Warmerdam warmerdam at pobox.com
Wed Mar 15 11:31:39 EST 2006


Gross, Dorit (SDRN) wrote:
> Dear list,
> 
> I use gdaladdo to add overviews to a GeoTiff and receive following error
> message:
> 
> /usr/local/gislibs/bin/gdaladdo -r average --config COMPRESS_OVERVIEW LZW
> /Artemis/public/spot-veg/ndv/2006/dv06031_wrld.tif 2 4 8 16 32 64 128
> 0.Warning 1:
> TIFFReadDirectory:/Artemis/public/spot-veg/ndv/2006/dv06031_wrld.tif: Wrong
> "StripByteCounts" field, ignoring and calculating from imagelength Warning 1:
> TIFFReadDirectory:/Artemis/public/spot-veg/ndv/2006/dv06031_wrld.tif: Wrong
> "StripByteCounts" field, ignoring and calculating from imagelength
> ..10...20...30...40...50...60...70...80...90..Warning 1:
> TIFFReadDirectory:/Artemis/public/spot-veg/ndv/2006/dv06031_wrld.tif: Wrong
> "StripByteCounts" field, ignoring and calculating from imagelength Warning 1:
> TIFFReadDirectory:/Artemis/public/spot-veg/ndv/2006/dv06031_wrld.tif: Wrong
> "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1:
> /Artemis/public/spot-veg/ndv/2006/dv06031_wrld.tif:DumpModeDecode: Not enough
> data for scanline 0 ERROR 1: TIFFReadEncodedTile() failed.
> 
> ERROR 1: IReadBlock failed at X offset 0, Y offset 4
> ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 4 ERROR 1:
> /Artemis/public/spot-veg/ndv/2006/dv06031_wrld.tif:DumpModeDecode: Not enough
> data for scanline 0 ERROR 1: TIFFReadEncodedTile() failed.
> 
> ...
> 
> Any ideas what could be the problem and how it could be solved?
> 
> We use the latest GIS Libs for Mac OS X Panther (2.2.1) including GDAL/OGR
> v1.3.1 downloaded from Kyng Chaos.

Dorit,

It *sounds* like the input file may be corrupt in some sense.  Was it
generated with libtiff?  Can you make the original file available for
me to look at?

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




More information about the Gdal-dev mailing list