Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

2 Answers 2

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

Your Answer

 
discard

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.