Update Map Server Cache (サーバ)
サマリ
既存のマップ サービス キャッシュを更新して、欠落したタイルの補充、古くなったタイルの上書き、新しいエリアへの新しいタイルの追加、またはマルチ レイヤ キャッシュの場合には追加のレイヤから新しいタイルの追加を行います。
レガシー:このツールは非推奨ツールです。代わりに、[マップ サービス キャッシュのタイルを管理(Manage Map Server Cache Tiles)] を使用します。
使用法
- 
[Recreate Empty Tiles] モードを使用して、事前にキャッシュされていない範囲にタイルを追加します。
 - 
[Recreate All Tiles] を使用して古くなったタイルを更新します。
 - 
このツールを実行する前に、マップ サービスを設定して、可能な限り多くのインスタンスを使用します。これはキャッシュの更新時間を劇的に短縮します。
 - 
このツールは、指定された環境設定を受け入れません。
 
構文
| パラメータ | 説明 | データ タイプ | 
server_name  | 
 キャッシュを更新するときに使用される ArcGIS Server のホスト名。  | String | 
object_name  | 
 キャッシュを更新するときに使用される、マップ サービスの名前。  | String | 
data_frame  | 
 キャッシュするマップ フレーム。  | String | 
layer layer;layer...  | 
 キャッシュから削除する対象のレイヤ。  | String | 
constraining_extent (オプション)  | 
 更新するキャッシュの範囲。  | Extent | 
levels scale;scale...  | 
 更新する縮尺レベルのリスト。  | String | 
update_mode  | 
 キャッシュを更新するときのモードを選択します。次の 2 つのモードがあります。 
  | Boolean | 
thread_count (オプション)  | 
 キャッシュを更新する間に使用するマップ サービス インスタンスの数。  | Long | 
antialiasing (オプション)  | 
 タイルのレンダリング時にアンチエイリアスを使用するかどうかを選択します。[アンチエイリアス] が、ラインのエッジ、境界線に適用されると、テキストはなめらかになります。このオプションを使用すると、パフォーマンスが低下します。ラスタ データの場合は無意味です。  | Boolean | 
update_feature_class (オプション)  | 
 キャッシュを更新する範囲を抽出するために使用される、ポリゴン フィーチャクラス。  | Feature Class | 
ignore_status (オプション)  | 
 [すべてのフィーチャをキャッシュし、終了のステータス フィールドを無効にする] を選択して、キャッシュ終了のステータスフィールドを無効にし、すべてのフィーチャ範囲をキャッシュします。各フィーチャ オプションの [キャッシュの終了ステータスの追跡] を選択して、キャッシュの終了ステータスを Cached という名前のフィールドに更新します。[Yes] というステータスが、そのフィーチャのキャッシュ生成が正常に終了した後に、[Cached] フィールドに表示されます。  | String | 
コードのサンプル
# Script Name: Update Fused Map Server Cache
# Description: Updates a fused map server cache
# Uncomment sys.argv[] lines to accept arguments from the command line.
 
# Import standard library modules
import sys, string, os, arcgisscripting
 
# Create the Geoprocessor object
gp = arcgisscripting.create()
 
# Set the SOM server name
# Example: "mySOM"
server_name = "mySOM"
#server_name = sys.argv[1]
 
# Set the object_name
# Example: "MyServiceFolder/MyService"
object_name = "MyServiceFolder/MyService"
#object_name = sys.argv[2]
 
# Set the data frame
# Example: "Layers"
data_frame = "Layers"
#data_frame = sys.argv[3]
 
# Set the layers to cache.
# Example: "My First Layer;My Second Layer;My Third Layer"
layers = "My First Layer;My Second Layer;My Third Layer"
#layers = sys.argv[4]
 
# Set the extent to update in the cache.
# Example: "8 50 10 52"
constraining_extent = "8 50 10 52"
#constraining_extent = sys.argv[5]
 
# Set the scale levels for the cache.
# Example: "2000000;500000;250000"
scales = "2000000;500000;250000"
#scales = sys.argv[6]
 
# Set the update mode.
# Example: "Recreate Empty Tiles"
update_mode = "Recreate All Tiles"
#update_mode = sys.argv[7]
 
# Set number of instances to use while updating the cache
# Example: "3"
thread_count = "3"
#thread_count = sys.argv[8]
 
# Set antialiasing mode
# Example: "NONE"
antialiasing = "ANTIALIASING"
#antialiasing = sys.argv[9]
 
try:
    print 'Starting Cache Update'
    gp.UpdateMapServerCache(server_name, object_name, data_frame, layers, constraining_extent,  scales, update_mode, thread_count, antialiasing)
    print 'Finished Cache Update'
 
except:
    gp.AddMessage(gp.GetMessages(2))
    print gp.GetMessages(2)