Hi Walt.

 

Sounds like your layer uses a ‘single symbol’ for the layer styling. Try 
changing it to use Categorized and then use an expression like

 

"NAME" || ' - '  || "Area(ha)"  || ' ha'

 

Where 

*       NAME is the name field in your layer
*       Area(ha) is a field in your layer

This will then produce something with a label like

 

CS001 - 1.826 ha

 



 

Then add a legend for the layer in composer and it should show up like the 
following

 



 

 

The alternative is to add the attribute table rather than a legend

 



 

Cheers - Phil

 

 

 

From: Qgis-user <[email protected]> On Behalf Of Walt Ludwick
Sent: Sunday, 29 November 2020 9:17 PM
To: QGIS User <[email protected]>
Subject: [Qgis-user] Print Legend as Features of a Layer

 

I've got a Polygon layer whose features are a series of contiguous LandPlots, 
and i want to print a map of same with a Legend that lists each LandPlot by 
name, along with its calculated area.

 

My problem is: the Layout Composer in QGIS 3.14 seems to presume that one wants 
a list of Layers for the Legend -and, tho i can filter that list down to just 
the single "LandPlots" Layer that i want, i cannot get it to list the features 
within that Layer. 

 

Have read the docs on this feature 
<https://docs.qgis.org/3.16/en/docs/user_manual/print_composer/composer_items/composer_legend.html>
 , which doesn't tell me how to solve this problem, unless i'm missing 
something -perhaps implicit in this "filter by expression" feature, which calls 
for more code-savvy than i've got on the ball right now <:-(

 

Am at an impasse, so any suggestion at this point would be most appreciated!

_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to