【#文档大全网# 导语】以下是®文档大全网的小编为您整理的《arcgis 字段连续编号python代码》,欢迎阅读!
Arcgis10中Field Calculator,使用python脚本语言进行自动编号 涉及代码如下: ~~~~~~~~~~~~~~~~~~~ rec=0
def autoIncrement(): global rec
pStart = 1 #adjust start value, if req'd pInterval = 1 #adjust interval value, if req'd if (rec == 0): rec = pStart else:
rec = rec + pInterval return rec
-------------------------------------- autoIncrement()
本文来源:https://www.wddqxz.cn/069b168b84254b35eefd34ea.html