Hello everyone,
I need to transform a 2D road graph into 3D. Each vertex of the lines should receive the correct Z value from a DTM.
I found this solution, which works very well:

The problem with this workflow is that it is very slow. My region is very large: the graph has about 150,000 elements, and the vertex extractor generates more than 2,000,000 vertices, which slows down the script.
Any suggestions?