Re: [gdal-dev] Quick dataset close

2010-09-22 Thread Even Rouault
Christiaan, you can try creating your TIFF with the SPARSE_OK=YES creation option. This will avoid writing unfilled blocks at dataset closing. However, in the normal situation where you don't interrupt your dataset creation processus, if you don't write all blocks, the resulting file will be sp

Re: [gdal-dev] Quick dataset close

2010-09-22 Thread Frank Warmerdam
Christiaan Janssen wrote: Is there a way to quickly close a large dataset using the API? For instance, I'm writing to very large TIFF file at which point the user cancels, the code in turn stops what it's doing, closes the dataset, and deletes the file. The problem is, since the file is around

[gdal-dev] Quick dataset close

2010-09-22 Thread Christiaan Janssen
Is there a way to quickly close a large dataset using the API? For instance, I'm writing to very large TIFF file at which point the user cancels, the code in turn stops what it's doing, closes the dataset, and deletes the file. The problem is, since the file is around 5GB the close dataset function