Export Tile Cache (Data Management)
Summary
Exports tiles from an existing tile cache to a new tile cache or a tile package. The tiles can either be independently imported into other caches or they can be accessed from ArcGIS for Desktop or mobile devices as a raster dataset.
Usage
When exporting a tile cache as a tile package, the cache storage format is always COMPACT.
This tool supports the Parallel Processing environment setting.
Syntax
Parameter | Explanation | Data Type |
in_cache_source |
An existing tile cache to be exported. | Raster Layer; Raster Dataset |
in_target_cache_folder |
The output folder into which the tile cache or tile package will be exported. | Folder |
in_target_cache_name |
The name of the exported tile cache or tile package. | String |
export_cache_type (Optional) |
Choose to export cache as a tile cache or a tile package. Tile packages are suitable for ArcGIS Runtime and ArcGIS Mobile deployments.
| String |
storage_format_type (Optional) |
Determines the storage format of tiles. The default storage format is COMPACT.
| String |
scales [scale,...] (Optional) |
A list of scale levels at which tiles will be exported. | Double |
area_of_interest (Optional) |
An area of interest that spatially constrains where tiles are exported from the cache. It can be a feature class, or it can be a feature that you interactively define in ArcMap. This parameter is useful if you want to export irregularly shaped areas, as the tool clips the cache dataset at pixel resolution. | Feature Set |
Code Sample
This is a Python sample for the ExportTileCache tool.
import arcpy
arcpy.ExportTileCache_management(
"C:/Data/CacheDatasets/Source", "C:/Data/CacheDatasets",
"Target", "TILE_PACKAGE", "COMPACT", "4000;2000;1000", "#")
This is a Python script sample for the ExportTileCache tool.
#Export tile cache for some levels to an EXPLODED format in
#another location
import arcpy
cacheSource = "C:/Data/CacheDatasets/Source"
cacheTarget = "C:/Data/CacheDatasets"
cacheName = "Target"
cacheType = "TILE_CACHE"
storageFormat = "EXPLODED"
scales = "4000;2000;1000"
areaofinterest = "#"
arcpy.ExportTileCache_management(cacheSource, cacheTarget, cacheName,
cacheType, storageFormat, scales, areaofinterest)
Environments
- Parallel Processing Factor
If the Parallel Processing Factor value is empty (blank), the tool will run with a default value of 50 percent (one-half) of the available cores.