[Gdal-dev] HFA Driver behavior when spill file is present
Frank Warmerdam
warmerdam at pobox.com
Fri Aug 31 11:03:42 EDT 2007
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,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the Gdal-dev
mailing list