I have a layer with lines, and I am trying to rotate some of their labels that are displayed at 270º to get them at 90º like the rest, but the expression is doing nothing. Even fixing the expression to a random value, like 45º, would not affect any label. I tried generating a field containing the desired azimuth and then linking the field to the rotation, like shown in another question, but got no changes. The expression I was trying to use is this one:
with_variable('azi',
degrees(azimuth(start_point($geometry), end_point($geometry))),
if(@azi-180>-1 AND @azi-180<1,360,@azi)
)
Placement in that layer is set to parallel, left and right of line with line orientation dependent position enabled. The layer has been forced right hand rule.
I need to know why data defined rotation is not working for me or what im doing wrong.