Last active
July 29, 2018 10:39
-
-
Save HerbFargus/1a3b893eba53d8f1d614ab3683522b62 to your computer and use it in GitHub Desktop.
ArcGIS Field Calculator (Python): Convert Domains from coded values to descriptions
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
#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