import arcpy
fc = "LD17_CIPPI"
fields = ['ID', 'KM','SHAPE@M']
with arcpy.da.UpdateCursor(fc, fields) as cursor:
for row in cursor:
print row[0]
row[2] = row[1]
cursor.updateRow(row)
#verify
with arcpy.da.SearchCursor(fc, fields) as cursor:
for row in cursor:
print row[0], row[1], row[2]
Nessun commento:
Posta un commento