[Gdal-dev] HFA Driver behavior when spill file is present

Ozy Sjahputera sjahputerao at missouri.edu
Sat Sep 1 09:49:24 EDT 2007


Thanks, Frank.  I will file the bug report.

Ozy

Frank Warmerdam wrote:
> Ozy Sjahputera wrote:
>> Hi All,
>>
>> I just noticed a strange behavior of GDAL HFA driver.  Suppose you 
>> have an HFA file that is over 2GB in size.  This causes the creation 
>> of the spill (.ige) file. When you try to use Create() in GDALDriver 
>> class using the same name of the existing HFA file, instead of 
>> overwriting the pre-existing file GDAL simply appends more data to 
>> the spill file.  So you will end up with larger .ige file.  If I have 
>> a repeat process that uses the same filename, the .ige grows along 
>> with the process and it eats up the disk space unnecessarily, unless 
>> I specifically remove the old HFA file before creating a new one.
>>
>> Is there a way for me to just overwrite the old HFA image file when I 
>> create a new one?
>> Thanks.
>
> Ozy,
>
> This is a bug - please file a bug report on it.  The HFA driver Create()
> method really ought to delete the .ige file.
>
> Best regards,





More information about the Gdal-dev mailing list