[Gdal-dev] Strange GeoTIFF error/gdal_merge.py

Markus Neteler neteler at itc.it
Thu Mar 18 09:41:05 EST 2004


Hi,

merging 398 ArcBinaryGrids with 'gdal_merge.py'
(GDAL 1.2 from CVS, python 2.2,  --with-libtiff=internal,
 --with-geotiff=internal, Redhat 9)
into a big GeoTIFF file went ok without problems.

But, then, I got some troubles (never seen before):

A) Importing this big file into GRASS:

GRASS:~ > r.in.gdal /nfsmnt/levi0/ssi/neteler/lombardia_dem20.tif out=lom
ERROR 1: /nfsmnt/levi0/ssi/neteler/lombardia_dem20.tif:0: Invalid strip byte count, strip 7500
ERROR 1: TIFFReadEncodedStrip() failed.

ERROR 1: IReadBlock failed at X offset 0, Y offset 7500
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 7500
ERROR 1: /nfsmnt/levi0/ssi/neteler/lombardia_dem20.tif:0: Invalid strip byte count, strip 7501
ERROR 1: TIFFReadEncodedStrip() failed.

ERROR 1: IReadBlock failed at X offset 0, Y offset 7501
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 7501
ERROR 1: /nfsmnt/levi0/ssi/neteler/lombardia_dem20.tif:0: Invalid strip byte count, strip 7502
ERROR 1: TIFFReadEncodedStrip() failed.

ERROR 1: IReadBlock failed at X offset 0, Y offset 7502
[...]
ERROR 1: IReadBlock failed at X offset 0, Y offset 8748
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 8748
ERROR 1: /nfsmnt/levi0/ssi/neteler/lombardia_dem20.tif:0: Invalid strip byte count, strip 8749
ERROR 1: TIFFReadEncodedStrip() failed.

ERROR 1: IReadBlock failed at X offset 0, Y offset 8749
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 8749
 100%
CREATING SUPPORT FILES FOR lom

B) Simply trying to use GDAL itself:

gdal_translate /nfsmnt/levi0/ssi/neteler/lombardia_dem20.tif lom.tif
Input file size is 9200, 11250
0...10...20...30...40...50...60..ERROR 1: /nfsmnt/levi0/ssi/neteler/lombardia_dem20.tif:0: Invalid strip byte count, strip 7500
ERROR 1: TIFFReadEncodedStrip() failed.

ERROR 1: IReadBlock failed at X offset 0, Y offset 7500
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 7500

I have no clue what's wrong. File size: 380MB.

Looks a bit like this:
http://bugzilla.remotesensing.org/show_bug.cgi?id=329

Question: Is the created file corrupted or is there a problem
reading it? Any help is welcome.

Best regards
 Markus Neteler




More information about the Gdal-dev mailing list