Bug report #10590

qgis-server - wrong legend when mapunit and categorized

Added by aperi2007 - over 10 years ago. Updated about 10 years ago.

Status:Closed
Priority:High
Assignee:-
Category:QGIS Server
Affected QGIS version:2.2.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:18995

Description

Hi,

I set a legend using categorized rendering, and map-unit.
I set a huge dimension 200px for map-unit to see it visible at a low scale.

The legend is well created on qgis desktop, instead in qgis-server is really wrong.

This is the result on qgis-server:

http://www502.regione.toscana.it/geoscopio_qg/cgi-bin/qgis_mapserv?map=continuum_geologico_rt.qgs&SERVICE=WMS&request=GetLegendGraphic&version=1.1.1&format=image/png&sld_version=1.1.0&width=23&height=15&layer=frane100k&style=default&legend_options=fontName:Verdana;fontSize:10

I attach also the qml used for this result.
The qgis is from the master, 2 day old.

sample.zip - the qml used in qgis-server (2.23 KB) aperi2007 -, 2014-06-14 01:16 PM

History

#1 Updated by aperi2007 - over 10 years ago

forgot the qml.

#2 Updated by Martin Dobias about 10 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

I believe this is now fixed in master after reworking of qgis server legend with new QgsLegendRenderer. Please reopen if not.

Also available in: Atom PDF