I am trying to draw a line between a thousands of points and a line using QGIS. I then want to carry out some calculations on the new lines to see which polygons they intersect in a different layer.

I have used NNjoin to find the shortest distance between each point and the line but I want a layer displaying these lines.

  • This has to be a duplicate of an existing question. Did you try searching for your answer already?
    – shea
    Commented Oct 22, 2017 at 20:26
  • Can you edit your question by adding more detail (what kind of line etc.)?
    – pnz1337
    Commented Oct 22, 2017 at 20:29
  • Good question, nicely explained. Why on hold?
    – FelixIP
    Commented Oct 22, 2017 at 21:16
  • @FelixIP is the OP drawing one line among the points, like a regression line? Or one line for each of the thousand points? Before Fezter made an edit, there was no mention of NNjoin. I don't know if Fezter inferred NNjoin or that was an edit between my initial comment and this one. And what kind of calculations for the intersections?
    – shea
    Commented Oct 23, 2017 at 1:44
  • @shea This is what OP says: "draw a line between a thousands of points AND a line". Thus he is talking about lines connecting points (e.g. property water meters) to a line (e.g. water main). Routine task in ArcGIS, not sure about QGIS.
    – FelixIP
    Commented Oct 23, 2017 at 2:09

1 Answer 1


I think this solution might work. Using SAGA to convert line to point, and then QGIS Distance to nearest hub.

Nearest distance between point layer and line layer, QGIS

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.