Arcpy 第一个函数式的写法[纪念]

来源:互联网 发布:淘宝客高佣金申请工具 编辑:程序博客网 时间:2024/05/16 17:26
import arcpydef MDBToSHP(inMdb, outPath):    arcpy.env.workspace = inMdb    outLocation = outPath    fcs = arcpy.ListFeatureClasses()    fcCount = len(fcs)      for fc in fcs:         # Copy the features from the workspace to a folder        arcpy.FeatureClassToShapefile_conversion(fc, outLocation)        print fc    print fcCountinMDB = r"D:\07\07.mdb"outLocation = r"D:\07"MDBToSHP(inMDB, outLocation)

上一篇博客中有相似的非函数式的写法

0 0
原创粉丝点击