GeoEco.DataManagement.ArcGISRasters.ArcGISRaster.CopyList

classmethod ArcGISRaster.CopyList(sourceRasterList, destinationRasterList, skipExisting=False, overwriteExisting=False, basePath=None)

Copies a list of ArcGIS rasters.

Requires: ArcGIS Pro 3.2.0 or later or ArcGIS Server equivalent to ArcGIS Pro 3.2.0 or later.

Parameters:
  • sourceRasterList (list of str) – List of rasters to copy.

  • destinationRasterList (list of str) – List of destination rasters.

  • skipExisting (bool, optional) – If True, copying will be skipped for destination rasters that already exist.

  • overwriteExisting (bool, optional) – If True and skipExisting is False, existing destination rasters will be overwritten.

  • basePath (str, optional) –

    Base path to prepend to relative paths.

    If any of the input paths (or output paths, if this method has outputs) contained in the lists are relative paths, they will be converted to absolute paths prior to processing, as follows:

    • If a base path is provided, it will be prepended to the relative path.

    • Otherwise, if the ArcGIS geoprocessor has been initialized and the geoprocessing workspace has been set (i.e. arcpy.env.Workspace is not and empty string or None), it will be prepended to the relative path.

    • Otherwise, the current working directory for the executing process will be prepended to the path.

    Minimum length꞉ 1.