Hi folks:<br><br>I'm geting this error when using gdaladdo in a tif file created by other gdal utilities<br><br>(1) gdal_translate -of GTiff -ot Int16 %s.asc %s.tif -quiet<br>(2) gdalwarp -tr 0.00232621 0.00232621 (...)<br>
(3) gdaladdo -r average 1_50_Best_Server.dat.tif 2 4 8<br>Then:<br>0...10...20...31...40...51...60...70Warning 1: TIFFReadDirectory:1_50_Best_Server.dat.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength
<br>.Warning 1: TIFFReadDirectory:1_50_Best_Server.dat.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength<br>ERROR 1: 1_50_Best_Server.dat.tif:DumpModeDecode: Not enough data for scanline 0
<br>ERROR 1: TIFFReadEncodedTile() failed.<br><br>ERROR 1: IReadBlock failed at X offset 0, Y offset 6<br>ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 6<br>ERROR 1: 1_50_Best_Server.dat.tif:DumpModeDecode: Not enough data for scanline 0
<br>ERROR 1: TIFFReadEncodedTile() failed.<br>(...)<br><br>my gdaladdo is linked by:<br><br>ldd /usr/bin/gdaladdo<br> linux-gate.so.1 => (0xffffe000)<br> libgdal1.3.2.so.1 => /usr/lib/libgdal1.3.2.so.1 (0xa7a9b000)
<br> libxerces-c.so.27 => /usr/lib/libxerces-c.so.27 (0xa76cc000)<br> libmfhdf.so.4 => /usr/lib/libmfhdf.so.4 (0xa76a9000)<br> libdf.so.4 => /usr/lib/libdf.so.4 (0xa760a000)<br> libungif.so.4
=> /usr/lib/libungif.so.4 (0xa7602000)<br> libpng12.so.0 => /usr/lib/libpng12.so.0 (0xa75de000)<br> libnetcdf.so.3 => /usr/lib/libnetcdf.so.3 (0xa75a8000)<br> libcfitsio.so.2 => /usr/lib/libcfitsio.so.2 (0xa743a000)
<br> libpq.so.4 => /usr/lib/libpq.so.4 (0xa741c000)<br> librt.so.1 => /lib/tls/librt.so.1 (0xa7414000)<br> libdl.so.2 => /lib/tls/libdl.so.2 (0xa7410000)<br> libpthread.so.0 => /lib/tls/libpthread.so.0 (0xa73fe000)
<br> libz.so.1 => /usr/lib/libz.so.1 (0xa73ea000)<br> libcrypt.so.1 => /lib/tls/libcrypt.so.1 (0xa73bc000)<br> libnsl.so.1 => /lib/tls/libnsl.so.1 (0xa73a5000)<br> libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xa72c6000)
<br> libm.so.6 => /lib/tls/libm.so.6 (0xa72a1000)<br> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xa7296000)<br> libc.so.6 => /lib/tls/libc.so.6 (0xa7164000)<br> libgeos.so.2 => /usr/lib/libgeos.so.2 (0xa7071000)
<br> libodbc.so.1 => /usr/lib/libodbc.so.1 (0xa7011000)<br> libjasper-1.701.so.1 => /usr/lib/libjasper-1.701.so.1 (0xa6fc4000)<br> libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xa6fa4000)<br>
libtiff.so.4 => /usr/lib/libtiff.so.4 (0xa6f50000)<br> libmysqlclient.so.15 => /usr/lib/libmysqlclient.so.15 (0xa6d7e000)<br> libicuuc.so.36 => /usr/lib/libicuuc.so.36 (0xa6c67000)<br> libicudata.so.36
=> /usr/lib/libicudata.so.36 (0xa62b7000)<br> libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xa6278000)<br> libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0xa613e000)<br>
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xa60c2000)<br> libcom_err.so.2 => /lib/libcom_err.so.2 (0xa60be000)<br> /lib/ld-linux.so.2 (0xa7f24000)<br> libltdl.so.3 => /usr/lib/libltdl.so.3 (0xa60b7000)
<br> libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xa6092000)<br> libresolv.so.2 => /lib/tls/libresolv.so.2 (0xa607f000)<br> libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0xa6079000)
<br clear="all"><br>I use debian testing:<br><br>uname -a<br>Linux spatialsv2 2.6.17-2-486 #1 Wed Sep 13 15:56:30 UTC 2006 i686 GNU/Linux<br><br>With GDAL 1.3.2:<br><br>dpkg -l |grep gdal<br>
ii gdal-bin 1.3.2-2 Geospatial Data Abstraction Library - Utilit<br>
rc libgdal1-1.3.1 1.3.1-6 Geospatial Data Abstraction Library<br>
ii libgdal1-1.3.2 1.3.2-2 Geospatial Data Abstraction Library<br>
ii libgdal1-1.3.2-dev 1.3.2-2 Geospatial Data Abstraction Library - Develo<br>
<br>ldconfig -v|grep gdal<br> libgdal1.3.2.so.1 -> libgdal1.3.2.so.1.10.0<br><br>I test gdaladdo in other tif files like drgncimq1926.tif from mapserver workshop data with similar results (Segmentation Fault on 71% processed)
<br><br>Any clue?<br>-- <br>Marco Vieira<br>+55 21 9499-6800<br>e-mail: <a href="mailto:maovieira@gmail.com">maovieira@gmail.com</a>