Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am working with ArcGIS 10 and I have added a field in a feature class and am attempting to copy the text from another field's coded values, but the field calculator is simply copying the "code" text from the source field and not the "value" text from the domain rule. Thanks in advance!

share|improve this question

1 Answer 1

Try this tool: Calculate Domain Code Field

Update: Since the tool does the opposite of what you want, you can either tweak it to calculate the description instead of the coded value, or do it interactively:

  1. Use Domain to Table (Management) to export the domain in question to a table
  2. Use Add Join (Management) or the Join Data dialog to join the table to your feature class on the code field
  3. Use Calculate Field (Management) or the Field Calculator dialog to calculate the field you want the descriptions to go in, entering the joined table's description field in the expression box.
  4. (Optional) Remove the join and delete the table you created
share|improve this answer
    
Actually that looks like it might do the opposite of what you want... you might have to mess with it to get it to do the reverse. –  blah238 May 21 '12 at 1:57
2  
Rather than steps 2 (Add Join) and 3 (Calc Field) I would do in single step using Join Field tool. Step 1 would stay the same and optional 4 would only need to Delete the table. –  PolyGeo May 21 '12 at 11:01
    
Good point! I always forget about that tool. The only reason you wouldn't want to use Join Field is if the column already exists, since Join Field will create new columns, even if they already exist, by appending a number after the name. –  blah238 May 21 '12 at 17:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.