I am trying to create a new field in QGIS where:
- if the number in the field
"DN"=2
, then the new field (a text string) will say"veg"
- and if the number in the field
"DN"=1
, then the new field will sayunveg
.
I have tried creating a new field and using the replace function, I have tried an if, then
function, but I can't seem to get it to work. I am just trying to create an unvegetated to vegetated ratio and am having immense trouble with this simple step and feel very stuck.
Can you offer advice?