12

How to split a line layer using another point layer in QGIS?

I have one point layer and one line layer. I want to split the line layer between two points (those two points belongs to point layer) using QGIS. how can I perform this splitting using QGIS?

I used v.split for splitting the line layer, but I am not getting any output.

2
  • 2
    I don't think you can split lines based on points unless the points overlap the lines, if you want to split lines between two points that are not overlapping the line, you can try to convert your points to a line first ( make a line using the points you want to split the original line with) and use that to split your lines. Mar 10, 2016 at 5:43
  • Please, do not forget about "What should I do when someone answers my question?"
    – Taras
    Oct 5, 2021 at 5:01

2 Answers 2

16

There is the SAGA's "Split Lines at Points" module (search in the Processing Toolbox Ctrl+Alt+T: QGIS Processing Toolbox > SAGA > Vector line tools)

enter image description here

In the above example all my points are within 2.8 m (or 2.9 m) from those white lines. Setting Epsilon to 3.0 covers these gaps.

enter image description here

-2

A practical non programming answer is to make a buffer of the points you want to use. Then cut them into the lines so that you run a snap process knowing the threshold you have to use from the previous buffer.

1
  • this will produce multiple cuts.
    – sutan
    May 12 at 15:03

Your Answer

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

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