Bug report #11406
Qgis-server in single-symbol and category renderer don't use the metadata title
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||19686|
In qgis-server (I tested with last dev), when using a categorized renderer and GetLegendGraphics, the returned image doesn't show the LayerName as title of the layer in the legend. Like in this sample:
Or this other for single-symbol rendering:
AFAICT it would be better to use the the metadata title (when filled) in the legend. In fact the layername is often a non-understandable code while the metadata title is a human understandable value.
I asked on ML, whether this is a regression and was asked to opened a ticket.
#2 Updated by aperi2007 - over 5 years ago
I try to test is directly.
But is not so easy.
I dont know how to maintain two completelly distinct versions of qgis-server on the same machine.
So the only solution is remove the dev and compile the 2.4
This require some time to do.
I hope to do this early.
#6 Updated by aperi2007 - over 5 years ago
I add also the two images for the same requests on the same datasets and same project qgis using a qgis 26 server.
The second image show clearly that in the title of layer , qgis 2.6 server , is using the layer_name :
instead of the title ad available from Metatada->Title ("Title of layer")
Same proble when using the Categorize rendering.
I dont test for rule-rendering but I guess more probably the problem is also in it.