import arcpy from arcpy import env env.workspace = r"Database Connections\ORCL.sde" fc = "Roads" table = "Addresses" fcList = [] rows = arcpy.SearchCursor(fc) for row in rows: fcList.append(row.getValue("CODE")) del row, rows tableList = [] rows = arcpy.SearchCursor(table) for row in rows: tableList.append(row.getValue("CODE")) del row, rows for n in fcList: if n not in tableList: rows = arcpy.InsertCursor(table) row = rows.newRow() row.CODE = n rows.insertRow(row) try: del row, rows except NameError: pass
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.