I have the line created by the "Point to path" function. The algorithm produces just a straight line, whereas I would like to have this line auto-adjusted to the other line (or buffer) which actually exists.

enter image description here

I found the solution here:

How to Make Lines Automatically Adjust same with Another Line (Route or Road)

but it's based on the Snapping tool, which still requires some manual work even if I enable tracing.

I am wondering about some option, which would adjust the line automatically to the selected line from another layer.

  • 1
    You linked answer is not based on the manual snapping tool, but the processing one
    – BERA
    May 20, 2022 at 10:02
  • 1
    Rather than using 'point to path', can you use the 'shortest path (point to point)' tool from network analysis? May 24, 2022 at 8:39
  • @firefly-orange you are great! This is exactly the one! Do you know how to deal with more than 1 at once?
    – Geographos
    May 24, 2022 at 9:35
  • added as an answer May 25, 2022 at 7:38

1 Answer 1


You can use the shortest path (point to point) tool for this purpose. To run it for multiple instances you can use the batch processing interface

Your Answer

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

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