Created
May 30, 2017 20:56
-
-
Save tyler-austin/2b92c1d5a5e0bda3ef4aca87d0944489 to your computer and use it in GitHub Desktop.
arcpy field names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice, thanks for posting :-)