念之枫

导航

【ArcGIS】对属性进行重新编号

ARCGIS中根据字段属性重新排序并自动编号的方法-百度经验 (baidu.com)

import arcpy
... rows = arcpy.UpdateCursor("预定边桩点","","","","编号 A")
... i=1
... for row in rows:
... row.BH=i
... i=i+1
... rows.updateRow(row)
... del rows
... del row

 

posted on 2021-12-19 17:17  念之枫  阅读(1690)  评论(1编辑  收藏  举报