1

In QGIS I create a line that crosses a polygon twice. By using intersection, it will create a new shapefile that gives me as a result two visible lines (the polygon cut the line).

With geometry tool "from multiple part to single part" QGIS recognizes that I have two lines. The problem occurs when a line intersects itself because when I do the same procedure as above, QGIS thinks that I have four lines!

1 Answer 1

1

You can do this using the Multipart Split plugin which you can download/enable from the menu bar:

Plugins > Manage and Install Plugins...

Then select the line feature and click the plugin icon:

Before splitting

Result:

After splitting

5
  • Yeah works but if the line interctions himself QGIS not recognize two line but more!
    – lausent
    May 26, 2016 at 11:02
  • @lausent - Sorry, just to be clear: if the line intersects itself then you get more than 2 lines?
    – Joseph
    May 26, 2016 at 11:07
  • Exactly. Where the line intersects itself, I think that he must understand that is not true (like a line with an altitude in the point intersection)
    – lausent
    May 26, 2016 at 11:24
  • @lausent - Try using the Delete duplicate geometries tool from the Processing Toolbox.
    – Joseph
    May 26, 2016 at 11:27
  • not work..ask for "point to keep" and "numeric attribute values". I have no idea of which is the point to keep...I mean I know that my line intersects itself but I don't know where....
    – lausent
    May 26, 2016 at 13:44

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.