2

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 Oct 22 '17 at 20:26
  • Can you edit your question by adding more detail (what kind of line etc.)? – pnz Oct 22 '17 at 20:29
  • Good question, nicely explained. Why on hold? – FelixIP Oct 22 '17 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 Oct 23 '17 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 Oct 23 '17 at 2:09
2

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, privacy policy and cookie policy

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