I have 145013 Danish addresses, and 10 big cities in Denmark as points in QGIS. Furthermore, I have four vector layers that connect all the points. They are small roads, main roads, freeways and ferry routes. See the screen dump from QGIS below for an illustration:
Now I would like to calculate the shortest distance from each address to each of the 10 big cities. I will use pgRouting for this, and I have followed the tutorial on finding 1 shortest path at http://anitagraser.com/2013/07/06/pgrouting-2-0-for-windows-quick-guide/
However, I can't figure out how to extend the problem from 1 path to (145013 * 10 =) 1450130 paths.
What method should I use in pgRouting, and how do I incorporate all the 1450130 paths?
I use:
- QGIS 2.1.0
- postgres 9.2
- postgis 2.0
- pgRouting 2.0
- OS: Win 7 64bit
I have shared my data here: https://www.dropbox.com/sh/rn8gdxr1bki4q4x/fFRd0PerkP
It's in a QGIS project file.