arcpy.ListFeatureClasses("*", ["Point", "Polygon"])
import arcpy from arcpy import env env.workspace = "Z:\GIS\TEMP.gdb fcList = arcpy.ListFeatureClasses() for fc in fcList: desc = arcpy.Describe(fc) if desc.shapeType == "Polygon" or "Point": print fc
import arcpy workspace = "H:/GIS_Data/TEMP.gdb" arcpy.env.workspace = workspace # set workspace pointfcs = arcpy.ListFeatureClasses('*', 'POINT') # get the points polyfcs = arcpy.ListFeatureClasses('*', 'POLYGON') # get the polygons pointfcs.extend(polyfcs) # smash together
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.