Import Tile Cache (Data Management)

License Level:BasicStandardAdvanced

Summary

Imports tiles from an existing tile cache or a tile package. The target cache must have the same tiling scheme, spatial reference, and storage format as the source tile cache.

Usage

Syntax

ImportTileCache_management (in_cache_target, in_cache_source, {scales}, {area_of_interest})
ParameterExplanationData Type
in_cache_target

An existing tile cache to which the tiles will be imported.

Raster Layer
in_cache_source

An existing tile cache or a tile package from which the tiles are imported.

Raster Layer; File
scales
[scale,...]
(Optional)

A list of scale levels at which tiles will be imported.

Double
area_of_interest
(Optional)

An area of interest will spatially constrain where tiles are imported into 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 import tiles for irregularly shaped areas.

Feature Set

Code Sample

ImportTileCache example 1 (Python window)

This is a Python sample for the ImportTileCache tool.

import arcpy

arcpy.ImportTileCache_management("C:/Data/CacheDatasets/Target", 
                                 "C:/Data/CacheDatasets/Source", 
                                 "4000;2000;1000", "#")
ImportTileCache example 2 (stand-alone script)

This is a Python script sample for the ImportTileCache tool.

#Import tile cache for some levels from a pre-existing tile cache

import arcpy

    
cacheTarget = "C:/Data/CacheDatasets/Target"
cacheSource = "C:/Data/CacheDatasets/Source"
scales = "4000;2000;1000"
areaofinterest = "#"

arcpy.ImportTileCache_management(cacheTarget, cacheSource, 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.

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013