I have line shapefile with different bus routes (each route consist of multiple line), in which I want to sequentially arrange the lines for each bus route based on the direction of route. I tried with QChainage, but couldn't achieve it.

Is it possible in QGIS?

enter image description here

  • 1
    Could you go into more detail what you mean by "sequentially arrange"? How should the final result look like? – Erik Jul 6 '20 at 8:05
  • i have continuous lines as shown in attached image. in this i wanna rank the links based on each segment.. right now i have done it manually. R_NB_1 (segment one), R_NB_2 (segment two) and goes on – Sathish Jul 6 '20 at 8:20
  • Should be doable using pyqgis and networkx module if you are ok with some python? – BERA Aug 14 '20 at 8:14

Perhaps the QGIS plugin "Lines Ranking" can help you. There is an article describing the algorithm.

You can check repository with code also

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.