Converting a map service cache to an image service cache
The cache generated for a map service can be used for an image service and vice versa. To do this, there are two basic requirements:
- The map document and the mosaic dataset or raster dataset should have the same projections and extents.
- The tiling schemes must be similar. For example, the tiles that will be copied must be the same, but additional tiles can be different.
Legacy:
In 10.0 and earlier versions, image service caches were not supported. Instead, the dataset or image service was added to a map document and published as a cached map service.
The following steps will walk you through the process to publish the image service, including defining the cache within the Service Editor, importing the tiling scheme, then importing the cache.
- In the Catalog window, right-click the mosaic dataset or raster dataset and click Share As Image Service.
- Choose Publish a service and click Next.
- Choose a server connection and verify or change the service name, then click Next.
- Choose the folder the image service will be published within and click Continue.
The Service Editor opens.
- In the left pane, click Caching.
- Click Using tiles from a cache.
- Click the Tiling Scheme drop-down menu and click An existing cached map / image service.
Note:
Optionally, you can choose A tiling scheme file or Custom, but the steps change accordingly. If you choose A tiling scheme file, then a dialog box will open allowing you to navigate to the file. If you choose Custom, then click the Tiling Scheme node that appears under the Caching node and enter the scheme you want to use.
- Navigate and select the map service, then click Add.
- In the left pane, click Advanced Settings and verify the Cache directory where the cache will be generated (or in this case, copied to).
- In the left pane, click Caching.
- Click Build cache manually after the service is published.
- Analyze and publish the image service.
- In the Catalog window, navigate to the image service. Right-click the image service and click Manage Cache > Import Cache.
The Import Map Server Cache tool opens.
- Enter the path to the map service cache that will be copied to the image service in the Source Map Server Cache parameter.
- Click OK to run the tool.