[Qgis-user] Multi-line labels and field calculator
Andrew Chapman
andrew.chapman at donkagen.co.uk
Sun Oct 23 07:23:53 PDT 2011
I'm trying to combine multiple attributes into a single multi-line
equivalent to use as a label in a shapefile.
I create and populate a new attribute using the field calculator using an
expression like:
stringField + '\n' + '(' + to string(decimalField) + ' some text'
This successfully creates a multi-line string in the target field PROVIDED
THAT I DON'T SAVE THE FILE. I can then use the new symbology text to display
the expected label.
If I save the layer, the multi-line string is truncated to the first line
only and the displayed label reverts to the first line.
The multi-line string therefore isn't saved. Is this a limitation of
shapefiles or is it a bug?
If it is a limitation of shapefiles, is there any other way to achieve the
same effect?
Andrew
More information about the Qgis-user
mailing list