Guest User

Untitled

a guest
Feb 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. import arcpy
  2. from arcpy import env
  3.  
  4. arcpy.env.workspace = "C:/Users/username/Downloads/prime/Prime_Template.gdb/Prime_Template.gdb"
  5.  
  6. print "starting..."
  7.  
  8. featureclasses = arcpy.ListFeatureClasses()
  9.  
  10. for fc in featureclasses:
  11. print fc
  12.  
  13. fcList = arcpy.ListFeatureClasses()
  14. print fcList
  15. print "nn"
  16. print "List Feature Class fields..."
  17. print "nn"
  18. for fc1 in fcList:
  19. fields = arcpy.ListFields(fc1)
  20. for field in fields:
  21. print "{0} is a type of {1} with a length of {2}".format(field.name, field.type, field.length)
Add Comment
Please, Sign In to add comment