Opened 20 years ago
Last modified 20 years ago
#596 closed defect (fixed)
Reading compressed IMG floating point rasters broken
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
frmts/hfa/hfaband.cpp line 757. Should copy nDataValue into the array rather than cast. Should be something like the following: else if( nDataType == EPT_f32 ) { int i; float fDataValue; memcpy( &fDataValue, &nDataValue, 4); for( i = 0; i < nRepeatCount; i++ ) { ((float *) pabyDest)[nPixelsOutput++] = fDataValue; } }
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.