Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#1980 closed defect (fixed)

gdaladdo doesn't understand deflate compressed tiff

Reported by: maphew Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: gtiff libtiff
Cc:

Description

Test case attached. Output on my machine as follows:

E:\bugs\gdaladdo-deflate-unkown>
 gdalinfo --version
GDAL 1.5dev, FWTools 1.4.1, released 2007/10/19

E:\bugs\gdaladdo-deflate-unkown>
 gdal_Translate -outsize 1000 1000 v:YukonMosaic90mNoClouds.tif source-nocomp.tif
Input file size is 10706, 13653
0...10...20...30...40...50...60...70...80...90...100 - done.

E:\bugs\gdaladdo-deflate-unkown>
 gdal_translate -co compress=deflate source-nocomp.tif deflated.tif
Input file size is 1000, 1000
0...10...20...30...40...50...60...70...80...90...100 - done.

E:\bugs\gdaladdo-deflate-unkown>
 gdaladdo deflated.tif 2 4 8 16
0...10...20...30...40...50...60..ERROR 1: ZIPDecode:Decoding error at scanline 0d, incorrect header check
ERROR 1: TIFFReadEncodedTile() failed.
ERROR 1: ZIPDecode:Decoding error at scanline 0d, incorrect header check
ERROR 1: TIFFReadEncodedTile() failed.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
.70...80.ERROR 1: ZIPDecode:ZLib error: (null)
ERROR 1: TIFFReadEncodedTile() failed.
ERROR 1: IReadBlock failed at X offset 0, Y offset 1
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 1
..90ERROR 1: ZIPDecode:ZLib error: (null)
ERROR 1: TIFFReadEncodedTile() failed.
ERROR 1: IReadBlock failed at X offset 3, Y offset 3
ERROR 1: GetBlockRef failed at X block offset 3, Y block offset 3
...ERROR 1: ZIPDecode:ZLib error: (null)
ERROR 1: TIFFReadEncodedTile() failed.
ERROR 1: ZIPDecode:Decoding error at scanline 0d, unknown compression method
ERROR 1: TIFFReadEncodedTile() failed.
ERROR 1: ZIPDecode:Decoding error at scanline 128d, unknown compression method
ERROR 1: TIFFReadEncodedTile() failed.
ERROR 1: ZIPDecode:Decoding error at scanline 0d, unknown compression method
ERROR 1: TIFFReadEncodedTile() failed.
100 - done.

Attachments (1)

gdaladdo-deflate-unkown.zip (948.7 KB ) - added by maphew 16 years ago.

Download all attachments as: .zip

Change History (8)

by maphew, 16 years ago

Attachment: gdaladdo-deflate-unkown.zip added

comment:1 by Even Rouault, 16 years ago

This is a duplicate of #1758 (which is about LZW Tiff to be more precise)

comment:2 by warmerdam, 16 years ago

Matt,

Would you be willing to retry this with FWTools 1.4.3? I think 1.4.1 predated a batch of fixes in libtiff (#1965 and #1948 I think).

comment:3 by maphew, 16 years ago

I can't find v1.4.3 but with 1.4.2 the test case is now error free. Thanks!

comment:4 by maphew, 16 years ago

Resolution: fixed
Status: newclosed

comment:5 by maphew, 16 years ago

gdaladdo still fails on lzw compressed images though.

comment:6 by warmerdam, 16 years ago

Component: defaultGDAL_Raster
Keywords: gtiff libtiff added

I believe this is the same as #1758 which has now been fixed in trunk (using internal libtiff). Closing. Please reopen if the problem continues after the *next* FWTools release.

comment:7 by maphew, 16 years ago

With "GDAL 1.5dev, FWTools 1.4.2, released 2007/11/05" I no longer get any of these errors. Thank you Frank!

Note: See TracTickets for help on using tickets.