Opened 11 years ago

Closed 11 years ago

#2115 closed defect (fixed)

Writing 1bit TIFF files broken.

Reported by: warmerdam Owned by: warmerdam
Priority: high Milestone: 1.5.0
Component: GDAL_Raster Version: 1.5.0 betas/RCs
Severity: normal Keywords: gtiff 1bit
Cc:

Description

warmerda@gdal64[58]% gdal_translate -co NBITS=1 fax750219.tif ~/out.tif
Input file size is 1728, 2288
0ERROR 1: One bit raster bands are read-only.
...

It appears my move to GDALDatasetCopyWholeRaster() for the GTiff driver broke support for writing 1 bit files. This needs to be fixed in branches/1.5 (possibly for the 1.5 release). The autotest also needs to be extended to include 1bit writing and the HFA driver should be checked to ensure it does not have the same problem.

Change History (2)

comment:1 Changed 11 years ago by warmerdam

Milestone: 1.5.0
Status: newassigned

I have implemented GTiffBitmapBand::IWriteBlock() to resolve this problem. Committed in trunk (r13408) and 1.5 branch (r13409).

comment:2 Changed 11 years ago by warmerdam

Resolution: fixed
Status: assignedclosed

An autotest for the GTiffBitmapBand read/write case has been incorporated in trunk (r13410).

Note: See TracTickets for help on using tickets.