GDAL: GDALDataset Class Reference
https://gdal.org/doxygen/classGDALDataset.htmlDestroy an open GDALDataset.. This is the accepted method of closing a GDAL dataset and deallocating all resources associated with it. Equivalent of the C callable GDALClose().Except that GDALClose() first decrements the reference count, and then closes only if it has dropped to zero.. For Windows users, it is not recommended to use the delete operator on the dataset object …