import arcpy # Set input and output FGDBs inFGDB = "in.gdb" outFGDB = "out.gdb" # Loop through inFGDB arcpy.env.workspace = inFGDB for fc in arcpy.arcpy.ListFeatureClasses(): # Describe to get type dscFC = arcpy.Describe(fc) fcType = dscFC.shapeType print(fcType) # Don't get line fcs if not fcType == "Polyline": # Copy fc to outFGDB print("Copy "+inFGDB+"/"+fc+" to "+outFGDB+"/"+fc+" -- "+fcType+"\n") arcpy.Copy_management(inFGDB+"/"+fc, outFGDB+"/"+fc)
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.