Ticket #2115 (closed defect: fixed)
Writing 1bit TIFF files broken.
|Reported by:||warmerdam||Owned by:||warmerdam|
warmerda@gdal64% 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.