Ticket #2144 (closed defect: fixed)

Opened 4 months ago

Last modified 3 months ago

HFA Xform (BASEDATA) Generation Corrupt

Reported by: warmerdam Assigned to: 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

01/09/08 23:34:55 changed by warmerdam

  • status changed from new to assigned.
  • cc set to gaopeng.

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.

02/07/08 15:08:15 changed by warmerdam

  • status changed from assigned to closed.
  • resolution set to fixed.

Merged change in 1.5 (r13725) and closing.