I make a new column in my attribute table and it has a default value (for example 0). I want to (probably using the Field Calculator) have the result that row 1 has the value 1, row 2=2 and so on, just like a numbered index.
How do I do this in the Field Calculator (including the use of $rownum
which I think I need for switching to the line)?