Creating an image service cache
Creating a cache of pregenerated images (tiles) can help your image service run more quickly. You can set up the properties of the cache and begin generating tiles at the time you publish the service or generate them later.
- Open the Service Editor dialog box for your service.
There are two ways to get to the Service Editor:
- Start publishing a map or an image service as described in Publishing image services. At the final phase of the publishing process, the Service Editor appears.
- Right-click an already running service in the Catalog window and click Service Properties.
- From the left menu of the Service Editor, click Caching.
- Choose the option to draw your image service Using tiles from a cache.
- From the Tiling Scheme drop-down list, choose the tiling scheme for your cache.
The tiling scheme determines the scales at which tiles will be created, the boundaries of your tiles, and some other properties. There are several ways to choose a tiling scheme:
- If you want to use the same tiling scheme as the ArcGIS Online, Bing Maps, and Google Maps caches, choose ArcGIS Online / Bing Maps / Google Maps.
- If you want to use your own tiling scheme, choose A tiling scheme file and browse to a tiling scheme XML file that you have created using the Generate Map Server Cache Tiling Scheme tool.
- If you want to use the same tiling scheme as another existing image service or map service, choose An existing cached map / image service and browse to the service.
- If you want ArcGIS to suggest some scales for you, click Custom and type the number of scales you want. This option is only recommended for experimental or testing purposes. In most cases, you will have already designed your map with a specific set of scale levels in mind.
- Use the sliders to set the Levels of Detail property.
Tiling schemes often contain many scales. Depending on your dataset, you might want to forego caching some of the extremely large or small scales in your tiling scheme. ArcGIS examines the scale dependencies in your map and suggests a minimum and maximum range of scales for caching. You can adjust this range to your liking. The remaining scales are not removed from your tiling scheme, but you will not be able to create tiles for them unless you return to this dialog box and include them in the range.
- Choose whether the cache will be built automatically when the service is published, or whether you will build the cache manually after the service is published. These options are available at the bottom of the Service Editor.
The Estimated Cache Size is reported near the bottom of the window. If the cache is large, it’s wise to build it manually in phases, caching the largest scales at selected areas of interest that are most likely to be visited. If the cache is small, it’s easier to just build the whole cache automatically at the time you publish.
- To see more settings, click Advanced Settings in the left menu under Caching.
These settings are described in Available map cache properties.
- It is advised that you choose the appropriate Tile Format which will most commonly be Mixed or JPEG.
Mixed uses JPEG (which can be smaller in size than the others) when there are valid pixels and PNG32 when transparency is supported.
- Continue working in the Service Editor as needed.
- If you’re creating a new service, click Publish when you are ready to publish.
- If you’re editing an existing service, click OK to save your changes.
If you chose to build your cache automatically it will begin building at this time. You can check its progress by viewing the geoprocessing Results window in ArcMap.
- If you chose to build your cache manually, right-click your service in the Catalog window and click Manage Cache > Manage Tiles. This displays the Manage Map Server Cache Tiles tool, which you can run using the scales and areas of interest that you choose.