Okay so I looked into the suggestions but I am really not up to speed on scripting yet as I am still a beginner. I then got other suggestions and looked into ArcGIS Help. I came up with this from trying to look at other examples. I get a string error when I run it but I am sure that I am probably not really close but here goes. Is this on the right track?#Import system modulesimport arcpyfrom arcpy import envimport os#Set the workspace. List all of the polygon and point features#env.workspace = "C:\Users\marvell2k\ARC\P_Assignment_6\Miramonte\shapefile"outWorkspace = "C:\Users\marvell2k\ARC\P_Assignment_6\MiramonteFGDB.gdb#Use ListFeatureClasses to generate a list of shapefiles in the workspace shown above"fcList = arcpy.ListFeatureClasses ("polygon", "point")#Execute CopyFeatures for each input shapefile for shapefile in fcList"#Determine the new output feature class path and name#outFeatureClass = os.path.join(outWorkspace, shapefile.strip (".shp"))arcpy.CopyFeatures_management (shapefile, outFeatureClass)
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.