Import Map Server Cache (Server)

ArcGIS Pro 3.4 | | Help archive

Summary

Imports tiles from a folder on disk into a map image layer cache.

The source folder can be a child of a registered server cache directory, a folder into which a cache has been previously exported, or a tile package (.tpk).The target service must have the same tiling scheme and the storage format as the source cache.

Usage

  • Use this tool to import all or portions of a cache from one folder to another.

  • The Overwrite Tiles parameter allows the imported tiles to completely overwrite the existing tiles, rather than blending the images. Imported tiles can still be constrained to an area of interest.

Parameters

LabelExplanationData Type
Input Service

The map image layer with the cache tiles to be imported. You can choose it by browsing to the service in a portal, or you can drag a web tile layer from the Portal tab in the Project pane to supply this parameter.

Image Service; Map Server
Source Cache Type

Specifies the type of cache that will be imported to a cached map or image service running on the server.

  • Map or image service cacheA map or image service cache that is generated using ArcGIS Server will be imported. It can be used in ArcGIS Desktop and by ArcGIS Server map or image services.
  • Tile packageA single compressed file in which the cache dataset is added as a layer and consolidated so that it can be shared will be imported. It can be used in ArcGIS Pro and with ArcGIS Maps SDKs for Native Apps.
String
Source Cache Dataset
(Optional)

The path to the tiles that will be imported. This is represented by a raster dataset icon when you are browsing. You do not have to specify a registered server cache directory; typically, you'll specify a location on disk where tiles have been previously exported. This location should be accessible to the ArcGIS Server account. If the ArcGIS Server account cannot be granted access to this location, check the Upload data to server parameter.

Raster Dataset
Source Tile Package
(Optional)

The path to the tile package that will be imported. This location should be accessible to the ArcGIS Server account. Importing a tile package file to a cached map or image service automatically enables the Upload data to server parameter.

File
Upload data to server
(Optional)

Specifies how tiles will be moved to the server cache directory.

Check this parameter if the ArcGIS Server account does not have read access to the source cache. The tool will upload the source cache to the ArcGIS Server uploads directory before moving it to the ArcGIS Server cache directory.

  • Checked—Tiles will first be placed in the server uploads directory, then moved to the server cache directory. This is active by default when the Source Cache Type parameter is set to Tile Package.
  • Unchecked—Tiles will be imported directly into the server cache directory. The ArcGIS Server account must have read access to the source cache.
Boolean
Scales
(Optional)

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

By default, the scales listed on the tool dialog box are between the minimum and maximum cached scales for the service. To update the scale range, go to the Service Editor > Caching tab and use the sliders to update the minimum and maximum cached scales.

Double
Number of caching service instances
(Optional)

Specifies the number of instances that will be used to update or generate the tiles. The value for this parameter is set to unlimited (-1) and cannot be modified.

Long
Area Of Interest
(Optional)

An area of interest polygon that spatially constrains where tiles will be imported into the cache. This parameter is useful when importing tiles for irregularly shaped areas, as the tool clips the cache dataset, which intersects the polygon at pixel resolution and imports it to the service cache directory.

If you do not provide a value for this parameter, the value of the Import Extent parameter will be used. The default is to use the full extent of the map.

Feature Set
Import Extent
(Optional)

A rectangular extent defining the tiles that will be imported into the cache. By default, the extent is set to the full extent of the map service into which you are importing. The optional Area Of Interest parameter allows you to spatially constrain the imported tiles using an irregular shape. If values are provided for both parameters, the Area Of Interest parameter takes precedence over this one.

  • Current Display Extent Map View—The extent will be based on the active map or scene.
  • Draw Extent Square and Finish—The extent will be based on a rectangle drawn on the map or scene.
  • Extent of a Layer Layer—The extent will be based on an active map layer. Choose an available layer or use the Extent of data in all layers option. Each map layer has the following options:

    • All Features Select All—The extent of all features.
    • Selected Features Area from Selected Features—The extent of the selected features.
    • Visible Features Extent Indicator—The extent of visible features.

  • Browse Browse—The extent will be based on a dataset.
  • Clipboard Paste—The extent can be copied to and from the clipboard.
    • Copy Extent Copy—Copies the extent and coordinate system to the clipboard.
    • Paste Extent Paste—Pastes the extent and coordinate system from the clipboard. If the clipboard does not include a coordinate system, the extent will use the map’s coordinate system.
  • Reset Extent Reset—The extent will be reset to the default value.

When coordinates are manually provided, the coordinates must be numeric values and in the active map's coordinate system. The map may use different display units than the provided coordinates. Use a negative value sign for south and west coordinates.

Extent
Overwrite Tiles
(Optional)

Specifies whether the images in the destination cache will be merged with the tiles from the originating cache or overwritten by them.

  • Checked—All pixels in the area of interest will be replaced, effectively overwriting tiles in the destination cache with tiles from the originating cache.
  • Unchecked—When the tiles are imported, transparent pixels in the originating cache will be ignored. This results in a merged or blended image in the destination cache. This is the default.
Boolean

Derived Output

LabelExplanationData Type
Output Map Service URL

The output URL.

String

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics