Opened 16 years ago

Closed 16 years ago

#2144 closed defect (fixed)

HFA Xform (BASEDATA) Generation Corrupt

Reported by: warmerdam Owned by: warmerdam
Priority: high Milestone: 1.5.1
Component: GDAL_Raster Version: 1.5.0
Severity: normal Keywords: hfa basedata
Cc: gaopeng

Description

Imagine (.img, .aux) files produced with XForm geotransforms (only used for rotated or skewed data) are produced corrupt, and will crash applications like Imagine.

The problem appears to be the "count" value in the prolog of BASEDATA objects written to the file. BASEDATA writing was added for GDAL 1.5.0.

Change History (2)

comment:1 by warmerdam, 16 years ago

Cc: gaopeng added
Status: newassigned

I have modified the logic for writing the count for BASEDATA in hfafield.cpp to fix it at one always - trunk (r13507) and 1.4-esri (r13508).

Please test. If it works ok, this needs to be retrofit into the GDAL 1.5 branch as well.

comment:2 by warmerdam, 16 years ago

Resolution: fixed
Status: assignedclosed

Merged change in 1.5 (r13725) and closing.

Note: See TracTickets for help on using tickets.