[Gdal-dev] Re: ENVIDataset::FlushCache is not idempotent for header file

Carlos A. Rueda carueda at ucdavis.edu
Mon Feb 28 14:53:08 EST 2005


Frank Warmerdam wrote:
> On Sat, 26 Feb 2005 21:04:18 -0800, Carlos A. Rueda <carueda at ucdavis.edu> wrote:
>>I have just noticed that multiple calls to FlushCache on an ENVI dataset
>>object will generate a header with repeated header items. 
> 
> Hmm, I think I see what you mean.  Can you submit a bug 
> report with details.  It seems that we will need to alter the 
> header writing logic to keep the whole header in RAM so that
> it can be completely re-written in FlushCache(), not just 
> appended to. 
> 
> Also, a recent change by Gillian, makes this a less
> frequent problem since it is now only written when dirty.

Good change Gillian! My apologies for not `cvs update'ing more frequently.
Although this change is enough for my current purposes, perhaps other
people would like Frank's suggestion to be considered with higher priority.

Regards,
carlos




More information about the Gdal-dev mailing list