Skip to main content
1 of 3

Flow map of commuters

I need to show in QGIS the a flow map of commuters in a municipality of Italy, Bari. In a csv file I know the place they come from (a field called ORIG) and the place where they go (the field DEST) and the total number of them (TOTALE). In a shp file I have the points with the coordinates; in this file the reference field is called SEZ. Since I'm a bit ignorant in Python and SQL, could you please tell me a simple way to write few lines that would let me show in the map with lines where they come from and where they go? I would also crate lines with different width depending on the total number of commuters (the field called TOTALE). I tried to create a virtual layer selecting, from the csv, the fields I would like to show, then joining the csv with the shp. But it didn't work. I think I'm not writing the code in the correct way. I saw there is a plug-in as well, Map Flow, but I need to create a matrix that is too long to write down. Many thank and greetings, Gabriele