AnsweredAssumed Answered

Doubts in arcpy.da.UpdateCursor

Question asked by arsouzaesilva3 on Nov 9, 2019
Latest reply on Nov 9, 2019 by arsouzaesilva3

Hi,

 

My statement below create and update one new colunm with area calculated and after convert to other mensure splitting by 43560.

 

import arcpy
arcpy.env.workspace = "C://EsriTraining/PYTH/Cursors/Corvallis.gdb"

with arcpy.da.UpdateCursor("Parcel", ["SHAPE@AREA", "ACRES"]) as cursor:
      for row in cursor:
      geom = row[0] 
      row[1] = geom / 43560 
      cursor.updateRow(row) 

 

Why have I to use geom equals row [0]?? There is no geom colunm in my feature...

 

Thank´s

Outcomes