Skip to content
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

Data defined Size legend is wrong when using separated symbols #26929

Closed
qgib opened this issue Jun 2, 2018 · 9 comments · Fixed by #31032
Closed

Data defined Size legend is wrong when using separated symbols #26929

qgib opened this issue Jun 2, 2018 · 9 comments · Fixed by #31032
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Map and Legend Related to map or legend rendering Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented Jun 2, 2018

Author Name: Harrissou Santanna (@DelazJ)
Original Redmine Issue: 19099
Affected QGIS version: 3.4.1
Redmine category:map_legend


The data-defined size symbols feature has a set of unhandled issues i reported months ago (see "list":/projects/qgis/issues?utf8=%E2%9C%93&set_filter=1&f%5B%5D=status_id&op%5Bstatus_id%5D=o&f%5B%5D=description&op%5Bdescription%5D=%7E&v%5Bdescription%5D%5B%5D=size+legend&f%5B%5D=&c%5B%5D=tracker&c%5B%5D=status&c%5B%5D=priority&c%5B%5D=subject&c%5B%5D=assigned_to&c%5B%5D=updated_on&group_by=) but i think this one is a really broken feature that can lead to wrong information on maps.

Apply a scaled size to a point layer
At the bottom of the properties, choose to enable the data defined Size Legend
In the new dialog, choose "separated legend items", do the other settings and apply.
Most of the times, the symbols won't scale in the preview frame nor in the layers panel but the size displayed in the layers panel, hence in the layout legend, is really wrong. Really bigger than what's displayed in the map canvas.
If you switch to the "collapsed size symbols", you'll notice the difference of size and that sizes are coherent now.


@qgib
Copy link
Contributor Author

qgib commented Sep 15, 2018

Author Name: Jürgen Fischer (@jef-n)


Apply a scaled size to a point layer
At the bottom of the properties, choose to enable the data defined Size Legend
In the new dialog, choose "separated legend items", do the other settings and apply.
Most of the times, the symbols won't scale in the preview frame nor in the layers panel but the size displayed in the layers panel, hence in the layout legend, is really wrong. Really bigger than what's displayed in the map canvas.
If you switch to the "collapsed size symbols", you'll notice the difference of size and that sizes are coherent now. to The data-defined size symbols feature has a set of unhandled issues i reported months ago (see "list":/projects/qgis/issues?utf8=%E2%9C%93&set_filter=1&f%5B%5D=status_id&op%5Bstatus_id%5D=o&f%5B%5D=description&op%5Bdescription%5D=%7E&v%5Bdescription%5D%5B%5D=size+legend&f%5B%5D=&c%5B%5D=tracker&c%5B%5D=status&c%5B%5D=priority&c%5B%5D=subject&c%5B%5D=assigned_to&c%5B%5D=updated_on&group_by=) but i think this one is a really broken feature that can lead to wrong information on maps.

Apply a scaled size to a point layer
At the bottom of the properties, choose to enable the data defined Size Legend
In the new dialog, choose "separated legend items", do the other settings and apply.
Most of the times, the symbols won't scale in the preview frame nor in the layers panel but the size displayed in the layers panel, hence in the layout legend, is really wrong. Really bigger than what's displayed in the map canvas.
If you switch to the "collapsed size symbols", you'll notice the difference of size and that sizes are coherent now.

@qgib
Copy link
Contributor Author

qgib commented Oct 12, 2018

Author Name: Alexandre Neto (@SrNetoChan)


I have also noticed this problem. From some testing, seems that the symbols size in the legend is using the actual values on the data, and not the scaled values provided by the expression, for example.

coalesce(scale_exp("capacity", 0, 2717, 1, 10, 0.57), 0).

@qgib
Copy link
Contributor Author

qgib commented Oct 15, 2018

Author Name: Giovanni Manghi (@gioman)


  • version was changed from 3.1(master) to 3.3(master)

@qgib
Copy link
Contributor Author

qgib commented Oct 15, 2018

Author Name: Alexandre Neto (@SrNetoChan)


@gioman, can we consider this a regression. I mean, this used to work just fine before this several options to represent the legend were implemented.

@qgib
Copy link
Contributor Author

qgib commented Oct 15, 2018

Author Name: Giovanni Manghi (@gioman)


  • priority_id was changed from Normal to High
  • regression was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Oct 21, 2018

Author Name: Martina Savarese (Martina Savarese)


Think some of the other issues Harrissou linked are related to this problem. Attached file is a scheme of some test I have made, hope it can be some usefull


  • 13550 was configured as Multivariate analisys.pdf

@qgib
Copy link
Contributor Author

qgib commented Nov 7, 2018

Author Name: Florent Monkerhey (Florent Monkerhey)


I confirm that this problem is still present on QGis 4.3.1

@qgib
Copy link
Contributor Author

qgib commented Nov 7, 2018

Author Name: Giovanni Manghi (@gioman)


  • version was changed from 3.3(master) to 3.4.1

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Map and Legend Related to map or legend rendering Regression Something which used to work, but doesn't anymore labels May 25, 2019
@mrsatori
Copy link

mrsatori commented Jul 8, 2019

Same problem with QGIS 3.8.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Map and Legend Related to map or legend rendering Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants