I have a point feature class with over 80 million features that need to have fields added to include both the lat/long coordinates in two different fields. While it is easy to calculate this in ArcMap, I need to write a script that will write both to the table then round to within 3 of the decimal point. I have tried using both
UpdateCursor and have failed to be able to write to the fields. However when I use the
SearchCursor I can retrieve the values I am just unable to write them to the fields.
Here's what I am working with so far:
import arcpy from arcpy import env env.workspace = 'C:\Users\Testing' env.overwriteOutput = True inFeatures = "ras2point.shp" cursor = arcpy.da.InsertCursor(inFeatures, ["[email protected]"]) for row in inFeatures: X = row cursor.insertRow([X]) del row del cursor print 'FINISHED'