I have straight lines in a metric CRS, connecting two points. So each line has exactly two vertices. I want to display these lines as curved arrows with curved labels above these arrows. QGIS version is 3.22.
To get the curved arrow, I am using geometry generator with a curved arrow on top of it. As expression I am using:
make_line(start_point($geometry), translate(centroid($geometry),length($geometry)/6,length($geometry)/6),end_point($geometry))
But since this curved arrow is constructed via geometry generator, the label is still displayed on top of the actual line:
Is there a way to define a rule for the label to follow the path from the curved arrow?
Note, that the line from geometry generator is actually not curved as shown below. So following this path would not be enough.
I would really like to avoid creating new layers, but if there is absolutely no way to define a rule for the label to follow the arrow, I could also live with a solution that modifies the actual geometry to make smooth curves via PostGIS.