Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I apply Multiline label option in the label property.Name field contains a lengthy name. I want to wrap it. How can I do it? please help me.

My QGIS version is 1.8

share|improve this question

If you labels contain a new line character (\n) they will be automatically wrapped. If not you can apply a wrapping character in the Advanced section of the labeling tools

enter image description here

The label will be wrapped on the character supplied. If you want to wrap on space just insert a space.

share|improve this answer

Since QGIS 2.4 there is very handy new expression builder function called wordwrap that will allow one to automatically wrap a lengthy string using as argument the ideal number of characters that a lime should have and ,optionally, a string delimiter (the default is space).

In the below example the field "sintaxon" is my lengthy values field.

enter image description here

Also notice that I can nest wordwrap several times if I want to use more than one string delimiter. In the example below it uses '-' and the default space.

enter image description here

share|improve this answer
This is not the best answer, but it was helpful to me as I wanted to split the label on different characters (space or dash). I had one case of dashes so used IF("name"='Chester-le-Street', 'Chester-\nle-Street', name). It's a hack, but it's good for my use. – Gregory Jan 4 at 14:07
You could also nest the expression twice to have both a max & min number of characters per line... – raphael Jul 8 at 18:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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