Skip to content

Instantly share code, notes, and snippets.

@tyler-austin
Created May 30, 2017 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tyler-austin/2b92c1d5a5e0bda3ef4aca87d0944489 to your computer and use it in GitHub Desktop.
Save tyler-austin/2b92c1d5a5e0bda3ef4aca87d0944489 to your computer and use it in GitHub Desktop.
arcpy field names
import arcpy
vector_file = os.path.join(r"/path/to/feature/class")
field_names = [f.name for f in arcpy.ListFields(vector_file)]
field_names
# [u'FID', u'Shape', u'Id']
@alexfriant
Copy link

Nice, thanks for posting :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment