I have a layer with single lines and I have added a unique ID for each line. I have extracted the vertices of these lines to a new point layer and now I want to add a new ID for every point but based on the ID of the line. This is an example of what I want.
Any idea about how to calculate field "ID_vert" with QGIS (preferably)?
extract vertices
tool in QGIS 3.10, a "line wise" ID is added to your points automatically - so you get what you say you need. Which version of QGIS are you working with?'Extract vertices'
tool should be in the Processing Toolbox?