5

I would like to label to feature with id 1 and 2 with offset x of -10 mm and the offset y with 5 mm. But on the GUI there is only one data defind overried. Is it possible toenter image description here change that for the x and y-value??

1
  • 1
    If you hover over the data override button it shows you what you need to enter, (sadly I'm not completely sure how you implement this): double coord [X,Y] as <= 0.0 => – Knightshound Sep 19 '16 at 7:57
8

So as my comment said hovering over the override button gives you an idea of what input is required. After a little testing it's seems obvious now, and I can't see how it relates to the help of the tooltip but this should work for you.

CASE WHEN "id" = 1 OR "id" = 2 THEN '-10,5' END

1

Click on Edit in the right tooltip window of your screenshot, and write the following expression (or something similar): if("id" in ('1','2'), '-10,5', '0,0'). This will apply a specific offset for ids 1 and 2 only (you may have to remove the quotes around 1 and 2 if your ids are integers).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.