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)
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.