Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#1784 closed defect (fixed)

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 (4)

comment:1 by warmerdam, 17 years ago

Cc: warmerdam added
Component: defaultGDAL_Raster
Keywords: .ige added
Milestone: 1.4.3
Owner: changed from warmerdam to Mateusz Łoskot

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.

comment:2 by warmerdam, 17 years ago

Owner: changed from Mateusz Łoskot to warmerdam

I'll take care of this issue...

comment:3 by warmerdam, 17 years ago

Resolution: fixed
Status: newclosed

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

comment:4 by warmerdam, 17 years ago

Slight correction, the fix in 1.4 branch was r12344.

Note: See TracTickets for help on using tickets.