Update Map Server Cache (サーバ)

ライセンス レベル:BasicStandardAdvanced

サマリ

既存のマップ サービス キャッシュを更新して、欠落したタイルの補充、古くなったタイルの上書き、新しいエリアへの新しいタイルの追加、またはマルチ レイヤ キャッシュの場合には追加のレイヤから新しいタイルの追加を行います。

レガシーレガシー:

このツールは非推奨ツールです。代わりに、[マップ サービス キャッシュのタイルを管理(Manage Map Server Cache Tiles)] を使用します。

使用法

構文

UpdateMapServerCache_server (server_name, object_name, data_frame, layer, {constraining_extent}, levels, update_mode, {thread_count}, {antialiasing}, {update_feature_class}, {ignore_status})
パラメータ説明データ タイプ
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 つのモードがあります。

  • [Recreate Empty Tiles] - 空のタイル(ディスク上から削除されたもの)のみ、または、キャッシュの範囲が変更したか、またはマルチ レイヤ キャッシュに新しいレイヤが追加されたために、新しいと見なされるものが作成されます。古くなったタイルは未変更のままです。欠落した値。
  • [Recreate All Tiles] - 範囲が変化した場合、またはレイヤがマルチレイヤ キャッシュに追加された場合には、すべてのタイルは置き換えられ、新しいタイルが追加されます。欠落した値。
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)

環境

このツールはジオプロセシング環境を使用していません

関連トピック

ライセンス情報

ArcGIS for Desktop Basic: ○
ArcGIS for Desktop Standard: ○
ArcGIS for Desktop Advanced: ○
9/14/2013