# Script Name: CreateFused Map Server Cache
# Description: Creates a fused map server cache tiling scheme using PNG8 image format
# 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 path to the cache.
# Example: \\\\myServer\\arcgiscache\\MyServiceFolder_MyService\\
out_folder = "\\\\myServer\\arcgiscache\\MyServiceFolder_MyService\\"
#out_folder = sys.argv[1]
# Set the SOM server name
# Example: "mySOM"
server_name = "mySOM"
#server_name = sys.argv[2]
# Set the object_name
# Example: "MyServiceFolder/MyService"
object_name = "MyServiceFolder/MyService"
#object_name = sys.argv[3]
# Set the data frame
# Example: "Layers"
data_frame = "Layers"
#data_frame = sys.argv[4]
# Set the map cache tiling origin
# Example: "-180 90"
tile_origin = "-180 90"
#tile_origin = sys.argv[5]
# Set the scale levels for the cache.
# Example: "2000000;500000;250000"
scales = "2000000;500000;250000"
#scales = sys.argv[6]
# 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[7]
# Set cache tile image format.
# Example: "PNG8"
cache_format = "PNG8"
#layers = sys.argv[8]
# Non-argument variable declarations
tiling_scheme_type = "NEW"
tiling_schema = ""
scales_type = "STANDARD"
num_of_scales = "3"
dpi = "96"
tile_width = "512"
tile_height = "512"
map_or_layers = "FUSED"
antialiasing = "ANTIALIASING"
tile_compression_quality = "0"
try:
print 'Starting Cache Generation'
gp.CreateMapServerCache(server_name, object_name, data_frame, out_folder, tiling_scheme_type, scales_type, num_of_scales, dpi, tile_width, tile_height, map_or_layers, tiling_schema, tile_origin, scales, layers, antialiasing, cache_format, tile_compression_quality)
print 'Finished Cache Generation'
except:
gp.AddMessage(gp.GetMessages(2))
print gp.GetMessages(2)
分享到:
相关推荐
该GP工具包括buffer、clip、DirectionanlDis_stats、Erase、Intersect、Intersect_best等常用工具。
安川GP180机械手使用说明书及2D/3D模型,压缩文件包含GP180机械手的说明书、2d图纸及3d模型
OMRON欧姆龙61F-GP-N_液位开关使用说明书
摩托罗拉对讲机GP338的中文说明书,对于购买此款的对讲机用户,英文又不是很好的用户那是相当有用的。。。
MOTOMAN-GP8/AR700,-GP7/AR900 机器人使用说明书 型号: YR-1-06VX8-A00 (标准规格) YR-1-06VX7-A00 (标准规格) YR-1-06VX8-B00 (防腐蚀规格) YR-1-06VX7-B00 (防腐蚀规格) 请确保本说明书到达本产品的最终...
GP88S使用说明,比较详细的一版材料,比较全,下载吧
XBM-1028GP说明书新版.pdf XBM-1028GP使用操作说明书,彩图PDF,非扫描
GP88s使用说明GP88s使用说明GP88s使用说明GP88s使用说明
GNSS 导航器GP-170中文操作说明书
详细描述了TDC-GP22的性能、寄存器配置、数据校准等功能。 文档最后给出了TDC-GP22的示例源码。
安川机器人基本操作手册, 小 白新手非常适合上手 MOTOMAN-GP12/AR1440 机器人使用说明书
GP2000工程示例rar,GP2000工程示例
GPRS 模块 GP40的传品说明书,还有GPRS模块的怎么使用,有详细的使用介绍,和具体步骤。
GP338PLUS中文说明书。全中文。有需要的拿去。。。。。。
(古野FURUNO)GP-170卫导说明书,(古野FURUNO)GP-170_C使用手册,GP-170卫导说明书
GP225,GP180,GP180-120 机器人说明书_2.pdf
保养要领、报警代码、并行IO、操作要领、使用说明书 GP7_8机器人使用说明书
摩托罗拉对讲机GP3688说明书。支持写频,可以双机中继。民用对讲机。
TIPTOP GP QBE 查询与快捷键使用说明
Intel SE7525GP2 服务器主板说明书