How can I split a road network into different links splitting at intersections?? The whole network is in one single layer.
1 Answer
You need to use Split lines by lines
tool, and use the same file as input layer and split layer, as you can see below:
You can find the tool from Processing toolbox -> QGIS Geoalgorithms -> Vector Overlay tools -> Split lines by lines
Here is the tool in the Processing Menu:
Before running the tool:
After running the tool:
Update for QGIS 3.x
Although the tool has the same name in SAGA -> Vector line tools
, it has a different name in QGIS 3.x. The new name is Split with lines
located under Processing tools -> Vector overlay -> Split with lines
:
-
under the Vector Overlay tools there is no such option of "split lines with lines". I am using QGIS 2.10.1 Pisa. Can you help me with that. Jul 10, 2017 at 9:29
-
1@AMALDATTA - At the bottom of the Processing Toolbox, make sure you are using the
Advanced interface
and not theSimplified interface
. This algorithm was available since QGIS 2.8 :)– JosephJul 10, 2017 at 10:26 -
2@Joseph Thank you very much for pointing that, I completely forget this point, as I am always using Advanced interface. Jul 10, 2017 at 10:29
-
1@ahmadhanb - Most welcome! Although it is just a guess since the OP is using a fairly old version :)– JosephJul 10, 2017 at 10:31
-
1@AMALDATTA - It may depend on how those intersections look. I suggest you accept this answer (by clicking the green-faded tick on the left-hand side) to show your initial question has been solved and then ask a new question with your details and screenshots :)– JosephJul 10, 2017 at 11:07