![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Arcpy
一个球_
热爱开源,热爱JAVA
展开
-
ArcGIS python tool没有许可,按掩膜提取
arcpy.CheckOutExtension("spatial")#打开软件许可arcpy.gp.overwriteOutput=1#覆盖之前文件outExtractByMask = ExtractByMask(tifPath,shpPath)#按掩膜提取原创 2019-01-25 10:52:11 · 2587 阅读 · 0 评论 -
Python arcpy 删除临时tif文件及文件夹
# 删除临时文件 filelist = [] filelist = os.listdir(tempPath) for f in filelist: filepath = os.path.join(tempPath, f) if os.path.isfile(filepath): # os.remove(filepat...原创 2019-01-25 10:53:57 · 1671 阅读 · 0 评论 -
Arcpy 通过mxd模版生成专题图
GISutil.createJPEG(mxdPath, outputPath, outTIFPath, issue, cycle)###################下面代码新建文件命名为 GISutil ################ -*- coding: utf-8 -*-import arcpy import os,sysimport datetimeimport ti...原创 2019-01-25 10:58:35 · 2171 阅读 · 0 评论 -
通过Python脚本自动发布ArcGIS服务
通常我们使用ArcCatalog或者ArcGIS Server Manager等图形界面工具来发布ArcGIS服务,然而有些情况下,比如需要发布的服务数量很多,而且需要不定期随时发布的时候,再使用这些工具进行人工操作就显得力不从心了。ArcGIS的强大之处就在于其为我们提供了多种选择,我们可以通过Python编写脚本,调用ArcPy模块中的功能来实现自动扫描文件夹并将其中的地图文档发布为地图服务。...转载 2019-02-14 14:30:55 · 1905 阅读 · 0 评论