AnsweredAssumed Answered

move a point using field calculator (hosted feature layer)

Question asked by pmackenzie_LendLease on Oct 10, 2019

I  use ArcGIS Pro field calculator to move points stored as a hosted feature layer using a field calculator on the Shape field using this Python3 expression (below). It takes ages to run, over 12 mins for 21 points. I need to move batches of a few hundred at a time. Are there any other ideas on how I could do this process? I have attachments on the points so downloading locally and re-uploading wouldn't really be practical either. Enable Undo is off


Shape= update()


def update():
fc = "the_f_points   "
pnt = arcpy.Point()
rows = arcpy.UpdateCursor(fc)
for row in rows:
pnt.X = row.survey_x_local
pnt.Y = row.survey_y_local
row.shape = pnt
del row, rows