12

I have a polygon (.shp) and a line (.shp) layer. I want to split the polygon in several pieces along the lines that overlap the polygon. Afterwards I want to edit each polygon separately (attribute table).

I tried a workaround: Buffering the lines with a small distance and then it worked with the geoprocessing tools (difference - "Unterschied"). Afterwards "multipart to singlepart". It worked but I rather like to do it with lines.

Is there an extension for QGIS or another way to do the task? Similar to the ESRI ArcINFO tool "Split Polygons With Lines"? But all I have is QGIS 2.6.

Polygon - green; line - red

2 Answers 2

2

The Digitizing Tools plugin will do the trick. One of the tools in that plugin is called "Split Selected Features With Selected Lines from Another Layer" enter image description here

5
  • Have you tried dissolving all the line segments together and then running the tool?
    – HDunn
    Commented Jan 20, 2015 at 13:18
  • I tried this before but it was only possible to select ONE line. The polygon was split into two parts. I would like to split the polygon with several lines into several parts. If I try it with more than one line a pop up occurs: "Aufteilen: Es gibt 12 gewählte Objekte im Layer testlinie. Bitte wählen Sie nur ein Objekt aus, mit dem aufgeteilt werden soll." I have the german version installed.
    – Matt
    Commented Jan 20, 2015 at 13:23
  • 5
    Hi HDunn, thanks for your quick comment! I dissolved the 12 lines together. In the attribute table was only one field I selected. Than I started editing the polygon layer and selected the layer. Tried the "Split Selected Features With Selected Lines from Another Layer" tool, but nothing happened. The polygon was not split into several parts.
    – Matt
    Commented Jan 20, 2015 at 13:40
  • The line must cross the polygon
    – Frodo
    Commented Jul 28, 2017 at 10:36
  • 2
    The tool is "Split selected features with selected LINE from another layer". This is an extremely important distinction given the problem faced by the original and others like myself who don't want to have to go line by line to execute our tasks.
    – kl-higgins
    Commented Nov 29, 2017 at 21:52
2

Here's an answer that works for QGIS 3+

The "Split Selected Features" tool has been removed in Digitizing Tools Version 1.4.0

The documentation says: Use processing's in-place editing Split with lines instead.

To find that in QGIS 3.4, do this: enter image description here

Go to Processing Toolbox (Ctrl + Alt + T),
scroll down to the Vector Overlay group,
and choose "Split with lines"```


Your Answer

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

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