arcPy实现要素图层数据的复制(选择特定字段填写属性)

>>> import arcpy
>>> fc=r"D:\楚雄州数据\testdata.gdb"
>>> editor=arcpy.da.Editor(fc)
>>> editor.startEditing(False,True)
>>> tt= arcpy.da.InsertCursor("地名地点",["name","SHAPE@"])

rows = arcpy.da.SearchCursor("BERP3",["NAME","SHAPE@"])

for row in rows:
... print(row[0])
... tt.insertRow([row[0],row[1]])

posted @ 2020-02-18 10:03  我的院子  阅读(1694)  评论(0)    收藏  举报