python读写excel
摘要:xlwthttp://pypi.python.org/pypi/xlrd简单使用导入xlwtimport xlwt新建一个excel文件file = xlwt.Workbook()#注意这里的Workbook首字母是大写,无语吧新建一个sheettable = file.add_sheet('sheet name')写入数据table.write(行,列,value)table.write(0,0,'test')如果对一个单元格重复操作,会引发returns error:# Exception: Attempt to overwrite cell:# sheet
阅读全文
在Python中使用ArcObjects(来自Mark Cederholm UniSource Energy Services )
摘要:Why Python?ArcGIS VBA support ends after 10.0At 10.0,ArcMap and ArcCatalolg include an integrated Python shellPython scripting objects provided by ESRIIDLE is a decent development and debugging environmentPython scripts can use ArcObjects!Geoprocessing objectsReady-to-use geoprocessing objects are a
阅读全文
删除重复的feature vba VS 删除重复的feature python
摘要:Sub deleteDuplicatedFeature()Dim app As IApplicationSet app = ApplicationDim pMxDocument As IMxDocumentSet pMxDocument = Application.DocumentDim pMap As IMapSet pMap = pMxDocument.FocusMapDim pFeatureLayer As IFeatureLayerSet pFeatureLayer = pMap.Layer(0)Dim pFeatureClass As IFeatureClassSet pFeatur
阅读全文