Ticket #2144 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Changed 4 years ago by warmerdam

  • cc gaopeng added
  • status changed from new to assigned

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.

Changed 4 years ago by warmerdam

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

Merged change in 1.5 (r13725) and closing.

Note: See TracTickets for help on using tickets.