I started with a network of polylines. In QGIS I used dissolve to 'merge' all lines according to an attribute value. This did exactly that, but included non-connecting lines which I don't want. I then tried to use Multipart to Singlepart hoping this would split the newly dissolved network at the non-connecting points. However this seems to split back to the original network prior to using dissolve.

Am I following this process incorrectly or is there a better solution to what I am trying to do?

1 Answer 1


Dissolve tool creates multipart features. With the field option, you are grouping the features that are going to be the geometry parts of a new feature, according to an attribute.

That's fine. The result is a Dissolved layer with a feature for each occurrence of that attribute. But each feature has many parts (as many as original features with that attribute had). Some of them are adjacent and others are not.

To join the adjacent parts of the same feature there are some methods, in your case I recommend using the Merge lines tool (search for it in the processing toolbox). The input is the Dissolved layer, and the output is a Merged layer.

Now, each feature has parts only for non-adjacent geometries.

You can use the Multipart to singleparts tool now, to have different features (with the same attribute) for any part of the Merged layer features.


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.