import arcpy gdbPath=r"C:\Users\Path\To\Data.gdb" arcpy.env.workspace = gdbPath fcList=arcpy.ListFeatureClasses() for fc in fcList: if fc.endswith("A"): tgtFC=fc inFC=fc+"00" #this line requires there always to be a identical FC ending in '00' if not arcpy.Exists(inFC): print inFC+" not found. "+fc+" was skipped." arcpy.AddMessage(inFC+" not found. "+fc+" was skipped.") continue arcpy.Append_management(inFC,tgtFC) #append FC '00' to the FC without '00'. inFC and tgtFC must have the same schema arcpy.Delete_management(inFC)
import arcpy gdbPath=r"C:\Users\Path\To\Data.gdb" arcpy.env.workspace = gdbPath fcList=arcpy.ListFeatureClasses() for fc in fcList: if fc.endswith("line"): tgtFC=fc inFC=fc+"00" #this line requires there always to be a identical FC ending in '00' arcpy.Append_management(inFC,tgtFC) #append FC '00' to the FC without '00'. inFC and tgtFC must have the same schema arcpy.Delete_management(inFC)
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.