I have created an example project in QGIS to help illustrate what I am having difficulty with. Using the field calculator, I would like to automate assigning sequential numbers to my points layer according to their position in relation to the 0 vertices point of my line layer. The points do not necessarily intersect with the line and the distance from the vertices point does not necessarily increase. Both the points and the line share a connecting identical attribute, in this case "name" is 'a'. Automating this would be a massive help because i have ~1500 points and 70 lines to put into sequence.
Anyone know how to do this?
The result should look like this :