[GIS] Drawing lines to nearest points in QGIS

pointpolyline-creationproximityqgis

I have two point layers, one with telecom towers and another with secondary schools. I have used the NNJoin Plugin to find the nearest tower from each school, and calculated the distance between. The result is in a vector layer, with separate columns for the tower and school names.

How can one draw lines between the pairs of points?

Best Answer

This should be possible without any plugin using the default Processing tools, particularly Distance to nearest hub:

enter image description here

https://docs.qgis.org/testing/en/docs/user_manual/processing_algs/qgis/vectoranalysis.html#qgisdistancetonearesthublinetohub

enter image description here

Related Question