import arcpy # tables source_tab = r"E:\Gampaha\51027202\CM51027202.gdb\CM51027202\PCL_Anno_New" read_tab = r"C:\CMSupport.gdb\Conv_Tab" # Create dictionary for update cursor rows = arcpy.SearchCursor(read_tab) cur_dict = dict((r.Nam_Idm, r.Name_Sin) for r in rows if r.Name_Sin) del rows # Update cursor to fill in rows cur = arcpy.UpdateCursor(source_tab) for row in cur: if row.Text in cur_dict: row.TextString = cur_dict[row.Text] cur.updateRow(row) del cur, row
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.