-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QGIS-Server wrong legend generation if scale parameter is present #18882
Comments
Author Name: aperi2007 - (aperi2007 -) oops, the second was always with scale parameter. 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=frane&style=default&legend_options=fontName:Verdana;fontSize:10 |
Author Name: Giovanni Manghi (@gioman) why blocker? it used to work in previous qgis releases?
|
Author Name: Marco Hugentobler (@mhugent)
|
Author Name: aperi2007 - (aperi2007 -) I confirm it was also on QGIS 2.2 , Infact This is a sample from qgis-server 2.2: QGIS 2.2 without the scale parameter: As yiu can see it break on the last domain. INSTEAD QGIS 2.4 without the scale parameter: As you can see on QGIS 2.4 it lost fully two domains and a third is half. So the QGIS 2.4 situation is worst than QGIS 2.2. guess the Legend readability is an important question for a GIS system. Of course this is only my opinion. But effectively this is not a blocking question because as a workaround, Regards, Andrea. |
Author Name: Marco Hugentobler (@mhugent) What is the style of the layer (rule based renderer?), could you attach a .qml file?
|
Author Name: aperi2007 - (aperi2007 -) Is a categorized rendering. The QML of that image is quite complex because has a dual level rendering for every domains and with a point pattern inside using SVGs. I will try to test and reproduce the bug on a more simple qml. |
Author Name: aperi2007 - (aperi2007 -) Hi. I confirm the problem is also with more simple qml. This as example: The qmls of this legend map is more simple than other and I can share the QML. Regards, Andrea.
|
Author Name: Marco Hugentobler (@mhugent) Ok, I imported the qml to my simple test project (layer does not match, but it does not matter for LegendGraphic). Issuing the example request (only map and layer params replaced), I get the full legend with and without scale parameter. I've committed a fix for a crash about an hour ago. Are you also working with that version (d8a0361) ? Though I cannot see how that fix would have any influence on the size of the generated image... |
Author Name: aperi2007 - (aperi2007 -) ok, Thx Marco, A. |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: aperi2007 - (aperi2007 -)
Original Redmine Issue: 10470
Affected QGIS version: master
Redmine category:qgis_server
Assignee: Marco Hugentobler
Hi,
I'm testing the qgis-server from trunk version.
I see that the legend graphics return from a GetLegendGraphics request if truncate if there the scale parameter.
some samples:
thsi is is with scale parameter:
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=frane&style=default&legend_options=fontName:Verdana;fontSize:10&scale=7927.372584308516
And this is the same without the scale parameter.
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=frane&style=default&legend_options=fontName:Verdana;fontSize:10&scale=7927.372584308516
Regards,
Andrea.
The text was updated successfully, but these errors were encountered: