Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3994 closed defect (wontfix)

tiff image fails to load — at Version 1

Reported by: timaranz Owned by: warmerdam
Priority: normal Milestone: 1.9.0
Component: GDAL_Raster Version: 1.8.0
Severity: normal Keywords: GTIFF
Cc:

Description (last modified by warmerdam)

We cannot open a .tif file supplied to us by a customer.

gdal band.ReadRaster is returning None.
running gdal_translate with berry_geology.tif gives:
ERROR 1: PackBitsDecode:Not enough data for scanline 0
ERROR 1: TIFFReadEncodedStrip() 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

The offending .tif file is confidential to our customer and may be obtained by emailing me at t dot mitchell at aranz dot com. Please do not add it to this publicly viewable ticket.

Change History (1)

comment:1 by warmerdam, 13 years ago

Description: modified (diff)
Resolution: wontfix
Status: newclosed

I have reviewed the file briefly, but without making a detailed dump of the problem scanlines. The file does appear to be incorrect, and GDAL responds to the error produced by libtiff.

Arguably it would be nice if GDAL could continue on, capturing as much data as possible, but that hasn't been typical policy in GDAL and I am hesitant to change it for fear of hiding serious error during processing.

I did notice that the tiff2rgba (or perhaps tiffcp) can be used to convert the file, with minimal data loss.

Note: See TracTickets for help on using tickets.