GeoEco.Datasets.ArcGIS.ArcGISRaster.Close

ArcGISRaster.Close()

Closes any open files or connections associated with this object and releases any other resources allocated to access it.

It is OK to call Close() after it has already been called. If nothing is open, Close() will quickly and silently do nothing.

The CollectibleObject finalizer __del__() always calls Close(), so that under normal circumstances, Close() will be called automatically by Python when the CollectibleObject is about to be destroyed. CollectibleObject also uses atexit to register itself to call Close() on all still-allocated instances when Python exits. However, this procedure is subject to the various caveats documented by atexit, so under unusual circumstances it is possible that Close() will not be called, and it will be up to lower-level libraries and the operating system itself to clean up open resources.