3

enter image description here

I have three shapefiles:

  • one containing destinations
  • the second containing postcodes
  • the third containing the road network

I want to calculate the distance between the postcodes and destinations with the help of GRASS v.net.distance in QGISS 3.2 GUI.

I can easily calculate the distance with this tool between two points only but not between multiple feature(red dots show the destinations, the pink ones show the post codes).

Can anyone explain how to run the batch process for this?

  • So you want the distance from every postcode to every destination? How many of each type do you have? – csk Nov 7 '18 at 17:26
  • 297 postcodes and 19 destinations – Curious Girl Nov 7 '18 at 17:27
  • 1
    Have a look at the hub tools (Distance to nearest hub (points) and Join by lines (hub lines)). The documentation is a sketchy, but with some trial and error I think it will do what you want. docs.qgis.org/testing/en/docs/user_manual/processing_algs/qgis/… – csk Nov 7 '18 at 17:36
  • 1
    PGRouting offers a solution too. – hoge6b01 Nov 19 '18 at 21:01
  • 1
    May be with the plugin OSM Tools (openrouteservice routing, isochrones and matrix calculations for QGIS) – Christophe Nov 20 '18 at 13:14
1

A simple solution: I ran the v.net tool in GRASS GUI to connect the postcodes to the road network, then I ran the v.net.distance in QGISS GUI and it worked; I managed to find out which postcodes are the closest to which destination and the actual distance as well.

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.