I have lots of points, and a road (lines) and I would like to calculate from point A to point B (the distance must route through the roads (lines).
I found this QGIS calculate distance of point along a line , but when I'm trying to do a v.distance, I don't see it saving the distance into the DB.
I need the DB to show:
Source Destination Distance
Point A Point B 10.0011
Point A Point C 101.12
point A Point D 1212
Point B point c 121.0
point B Point D 31.0
... ... ...
Any idea?
Thanks!
Best Answer
You should try Network-Analysis tool (it is in core now). Here is its description in the QGIS documentation. Here is a python-scripting tutorial for network-analysis (it is in Russian, but google-translate should help).