Ticket #1784 (closed defect: fixed)

Opened 10 months ago

Last modified 9 months ago

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

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

09/03/07 10:51:57 changed by warmerdam

  • keywords changed from HFA to HFA .ige.
  • owner changed from warmerdam to mloskot.
  • component changed from default to GDAL_Raster.
  • cc set to warmerdam.
  • 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.

10/05/07 23:43:20 changed by warmerdam

  • owner changed from mloskot to warmerdam.

I'll take care of this issue...

10/06/07 00:12:18 changed 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).

10/06/07 00:13:09 changed by warmerdam

Slight correction, the fix in 1.4 branch was r12344.