[gdal-dev] Deleting files associated with GDALDataset
even.rouault at mines-paris.org
Wed Dec 3 14:44:12 EST 2008
Generally (Always?) in GDAL, char** arrays are terminated by a NULL pointer.
You can also use CSLCount()... to get the size of the array, and it actually
loops until it finds the terminating NULL pointer.
But the simplest solution is to use GDALDeleteDateset() which is the exact
implementation of your idea.
Le Wednesday 03 December 2008 20:12:11 Chris Padwick, vous avez écrit :
> Does anybody know the right way to delete the files associated with a
> GDALDataset from disk? It looks like I can call
> GDALDataset->GetFileList() and get a char** with the list of files
> comprising the dataset. But I don't know how many files there are in
> the list so I'm not sure how to loop over it and delete each file.
More information about the gdal-dev