资源简介
arcgis批量配准,快速批量配准,工作上常用到

代码片段和文件信息
# -*- coding:gb2312 -*-
#名称:写图像名文本(writeimgname.py)
#时间:2010年8月25日
#作者:云浩
#内容:把同一文件夹中的图像文件名写入投影参数文本文件
import sys os string glob
pydir = os.getcwd() + ‘\\‘
dirPath = os.path.abspath(‘..‘) + ‘\\‘
filelist = os.listdir(dirPath)
jpgfiles = glob.glob(dirPath + ‘*.jpg‘)
tiffiles = glob.glob(dirPath + ‘*.tif‘)
if jpgfiles == [] and tiffiles == []:
print dirPath + ‘没有JPG、TIF格式的影像文件,重选工作目录。‘
sys.exit()
f = True
while f == True:
txtname = raw_input(‘输入新建坐标参数文件名:‘)
if txtname.find(‘.txt‘) == -1:
txtname = txtname + ‘.txt‘
if glob.glob(dirPath + txtname) <> []: # 判断要创建的文件是否存在,如果存在则退出脚本
txtfile = dirPath + txtname
print txtfile + ‘已存在,请重输文件名。‘
else:f = False
newtxtfile = open(dirPath + txtname‘w‘)
for fname in jpgfiles + tiffiles:
kname = fname.split(dirPath)[1]
sname = kname.split(‘.‘)[0]
newtxtfile.write(sname+‘\n‘)
print sname
newtxtfile.close()
print ‘在‘ + dirPath + ‘工作目录下共有‘ + str(len(jpgfiles + tiffiles)) + ‘幅图像的文件名已输入‘ + txtname + ‘坐标参数文件中‘
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 144 2004-02-06 17:41 地图批量配准\Xian 1980.prj
文件 276992 2010-08-30 15:19 地图批量配准\中国国家基本地形图查询软件.exe
文件 1187 2010-08-30 17:32 地图批量配准\写图幅名.py
文件 3477 2010-08-30 23:30 地图批量配准\地图批量配准.py
目录 0 2010-08-31 13:24 地图批量配准
----------- --------- ---------- ----- ----
281800 5
相关资源
- ArcGIS Engine最优路径分析
- arcgis engine实现叠加分析
- arcgis 10.1 中文环境安装包
- Arcgis 扩展模块
- shp转cad小工具
- 插件式GIS应用框架的设计与实现&mda
- 中国工具——gis插件
- ArcGiS手把手教程三——配准和矢
- arcgis_workstation地址
- ArcGIS_ArcInfo_9.3_Workstation_DVD_BT
- 全国耕地质量大数据平台
- arcpy语法教程入门以及ArcGIS的脚本构建
- ArcGis 编辑过程自动保存插件
- ArcGIS10.3 AfCore.dll重要破解文件
- 广东电子地图.rar
- 基于ArcGIS Engine的三维校园路灯管理系
- 全国省级市级县级矢量地图数据
- 完整的中国矢量地图gis数据
- 中国省市县ArcGIS地图数据(县边界线
- 中国ArcGIS数据
- ArcGIS10服务器未运行的最佳解决办法
- ArcGIS可打开并使用的世界地图
- ArcGIS空间分析基本操作
- 长江经济带shp.zip
- arcgis批量出图
- ArcGIS超级工具1.7.exe
- ArcGIS-温度划分梯度.pdf
- ArcGIS全套图标4000+
- 汤国安arcgis教程
- 山东省矢量图
评论
共有 条评论