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)
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.