Ticket #2427 (closed defect: fixed)
HFA driver returns wrong pixel value reading a newly created empty IMAGINE image
| Reported by: | gaopeng | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5.3 |
| Component: | GDAL_Raster | Version: | 1.5.2 |
| Severity: | normal | Keywords: | HFA |
| Cc: |
Description
There are two issues comparing with IMAGINE:
1. A GDAL created empty image (after Create(), but before writing any pixels) conttains valid blocks initialized to 0, while an IMAGINE created image contains invalid blocks. 2. The GDAL HFA driver always initializes an invalid block to 0, while IMAGINE sets an invalid block to NoData? value if given, otherwise to the max value of the pixel type, e.g. 255 for u8, 1 for u1, and etc.
Atatched are two sample images, an 1-bit without NoData?, and an 8-bit with NoData?.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

