Opened 22 years ago

Last modified 22 years ago

#165 closed defect (fixed)

Unsigned 1 bit data read as byte for HFA

Reported by: desch-mosher@… Owned by: warmerdam
Priority: high Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

An HFA file defined as 1 bit unsigned data is read incorrectly as unsiged byte
data.

Attachments (1)

u1bit.img (78.1 KB ) - added by desch-mosher@… 22 years ago.
1 bit unsigned thematic HFA data

Download all attachments as: .zip

Change History (3)

by desch-mosher@…, 22 years ago

Attachment: u1bit.img added

1 bit unsigned thematic HFA data

comment:1 by warmerdam, 22 years ago

I added U1 support for hfadataset.cpp, and also modified HFABand::GetRasterBlock()
to return CE_None for "missing" tiles instead of CE_Failure as the previous
behaviour was causing premature termination of gdal_translate. 

Things seem to work fine with the sample file provided now. 

comment:2 by warmerdam, 22 years ago

Actually, I should note that the file is still treated as Byte data, but
the bit data is now properly promoted to byte format on the fly.

Note: See TracTickets for help on using tickets.