import os, arcpy rootDir = r"D:\pwwild\master" fgdbName = "master.gdb" fgdbPath = os.path.join(rootDir, fgdbName) arcpy.CreateFileGDB_management(rootDir, fgdbName) shpList = ["cnddb.shp", "cnddbpnt.shp"] # I assume these are in rootDir for shp in shpList: inFC = os.path.join(rootDir, shp) outFC = os.path.join(fgdbPath, shp.split(".")[0]) arcpy.CopyFeatures_management(inFC, outFC)
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.