I have a line layer with some lines, and a point layer whose points are located on those lines.
Now I need to get the position "along" the line where each point is (as in distance from start of the line along the line)
- A point located at the start of the line would be at
0 metersfrom start - A point at the end of the line would be at
<length> metersfrom start - A point anywhere in between would be calculated accordingly
I found two answers that can surely help me achieve this, but they're using Python, and I'm almost sure there is a very simple button or processing tool that would do this instead.




line_locate_point(overlay_nearest('YOUR_LINE_LAYER_NAME',$geometry)[0], $geometry)so that each point has its distance measured along the closest line, rather than a collection of all the line layers' features – she_weeds Jan 22 '24 at 21:31$geometrywithtransform()to convert from a degree-based CRS to an appropriate meter-based CRS. – she_weeds Jan 24 '24 at 22:45