mercoledì 18 luglio 2018

Arcpy - Update SHAPE@M using Field Value

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]

Best dns 2023

  Best Free & Public DNS Servers Provider Primary DNS Secondary DNS Google 8.8.8.8 8.8.4.4 Control D 76.76.2.0 76.76.10.0 Quad9 9.9.9.9 ...