python切片代码[收藏]
来源:互联网 发布:spyder导入mysql包 编辑:程序博客网 时间:2024/05/17 02:31
# -*- coding: cp936 -*-
import sys, string, os, arcgisscripting
gp = arcgisscripting.create()
#必填项
server_name="myServerHost"
object_name = "servicesName" #已经存在的并没有切片的服务
data_frame = "图层"
out_folder="c://arcgisserver//arcgiscache//"
tiling_scheme_type = "NEW" # PREDEFINED
scales_type = "STANDARD"
num_of_scales = "3"
dpi = "96"
tile_width = "512"
tile_height = "512"
#可选项
map_or_layers = "FUSED" # MULTI_LAYER
tiling_schema = "" #当tiling_scheme_type="PREDEFINED"设置路径
tile_origin = ""
scales = "324870;251761;201409"
layers = ""
antialiasing = "ANTIALIASING"
cache_format = "PNG32"
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)
- python切片代码[收藏]
- python 切片
- Python 切片
- python--切片
- Python-切片
- Python - 切片
- python 切片
- python 切片
- python 切片
- Python(切片)
- Python 切片
- python-切片
- python切片
- Python 切片
- Python 切片
- Python 切片
- Python切片
- python 切片
- oracle 批量替换字符
- c#中decimal ,double,float的区别
- android 设置默认输入法
- UltraEdit 正则表达式
- 用拖放和剪贴板传输Shell对象
- python切片代码[收藏]
- Alert Log Messages: Private Strand Flush Not Complete [ID 372557.1]
- [digest from infocenter ]Java develop MQ application 1
- poj2112——Optimal Milking
- C# 网通短信网关 SGIP
- Shell数据对象(一):数据对象如何工作
- 在Ubuntu 10.04下安装Oracle 11g 第二版
- Flash动态生成扇形
- Verilog液晶显示