7

I simply want to label a column in the attributes table as: "line 1", "line 2", "line 3" etc. I am sure there's an easy fix but couldn't find the exact solution from other posts.

(using QGIS 2.18.7)

Each row represents a different line feature (GPS track)

7

the simpelst form I can think of is:

  • Open field calculator and update the field with:

    concat( 'line ',  $id)
    
  • the result would be "line 1", "line 2" and so on

  • if you need to start at 1 use:

    concat( 'line ',  $id +1)
    
  • This is almost there, but it starts at "line 0" any way to make it start at "line 1"? – Nebulloyd Jul 4 '17 at 11:40
  • 1
    @Joseph added your input :) – LaughU Jul 4 '17 at 11:47
  • perfect, solved :) – Nebulloyd Jul 4 '17 at 11:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.