Skip to content

Instantly share code, notes, and snippets.

@HerbFargus
Last active July 29, 2018 10:39
Show Gist options
  • Save HerbFargus/1a3b893eba53d8f1d614ab3683522b62 to your computer and use it in GitHub Desktop.
Save HerbFargus/1a3b893eba53d8f1d614ab3683522b62 to your computer and use it in GitHub Desktop.
ArcGIS Field Calculator (Python): Convert Domains from coded values to descriptions
#Pre-Logic Script Code:
def checkValue(c, d):
if c == 1:
return "A"
if c == 2:
return "B"
if c == 3:
return "C"
if c == 4:
return "D"
#Field=
checkValue(!Field1!, !Field2!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment