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
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
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.
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.
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
The label will be wrapped on the character supplied. If you want to wrap on space just insert a space.