I have a string field 'Oneway' with three values '+' '-' and Null showing a street accessibility, I would like to replace them with values 'F' 'T' and null as the script for Network dataset expect these values.However it seems that it is not possible to replace values if Null values are present. I tried also changing the field type to double or text but the field properties are not editable somehow (I tried this in arc catalog). I am only able to replace value '+' and '-' with numbers using the field calculator but need to replace them with letters.
|
An automated way of doing this task is running a python function within Field Calculator (no selecting and reverse selecting required), see example below: Additionally, if you wanted to replace NULL with an empty string just add these two statements:
|
|||||||||||||||||
|
Here is how I would do this:
|
|||
|
I had this problem after having done a spatial join - I had null value which in my case needed to changed to 0. I solved it using the following method:
It all worked very well! (Sometimes it is much easier to do things in other programs!) |
|||
|