In QGIS can I select a line in the map and check its attributes?

I have an ESRI shape file but I am not able to select or choose any line of the map in QGIS, I see, it looks like one block but in show attribute table, I see lots of different id.

When I show attributes in the table and select any id, QGIS should show me which line belongs to this id on the map, right?

I am totally new and I need to have good start in it.

  • 1
    Please edit your question to use proper grammar, sentences and capitalisation. Use the "Identify Features" tool - which looks like an (i) in a blue circle. Make sure the layer from which you want to identify features is selected in the table of contents. – user2856 Feb 1 at 6:18

I totally agree that a good start is crucial for successful working with QGIS.

First of all, select your line layer in the layer tree:

enter image description here

Then you can either:

  • use the Identify tool

enter image description here

...and click on your desired line. It will turn red, and a window with the features attributes (ok, few in this example...) appears:

enter image description here

  • with one of the Select features tools

enter image description here

you can select one or more features of the selected layer. These turn yellow in the map and in the status line you can see the number of selected features of the layer:

enter image description here

Then open the attribute table of the layer and at the bottom left select Show selected features, which should be self-explaining.

  • The opposite way works too. Select one or more features in the attribute table and click on Zoom to selection, either in the QGIS main window or in the attribute table.

enter image description here

  • Furthermore you can right-click a feature in the attribute table and select from one of the options Zoom to Feature, Pan to Feature and Flash Feature

enter image description here


I think you'll have guessed it already: This answer is not specific to linestrings, but works with points and polygons too!

  • thanks for ur reply – potter90 Feb 1 at 16:11
  • 1
    If you find this helpful, you can consider to accept this answer (click the 'v' right beneath the votes) ;-) – Jochen Schwarze Feb 1 at 18:03

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.