Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. Dict = {fc.name: fc.featureType.values()for fc in arcpy.ListFeatureClasses(r"gdb")}
  2.  
  3. print Dict
  4.  
  5. fcs = arcpy.ListFeatureClasses()
  6. features = {}
  7. for fc in fcs:
  8. cursor = arcpy.da.SearchCursor(fc, '*')
  9. features[fc] = list(cursor.fields)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement