操作方法
Instructions provided describe how to create sequential numbers in a field in ArcMap using Python in the Field Calculator.
Note: The code in this article generates sequential numbers for unsorted data based on the OID or FID order. If the data is sorted on a field, the generated numbers are not sequential.
rec=0 def autoIncrement(): global rec pStart = 1 pInterval = 1 if (rec == 0): rec = pStart else: rec += pInterval return rec
autoIncrement()
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序