I am using QGIS 2.18.6 . I have created two line layers. First layer "testroad" with long line (road). Second with short lines along,near road. I would like to know distance of first and last point of every line in second layer along line of first layer without creating another point layer. I've tried using expression in field calculator:
line_locate_point(geometry:=geometry(get_feature('testroad', 'id', '1')), point:=end_point($geometry))
But it always returns
0. I am new to QGIS and don't understand what is wrong with:
rest of expression works.