[Gdal-dev] gdaladdo problems on an Mac OS X Panther
Gross, Dorit (SDRN)
Dorit.Gross at fao.org
Thu Mar 16 03:30:04 EST 2006
Hi Frank,
The original file is a SPOT VGT HDF that was converted into GeoTiff using
gdal_translate. The overviews are added just in the next step. The script was
running before the upgrade of GIS Libs. I tried the script for different SPOT
files after the upgrade but receive now the same error message for all of
them.
I can provide you an image. Please let me know where it can be uploaded to.
Regards,
Dorit
-----Original Message-----
From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank
Warmerdam
Sent: 15 March 2006 17:32
To: Gross, Dorit (SDRN)
Cc: gdal-dev at lists.maptools.org
Subject: Re: [Gdal-dev] gdaladdo problems on an Mac OS X Panther
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