1

Is there a command to explode a line feature (with many segments) into its segments?

Like this: enter image description here

I have seen this: Simple automated way to split all lines in layer at vertices using QGIS?

But, I was looking for something similar that keeps everything in the same layer while editing it and does it only for the selected feature(s) not all elements. I am thinking in a simple command that takes the selected featured(s) and produces the desired output like the Split Patrs or Split Features in the Advanced Digitizing Toolbar.

2

The tool therefore is called "Explode lines" and can be found in the processing toolbox at "Qgis Geoalgorhitms" - "Vector geometry tools". It takes all lines and breaks them into its segments into a new layer.

In order to get a new number for each segment an update can be performed on the id field in the Field calculator using @row_number

| improve this answer | |

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