Opened 15 years ago

Last modified 15 years ago

#3094 closed defect

Cannot display an 8 bit tiff with lzw compression created by Mapinfo — at Version 1

Reported by: gaopeng Owned by: warmerdam
Priority: normal Milestone: 1.7.0
Component: GDAL_Raster Version: 1.6.1
Severity: normal Keywords: GTIFF
Cc:

Description (last modified by warmerdam)

The following are error messages from GDAL. The test dataset is at ftp://GDAL@ftp.esri.com/tiff-lzw-problem.zip

ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 2: Unable to allocate 418499163 bytes for a temporary strip buffer in GTIFF driver.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0

Change History (1)

comment:1 by warmerdam, 15 years ago

Description: modified (diff)
Keywords: GTIFF added
Milestone: 1.6.2
Owner: changed from Warmerdam to warmerdam
Status: newassigned

The problem is that the TIFF file is all-in-one-strip. Libtiff has support for breaking up uncompressed files into smaller chunks. GDAL has recent support for breaking up 1 bit 1 strip files but general large compressed files like this will choke GDAL.

I will contemplate how to improve the scanline by scanline access to large strips.

Note: See TracTickets for help on using tickets.