Related to the question line below. How do I make the arrow point to the line correctly ?
This code did not work :
with_variable('myvalue',line_interpolate_angle(geometry:=intersection(buffer(geometry:=$geometry, distance:=50, segments:=3),overlay_nearest(layer:='railways', expression:=$geometry)[0]), distance:=50),if(@myvalue < 180,@myvalue+90,@myvalue-90))

