Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#2622 closed defect (fixed)

Difficult to read large one strip G4 GeoTIFF files

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone: 1.5.4
Component: GDAL_Raster Version: 1.5.0
Severity: normal Keywords: gtiff
Cc: gaopeng

Description

Large 1bit one strip G4 compressed tiff files can be very difficult to read in GDAL because the entire file is treated as a singe 8bit block making the memory representation 8 times the size of the decompressed 1bit image.

Libtiff can automatically split uncompressed images into smaller blocks but cannot do this for compressed files. So in theory the problem exists for all one strip compressed images but it is much more common for the 1bit compressed files.

Change History (3)

comment:1 by warmerdam, 16 years ago

Milestone: 1.5.4
Resolution: fixed
Status: newclosed

I have implemented a new special-case band type - GTiffSplitBitmapBand - which is applied for largish one row, one bit, one band TIFF files in trunk (r15565), and 1.5 branch (r15567). I also added a test case in autotest/gcore/tiff_read.py (r15566).

comment:2 by warmerdam, 16 years ago

Cc: gaopeng added

comment:3 by warmerdam, 16 years ago

Fix a bug when not starting from the beginning in trunk (r15570) and 1.5 branch (r15571).

Note: See TracTickets for help on using tickets.