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)

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Jul 4, 2017 at 11:20
0

1 Answer 1

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)
    
Joseph
76.7k8 gold badges173 silver badges286 bronze badges
answered Jul 4, 2017 at 11:26
3
  • This is almost there, but it starts at "line 0" any way to make it start at "line 1"? Commented Jul 4, 2017 at 11:40
  • 1
    @Joseph added your input :) Commented Jul 4, 2017 at 11:47
  • perfect, solved :) Commented Jul 4, 2017 at 11:50

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.