3

I've been really struggling to get my highways to label neatly. The idea is to have one route number label every 1 km on the route. The only issue is that there are duplicate separated carriageways with the same route number. And then the label gets added twice, for both directions of travel:

enter image description here

What I'm actually looking for is this (one label, placed on either side of the separated carriageway):

enter image description here

I've tried tweaking the variables in the labeling options, but nothing gives me this result. I also tried dissolving based on Route Number (the label field) and then labeling without placing a label on every multipart feature. This works only if there are no lines like my blue line. If the same Route Number repeats somewhere else, like in my example image, then only the one or the other gets labeled.

1

If your lines have different directions then you can use this filter:

 angle_at_vertex($geometry,1) <= 180

So only one line gets labled. The one which first vertex has an angle lower than 180 degree. Note that this wont work if both lines were drawn in the same direction.

| improve this answer | |
  • Thank you very much, this solved my problem 100% – stefandebruin Jan 6 at 5:19
0

Use this You Tube vid to manage your labels https://www.youtube.com/watch?v=1X2NLHhEUfQ I has a problem using the label toolbar in hiding labels. I overrode by adding a boolean visibility row from which you can individually select whether to show or not

| improve this answer | |

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.