Background:
I need to create lines from points where the point attributes are transferred to the line segments.
The screenshot below shows two point tracks. Each track's point has a unique id and an additional attribute, in this case elevation.
Here's a screenshot showing the point layer's attribute table:
Below is a screen shot showing the desired line output. Notice that each line segment now contains both of the elevation values from the two points that comprised that line segment.
The resulting line attribute table includes three new fields: line_segment, elevation_begin, and elevation_end.
Question:
I don't know how to create new lines that contain attribute values from the source points. None of the "point to line" tools or plugins offer this functionality. There used to be a plugin named "Points2Paths" that could do this, but it has been removed from the repository.
I suppose that Geometry by Expression might offer a solution, but I don't know where to begin...