Geographic Information Systems Asked by Gin on August 8, 2021
I have a polygon layer which has a number attribute and a text attribute.
When I make a legend in the composer, it automatically chooses the number to display while I would like to have both the number and the text.
How do I display two attributes in a legend? If not possible, how do I select which attribute is displayed in the legend?
I am not looking to have a multi-attribute label in the main window, I wish to have a multi-attribute label in the legend of the composer, or choose which attribute is displayed in the legend.
QGIS 2.8 Win8 64 bit.
You could simply concatenate the three classification fields in the layer's properties.
"Unit_Num" || ' ' || "Age" || ' ' || "Name"
Then it will also appear in the legend in the Print composer:
Unfortunately, the concatenated text will also appear in the main window.
Edit: The legend is derived from your classification, but you can of course label your features with another field:
Correct answer by thibautg on August 8, 2021
The legend can only display the classification set up in the layer's properties. (Afaik, there is currently no equivalent to ArcGIS's legend label descriptions.)
One workaround would be to edit the legend manually in the Print Composer which is probably not an option.
The better option is to set up a classification which will result in the desired legend output as Thibautg has illustrated.
Answered by underdark on August 8, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP