qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.55k stars 2.99k forks source link

Max. size of symbols with map unit sizes not usable in the legend #29127

Closed qgib closed 5 years ago

qgib commented 5 years ago

Author Name: David Signer (@signedav) Original Redmine Issue: 21309 Affected QGIS version: 3.5(master) Redmine category:map_legend Assignee: David Signer


When there is a map unit size configured for the symbols, and a max value, the legend usually takes the size displayed on the map. Means with this config: image

It will be like this: image

Where it's not that nice to have the same maximum size in the legend.

But since it takes always the max size in the GetLegendGraphic request with QGIS Server, this is much worse here:

http://qgis.demo/cgi-bin/qgis_mapserv.fcgi?MAP=/home/david/qgis_projects/server_test/co18_results_rock_grid_tes2t.qgs&SERVICE=WMS&REQUEST=GetLegendGraphic&LAYER=hmap_mean_munit&FORMAT=image/png

image

qgib commented 5 years ago

Author Name: Giovanni Manghi (@gioman)


isn't this the same as #25926 ?


qgib commented 5 years ago

Author Name: David Signer (@signedav)


I'm confused that the circles in the #25926 are bigger in the layer panel than in the map. But I guess, that it's on purpose, that the symbols in the layer panel "grow" with the symbols on the map. Same in the legend (used on print layout or server request) but there it's more important to have a maximum size. (of course it could make sense to use it in the layer panel as well, but I'm not sure...)


qgib commented 5 years ago

Author Name: David Signer (@signedav)


Applied in changeset a04f91b840f8bce5cbcbd9d9211fa3aa6fe236c5.