Just for curiosity, could you precise the version of external libtiff on your system and the dimensions of your TIFF image ?
Le Friday 19 June 2009 18:05:30 Dillabough, Craig, vous avez écrit : > Hi Even, > > My original settings were: > TIFF_SETTING = external > And > GEOTIFF_SETTING = internal > > I reconfigured with the --with-libtiff=internal and recompiled. > > Now things seem to be working. > > Thanks for your help, I don't think I would have ever figured that one out. > > Regards, > Craig > > -----Original Message----- > From: Even Rouault [mailto:[email protected]] > Sent: Thursday, June 18, 2009 4:33 PM > To: Dillabough, Craig > Cc: [email protected] > Subject: Re: [gdal-dev] gdaladdo > > > Look at TIFF_SETTING in GDALmake.opt. > > Le Thursday 18 June 2009 22:31:12 Dillabough, Craig, vous avez écrit : > > I am using the latest and greatest GDAL. I compiled/installed it by hand > > (so to speak) so I am not sure which libtiff I am using - I will check > > config.log and get back to you tommorrow (need to catch my ride home) - > > unless you know of an easier way to check. > > > > Thanks for your help. > > > > Craig > > > > > > > > > > > > > > > > -----Original Message----- > > From: Even Rouault [mailto:[email protected]] > > Sent: Thursday, June 18, 2009 4:18 PM > > To: [email protected] > > Cc: Dillabough, Craig > > Subject: Re: [gdal-dev] gdaladdo > > > > > > Craig, > > > > This should work. > > > > Are you using an older GDAL version ? Are you using external libtiff ? > > > > If so, try again with newer GDAL and internal libtiff (although I > > wouldn't older GDAL to fail on a simple case like yours that doesn't > > involve TIFF compression) > > > > Le Thursday 18 June 2009 21:50:25 Dillabough, Craig, vous avez écrit : > > > Hi, > > > I am trying to tile and create overviews for a TIFF image dataset I > > > have, but I keep getting strange errors when attempting to add > > > overviews. > > > > > > 1st I created a copy of the original image (same format and all, but > > > wanted to keep the original around in case I had problems). > > > > > > >gdal_translate -ot Float32 -of GTiff Av.MaxNDVI.2000.2009.Week.19.tif > > > > > > trans/week19.tif > > > > > > >cd trans > > > > > > Then I tiled the image (I guess I could have done this in one step by > > > > > > adding -co "TILED=YES" to the previous step): > > > >gdal_translate -ot Float32 -of GTiff -co "TILED=YES" week19.tif > > > > > > week19_tiled.tif > > > > > > Then I tried to add the overviews: > > > > gdaladdo -r average -ro week19_tiled.tif 2 4 8 16 > > > > > > I get the following (I've added some whitespace for clarity): > > > 0...10...20...30...40...50...60...70... > > > Warning 1: TIFFReadDirectory:week19_tiled.tif.ovr: Wrong > > > "StripByteCounts" field, > > > ignoring and calculating from imagelength > > > Warning 1: TIFFReadDirectory:week19_tiled.tif.ovr: Wrong > > > "StripByteCounts" field, > > > ignoring and calculating from imagelength > > > ERROR 1: week19_tiled.tif.ovr:DumpModeDecode: Not enough data for > > > scanline 0 > > > ERROR 1: TIFFReadEncodedTile() failed. > > > > > > ERROR 1: IReadBlock failed at X offset 0, Y offset 3 > > > ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 3 > > > > > > I get effectively the same error when I run this without the -ro > > > option. > > > > > > Any idea's what is going wrong. > > > > > > Regards, > > > Craig Dillabaugh > > > > > > > > > _______________________________________________ > > > gdal-dev mailing list > > > [email protected] > > > http://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
