Ticket #1784 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

HFA driver bug with GDALDriver::Create() and GDALDriver::CreateCopy() -- old file is not overwritten

Reported by: ozys Owned by: warmerdam
Priority: normal Milestone: 1.4.3
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: HFA .ige
Cc: warmerdam

Description

HFA driver does not overwrite the pre-existing .ige file when used to create a new image using the same name as the pre-existing image. Instead, HFA driver simply appends the new image to the existing .ige file, causing the .ige file to grow unless manually removed by user. GDAL functions involved are GDALDriver::Create() and GDALDriver::CreateCopy?()

Change History

Changed 6 years ago by warmerdam

  • cc warmerdam added
  • keywords .ige added
  • component changed from default to GDAL_Raster
  • owner changed from warmerdam to mloskot
  • milestone set to 1.4.3

Mateusz,

.ige files are created as spill files when large .img (via HFA driver) files are created. The problem here is that when a new .img file is created an old .ige file with the same basename may exist and end up getting "added to" instead of deleted and re-created.

Could you please change the HFA driver to unlink a corresponding .ige file when .img files are created via Create or CreateCopy?? Please correct in 1.4 branch and trunk.

Changed 6 years ago by warmerdam

  • owner changed from mloskot to warmerdam

I'll take care of this issue...

Changed 6 years ago by warmerdam

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

I have incorporated a fix in trunk (r12341), 1.4-branch (r12343) and a test suite entry to verify the change (r12342).

Changed 6 years ago by warmerdam

Slight correction, the fix in 1.4 branch was r12344.

Note: See TracTickets for help on using tickets.