摘要: Oracle客户端配置 阅读全文
posted @ 2021-07-12 15:39 月之圣痕 阅读(2550) 评论(0) 推荐(0) 编辑
摘要: unction Test() '使用双字典 SearchPath = FolderDialog("请选择文件夹") If SearchPath = "" Then Exit Function End If WordName = SplitPath(CStr(SearchPath), 1) Dim sFile ... 阅读全文
posted @ 2018-05-11 11:01 月之圣痕 阅读(6764) 评论(0) 推荐(0) 编辑
摘要: 程序需要追加的要素类的结构Schema格式一致,将遍历后的第一个工作空间为范本,后续进行追加。# -*- coding: utf-8 -*-# ---------------------------------------------------------------------------# 质... 阅读全文
posted @ 2016-01-07 15:16 月之圣痕 阅读(1622) 评论(0) 推荐(0) 编辑
摘要: 使用VBA脚本写的,具体使用如下:在批量需要打印的Excel文档下面,新建一个文档,将代码粘贴VBA工程里,然后运行即可。具体代码如下:Attribute VB_Name = "模块1"Sub PiLiangPring()Attribute PiLiangPring.VB_ProcData.VB_I... 阅读全文
posted @ 2016-01-07 15:10 月之圣痕 阅读(882) 评论(0) 推荐(0) 编辑
摘要: 配置文件格式如下:引入了读取Excel格式xlsx格式的第三方库xlrd(xlrd-0.9.3.tar.gz)具体Python代码如下:# -*- coding: utf-8 -*-# ---------------------------------------------------------... 阅读全文
posted @ 2016-01-07 15:04 月之圣痕 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 批量删除GIS数据属性值空格# -*- coding: utf-8 -*-# ---------------------------------------------------------------------------# Merge.py# Created on: 2015-05-04 1... 阅读全文
posted @ 2016-01-07 14:48 月之圣痕 阅读(1300) 评论(0) 推荐(0) 编辑
摘要: 批量删除GIS数据库空层。# -*- coding: utf-8 -*-# ---------------------------------------------------------------------------# Merge.py# Created on: 2013-01-21 10... 阅读全文
posted @ 2016-01-07 14:42 月之圣痕 阅读(749) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-# made by 汪林_质检处import os.pathimport arcpyimport sysfrom arcpy import envFCDBDir = "E:\\cliptest\\data"output = "E:\\Result"cli... 阅读全文
posted @ 2016-01-07 14:30 月之圣痕 阅读(2525) 评论(0) 推荐(0) 编辑
摘要: 导入shape,批量裁剪GDB。代码如下:# -*- coding: utf-8 -*-import os.pathimport arcpyfrom arcpy import envarcpy.env.workspace = 'D:/AllDB/china.gdb'output = "D:\\Test"clipshp = "D:\\need\\SmallRegion.shp"print 'processing...'for fds in arcpy.ListDatasets(): if not fds == '&# 阅读全文
posted @ 2014-01-21 17:48 月之圣痕 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 使用脚本批量的将3DS文件导出到ArcGIS中的Multipatch。代码如下:import arcpyfrom arcpy import envimport osarcpy.CheckOutExtension("3D")env.workspace = "E:/Scene3DData/All3ds"try: Open3DSFile = arcpy.ListFiles("*.3ds") for file in Open3DSFile: strFullName = os.path.basename(file) strFileName = 阅读全文
posted @ 2014-01-21 17:36 月之圣痕 阅读(499) 评论(0) 推荐(0) 编辑