Opened 22 years ago
Last modified 22 years ago
#165 closed defect (fixed)
Unsigned 1 bit data read as byte for HFA
Reported by: | 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)
Change History (3)
by , 22 years ago
comment:1 by , 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 , 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.
1 bit unsigned thematic HFA data