If/then python for classifying existing field values to a new field

المشرف العام

Administrator
طاقم الإدارة
I'd like to have a tool or quick python script to classify an existing number field to a new text field. For example I have a roads layer that has a type identifier as a coded number and I would like to create a new field that described the number code as text. So say the existing field 'FCODE" had code "210" , and I want to write "Highway" in a new field "Type" and do that for multiple number-text pairs. I could select by attribute and classify that way but it would be nice to do it all in one step. Cheers!

Pat



أكثر...
 
أعلى