1

This question is a continuation of this answer

I want to draw curved lines between specific points that are related to each other.

On my points layer each point has: unique FID and relation field to another point in the same layer "Precondition"

make_line(
    start_point($geometry),
    translate(
        centroid($geometry),
        $length/10,
        $length/10
    ),
    end_point($geometry), 
    geometry(
        get_feature(
            'point_layer',
            'fid',
            Precondition
        )
    )
)

There's something wrong with the code and it's not displaying the lines... what's wrong?

1
  • 1
    Is your FID field capitalised like so? If it is, you will need to capitalise it the same in your expression. With that aside, your expression works for me.
    – Matt
    Commented Nov 28, 2022 at 13:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.