4

I'd like to create a line style in QGIS 3.4 where short text is written on the line. I am able to create a symbol layer in the line style, as a character symbol, but here only a single character is allowed.

Labelling is not an option for me, because the text is not an attribute of the line layer and text should be written several times on the line.

What I could create:

enter image description here

What I would like to create:

enter image description here

1 Answer 1

7

You can write multiple characters in the font marker using the "data defined override" editor. Click the epsilon near the list of characters, then edit and enter the desired text within single quotes.

enter image description here


Alternatively, you can get the desire outcome using labels.

You would type a static text within single quotes, put the label on the line and repeat it every 10 millimeters (or else). Then you would put a buffer around the labels to "break" the line. At last you can customize the color / bold etc.

If not all lines in the layer should be labeled the same way, you can use the rule based labeling to select / label them.

enter image description here

enter image description here

Your Answer

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

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