Archive for the ‘Caching’ Category

Caching Imagery with a Raster Catalog

September 18th, 2009 by Stephanie

One way to increase the performance of imagery in your map service is to cache it. Since it greatly reduces the amount of time required to render the imagery on your map, caching will allow you to show your imagery at a far greater extent than you could if it were being brought in dynamically. While imagery may lend itself to caching, I find on occasion it can be a bit troublesome to get the caching going. I had a bout of Error 999999 with my latest caching project – turns out 1400 sid images covering an entire county was a little more than ArcCatalog could chew. Fair enough, I had experienced similar issues before where I couldn’t even get my ArcGIS Server map service to start because I was throwing too much imagery at it.

Enter the Raster Catalog. Using an unmanaged raster catalog as opposed to a managed raster catalog saved me a bundle of raster catalog loading time. While the managed raster catalog can take as long, or longer, than your cache creation time – so in my case, a day or two – the unmanaged raster catalog takes far less time to create and load – for me, under two hours.

And thanks (many, many thanks) to ESRI Support and the Color Balancing option in ArcMap, my previous misconception that raster catalog image quality had to be poor compared with the original imagery, is a thing of the past – and I have the completed cache to prove it.

Caching at a specific extent

May 22nd, 2009 by Stephanie

Fully or partially caching your map service can be an effective way to improve performance when you have a lot of detailed data or imagery. Caching works well for layers that are not frequently updated, as it can take a considerable amount of time to cache or re-cache your map service, based on layer complexity, the number of layers, and the extent of your map.

One time-saving option is to cache or re-cache your map service at a specific extent, which is great when you are only updating one area of your map, or when your detailed data/imagery does not cover the full extent of your map.

When you are ready to create your map cache in ArcCatalog, and you have set your tiling scheme and image settings, click the “Create Tiles…” button (Note: this button will say “Update Tiles” if the map service is already cached)

cache1

This will launch the “Manage Map Server Cache Tiles” window, in which you have the option to choose a dataset to set the Update Extent (circled in red, below), or manually enter the Top, Bottom, Left and Right extents (circled in blue, below).

cache2
You will also have the option to choose an Update Mode (red arrow, below) if you are updating your cached map service, including:

Recreate Empty Tiles – recreates tiles that are empty (because they have been deleted on disk), or tiles that are new (because the cache extent has changed or because new layers have been added to a multi-layer cache). Old tiles will be left unchanged.

Recreate All Tiles – replaces all tiles, and new tiles are added if the extent has changed, or if layers have been added to a multi-layer cache.

Delete Tiles – deletes all tiles from the cache. (Only tiles will be deleted and not the cache folder structure. There is a “Delete Map Server Cache” tool available if you wish to delete the entire cache, including folder structure.)

cache3

Another caching option is to update specific areas using a feature class (blue arrow, above), where you can use a polygon feature class to manage tiles (create/update/delete) based on the extents of features of a feature class. For example, if you are caching a country, you might supply a feature class of major urban areas. By doing so, you are requesting that the server only pre-create tiles that cover those urban areas. The rest of the areas can be cached on demand when requested by clients. This can save you time and disk space that would be consumed by creating unneeded tiles in rural areas.

Here are some more helpful links related to caching from ESRI:
Tutorial for Creating a Cached Map Service
Creating Cache Tiles
Using a Map Cache
Tips and Best Practices for map caches
Overlaying Map Caches in the .NET web ADF