rasterio.shutil module¶
Raster file management.
-
rasterio.shutil.copy()¶ Copy a raster from a path or open dataset handle to a new destination with driver specific creation options.
- Parameters
src (str or pathlib.Path or dataset object opened in 'r' mode) – Source dataset
dst (str or pathlib.Path) – Output dataset path
driver (str, optional) – Output driver name
strict (bool, optional. Default: True) – Indicates if the output must be strictly equivalent or if the driver may adapt as necessary
creation_options (**kwargs, optional) – Creation options for output dataset
- Returns
- Return type
None
-
rasterio.shutil.copyfiles()¶ Copy files associated with a dataset from one location to another.
- Parameters
src (str or pathlib.Path) – Source dataset
dst (str or pathlib.Path) – Target dataset
- Returns
- Return type
None
-
rasterio.shutil.delete()¶ Delete a GDAL dataset
- Parameters
path (path) – Path to dataset to delete
driver (str or None, optional) – Name of driver to use for deleting. Defaults to whatever GDAL determines is the appropriate driver
-
rasterio.shutil.exists()¶ Determine if a dataset exists by attempting to open it.
- Parameters
path (str) – Path to dataset