13

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.

Taras
  • 32,823
  • 4
  • 66
  • 137
vani
  • 171
  • 1
  • 2
  • 5

3 Answers3

18

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

Taras
  • 32,823
  • 4
  • 66
  • 137
Kazuhito
  • 30,746
  • 5
  • 69
  • 149
1

I just added the algorithm "Split Lines At Nearest Points By Condition" to ProcessX Plug-In. It can also handle Multilines, Z and M values, but only gives good results in projected CRS'. You can also use a maximum distance to points or two optional expression/attribute conditions to find matching points.

enter image description here

Disclaimer: I am the author of the Plug-In. I tried to explain the used method of this algorithm in this answer.

MrXsquared
  • 34,292
  • 21
  • 67
  • 117
-3

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.

Kento
  • 65
  • 2