We are currently trying to update existing null values with X and Y coordinates.
We are getting an error:
>>>
Traceback (most recent call last):
File "C:\FLRmodel\CalculatePlotNumberByAccess3.py", line 72, in <module>
row[2] = round(row[0], 6)
TypeError: a float is required
>>>
with arcpy.da.UpdateCursor(projectedFC, ['SHAPE@X', 'SHAPE@Y', 'PLOT_LONG', 'PLOT_LAT'], "" , spatialRef) as cursor:
for row in cursor:
row[2] = round(row[0], 6)
row[3] = round(row[1], 6)
cursor.updateRow(row)<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Why does it ask for a float?