Ticket #2427 (closed defect: fixed)
HFA driver returns wrong pixel value reading a newly created empty IMAGINE image
|Reported by:||gaopeng||Owned by:||warmerdam|
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.