Re: [gdal-dev] gdal create tif, errors with gdaladdo

2009-03-21 Thread Stephen Woodbridge
Just to report back the fix below solved my problem. Reprocessed all the imagery and no errors reported, and no nasty artifacts on the images. Many thank to Even for his copious help and to the whole GDAL team. -Steve Stephen Woodbridge wrote: Even, It belatedly dawned on me that just rebuil

Re: [gdal-dev] gdal create tif, errors with gdaladdo

2009-03-21 Thread Stephen Woodbridge
Even, It belatedly dawned on me that just rebuilding the gdal package to use the internal libtiff would be MUCH easier the messing around with the libtiff packages. In case anyone else needs to do this on debian: cd /usr/src apt-src install libgdal1-1.5.0 cd gdal-1.5.2 vi debian/rules # adde

Re: [gdal-dev] gdal create tif, errors with gdaladdo

2009-03-21 Thread Even Rouault
Steve, yes you're looking at the correct site. None of those versions have been released yet. But they are both in a state close to being released. For the test, I didn't use the .tar.gz but the CVS version. To get libtiff 3.9 CVS head (Extract from http://www.remotesensing.org/libtiff/) : ex

Re: [gdal-dev] gdal create tif, errors with gdaladdo

2009-03-20 Thread Stephen Woodbridge
Even, Thank you for all the extra work you did, I very much appreciate it. Looks like I get to spend my weekend trying to rebuild the Lenny Source package for libtiff based on 3.9.0. This is probably not the right list, but looking at: ftp://ftp.remotesensing.org/pub/libtiff/ 3.9.0 looks to

Re: [gdal-dev] gdal create tif, errors with gdaladdo

2009-03-20 Thread Even Rouault
Stephen, I've managed to reproduce your issue with GDAL 1.5 compiled with libtiff 3.8.2 (and I'm not so surprised, as I remember that it was a known issue). But when built with internal libtiff or against external libtiff 3.9.0 (CVS head version), it works fine. So it is due to some bug in libt

Re: [gdal-dev] gdal create tif, errors with gdaladdo

2009-03-20 Thread Stephen Woodbridge
So is the conclusion on this issue, that Debian has old/bad? libtiff libraries? What version libtiff do I need to make this work correctly? Is gdal 1.5.2 a reasonable version to be running under? I would like to stay under the package management system as much as possible. But I also need to

Re: [gdal-dev] gdal create tif, errors with gdaladdo

2009-03-19 Thread Stephen Woodbridge
Even, I ran gdalinfo -checksum on all 51GB of images and none of them reported any errors. And none of the images are compressed. I'm using Debian Lenny packages. There is an ldd output below. $ uname -a Linux mappy 2.6.23-1-amd64 #1 SMP Fri Oct 12 23:45:48 UTC 2007 x86_64 GNU/Linux $ gdal

Re: [gdal-dev] gdal create tif, errors with gdaladdo

2009-03-19 Thread Stephen Woodbridge
Stephen Woodbridge wrote: Hi, I just created a bunch of tif files from a mrsid file and when I use gdaladdo file.tif 2 4 8 16 32 64 128 256 I get over a 1000 errors like: ERROR 1: n-41-25_0-0.tif:DumpModeDecode: Not enough data for scanline 1536 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1

Re: [gdal-dev] gdal create tif, errors with gdaladdo

2009-03-19 Thread Even Rouault
Hi, no those warnings don't sound good at all ! The number of overviews should be fine too. Could you precise the version of GDAL you're using and if you have built with internal libtiff or external libtiff ? (Such warnings could happen with older libtiff, especially with TIFF compression) Cou

[gdal-dev] gdal create tif, errors with gdaladdo

2009-03-19 Thread Stephen Woodbridge
Hi, I just created a bunch of tif files from a mrsid file and when I use gdaladdo file.tif 2 4 8 16 32 64 128 256 I get over a 1000 errors like: ERROR 1: n-41-25_0-0.tif:DumpModeDecode: Not enough data for scanline 1536 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X of