Customer Service | Training | Contact Us
You are here: Home > Downloads > ArcScripts > Search Results > Script Details Login | Feedback | Help

Update Map Server Cache by FeatureClass



contact author | download help | add bookmark | view bookmarks
Author Jeremy Bartley
File Name script.zip
Language Python
Last Modified Jul 11 2007
Status of work ESRI Attribution and Licensing Agreement
Software ArcGIS Server
File Size 180.56 kb
Downloads 925

ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.


Summary
The script I have written allows you to update an existing cache using a feature class whose features represent the areas you wish to cache (a regularly spaced grid or other features of interest). Within the script itself you identify the location of the feature class (needs to be in the same projection as your map service), the location of the cache configuration file, and the specific update cache parameters for your cached map service (server name, service name, data frame name, scales to cache, update mode, & whether or not to use anti-aliasing).

When executed, the script will check the feature class to see if the “Cached” field exists. If it does not exist it will create the column and run update map server cache for each feature. When the update procedure for that feature finishes it will mark that feature as cached and move to the next feature. If the “Cached” field does exist, it will skip the features that have already been marked as having been cached and start up where it left off.