5

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: Splitting 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 Parts or Split Features in the Advanced Digitizing Toolbar.

0

1 Answer 1

6

The tool therefore is called "Explode lines" and can be found in the Processing Toolbox (Ctrl+Shift+T) in 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.

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