Hi everyone,
Is there a script to identify on polylines or whatever shape type I'm looking for within a gdb?
For example, I want a script that finds all the polylines in a gdb.
Thanks!
2 options:
arcpy.ListFeatureClasses built in search function
arcpy.env.workspace = gdb # your path polyline_fcs = arcpy.ListFeatureClasses(feature_type="Polyline")
Use arcpy.Describe instead
arcpy.env.workspace = gdb # your path polyline_fcs = [fc for fc in arcpy.ListFeatureClasses() if arcpy.Describe(fc).shapeType == "Polyline"]
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.