8

How can I split a road network into different links splitting at intersections?? The whole network is in one single layer.

ahmadhanb
  • 40,826
  • 5
  • 51
  • 105
AMAL DATTA
  • 303
  • 2
  • 3
  • 5

1 Answers1

15

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:

enter image description here

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:

enter image description here

Before running the tool:

enter image description here

After running the tool:

enter image description here

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:

enter image description here

ahmadhanb
  • 40,826
  • 5
  • 51
  • 105
  • 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. – AMAL DATTA Jul 10 '17 at 09:29
  • I updated my answer. I am using QGIS 2.14.15 in case yours is different. You need to update QGIS to the latest release. – ahmadhanb Jul 10 '17 at 09:32
  • 1
    @AMALDATTA - At the bottom of the Processing Toolbox, make sure you are using the Advanced interface and not the Simplified interface. This algorithm was available since QGIS 2.8 :) – Joseph Jul 10 '17 at 10:26
  • 2
    @Joseph Thank you very much for pointing that, I completely forget this point, as I am always using Advanced interface. – ahmadhanb Jul 10 '17 at 10:29
  • 1
    @ahmadhanb - Most welcome! Although it is just a guess since the OP is using a fairly old version :) – Joseph Jul 10 '17 at 10:31
  • @Joseph Thank you very much. It worked. But, I have a few instances where it dint. Can I know what might be the reasons for it?? from what i can observe, it dint work in the places where "T" intersections were formed. – AMAL DATTA Jul 10 '17 at 10:56
  • 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 :) – Joseph Jul 10 '17 at 11:07