3

How do I determine the distance between points to the neighbor point that connected via the line(road)?

In QGIS 3.8.3 I have tried v.distance and v.net.distance but they do not help.

The line(roads) I extract from Quick OSM.

The intersection from Line Intersection features from QGIS

For example, I want the distance between the point
'718367168' to '428716812',
'718367168' to '718367169',
and so on.

With exception '718367168' to '672464081' cause not connected via a line(road)

IMAGE

The layer Nearest and Distance is a fail one

  • Main question: are points snap to lines? Do you need a distance to each of the possible clothest points connected via lines? Thus '718367168' will have only three neighbours, am I right? – Taras Oct 18 at 7:19
  • You could split your lines where your points intersect the roads and simply measure the new road-segments with $length .If you already downloaded osm data, why dont you try out the ors-tool plugins.qgis.org/plugins/ORStools – DirkB. Oct 18 at 8:16
  • @Taras thank you for edited the question! Yes the points snap to lines because it's intersection between the lines but different layer, and yes '718367168' will have only 3 neighbours. What i want to generate is not only the distance to clothest points, but to all 3 points. – Lysander Gustin Oct 18 at 9:24
  • @DirkB. it will take a lot of time if simple measure the length one by one. how to use ORStools? is it isochrones? – Lysander Gustin Oct 18 at 9:54
  • Yes, you can calculate the length with field calculator once for all at the same time. But you need to split your roads into segements from a to b before. – DirkB. Oct 18 at 11:31
0

You can try Shortest Path:

Processing toolbox > Network Analysis > Shortest Path

There are different options I guess yours is Point to point

  • I tried that too, the Point option is not the point layer, and will take a really long time because the total intersection point is 580 – Lysander Gustin Oct 18 at 9:27

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.