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 added a field to a feature class in order to maintain symbology from the original KML file (this is a new question following up on this one). The new field is limited to three options by a domain.

When I go to symbolize based on this field, all values are considered to be as opposed to being separated into their appropriate category. Does this have to do with being controled by a coded domain or is something else going on here? Undesired Symbology Result

share|improve this question
    
No definition query: I've updated the image to include the count -- all of the features are considered <all other values> instead of their category defined in the Habitat Type field. –  Roy Jun 13 '12 at 15:22
    
Roy, it might be a better idea to take the update you added with your code out of your question, and instead add it as an answer to your own question. You can then mark it as accepted. This way, someone searching for something similar will be able to see that the question has been answered and might solve their problem. –  Get Spatial Jun 14 '12 at 8:47
    
I was hoping Jakub was reformatting his answer so he could get credit, but I'll go ahead and do it –  Roy Jun 14 '12 at 11:12
add comment

1 Answer

up vote 1 down vote accepted

Update (Credit Jakub):

I changed my code (exerpt shown below); changing from a string (the domain index's description) to the index itself (integer) rectified the problem.

Original Code:

for row in rows:
    fieldValue = row.getValue(oldField)

    if fieldValue.find('IBA') > -1:
        row.setValue(newField, "Global IBA\'s")

Updated Code:

for row in rows:
    fieldValue = row.getValue(oldField)

    if fieldValue.find('IBA') > -1:
        row.setValue(newField, 2) # This is the coded domain for "Global IBA's"

Note: Even after changing the code the the integer index, the label still appears in the attribute table.

share|improve this answer
add comment

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.