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.59k stars 3k forks source link

Arrows are too long in the layer list legend #27182

Open qgib opened 6 years ago

qgib commented 6 years ago

Author Name: Carolyn Krause (Carolyn Krause) Original Redmine Issue: 19354 Affected QGIS version: 3.0.0 Redmine category:map_legend


Text copied from question on GIS Stackexchange: https://gis.stackexchange.com/q/207990/81764 The issue was first described as occurring in QGIS 2.14, but the original post was updated to say that it persists in QGIS 3.0

In QGIS 2.14.5 LTR (and recently in QGIS 3.0) I've set up a beautiful map design with a graduated renderer and vector field markers for each value range (arrow length is directly proportional to stream velocity, which ranges from 0.001 -~5m/s).

This worked great, but I wonder if I missed a setting to shorten the arrows in the legend. With a 'normal' width layer window, the class values cannot be seen: Units: millimeter (image showing that arrow symbol previews displayed in layers panel are far too long - apparently at least 6 inches) My first guess was, that it has sth. to do with switching arrow length, line width units from millimeter to map units, but this doesn't affect the legend: Units: map units (image showing that the issue persists when units are switched from mm to map units) UPDATE Issue still persists in QGIS 3.0. I created a screencast to visualize this: https://youtu.be/oxJ3tGXFB18 In properties / symbology the symbols render correctly: (image showing that arrow symbols are rendered as only the triangular arrow heads in the properties/symbology window) Note that the layer list displays the markers correctly, when duplicating the layer or applying changes to the style as long as layers panel width does not change.


qgib commented 6 years ago

Author Name: Richard Duivenvoorde (@rduivenvoorde)


Hi Carolyn,

I think it would be very helpful if you added a small dataset + QGIS3 project file with the styles used in screenies en movies.

That way it can be reproduced and debugged.

Is that possible?

Regards,

Richard Duivenvoorde

qgib commented 6 years ago

Author Name: Carolyn Krause (Carolyn Krause)


Hi Richard,

Thank you for your interest in this issue. I don't have the data you requested, but I passed your request along to the original poster of this issue on GIS Stackexchange.

Sincerely,

Carolyn Krause

qgib commented 6 years ago

Author Name: Jochen Schwarze (Jochen Schwarze)


Hi all, @Carolyn: thank you for raising this issue! See the attached zipfile for a sample dataset, QGIS project (created with 3.2) and a style file for convenience. Best regards, Jochen Schwarze



roya0045 commented 4 years ago

@nyalldawson do you feel like your work on patches should solve this issue as a workaround?

nyalldawson commented 4 years ago

@roya0045 no it's a different issue - this one relates to the layer tree panel, but patches are only used in layouts

roya0045 commented 4 years ago

@nyalldawson well ultimately the bad symbols are also in the legend(where the symbol tend to matter more), but I can see the nuance. Thanks!

Pedro-Murteira commented 2 years ago

This issue is still valid on QGIS 3.16.15 and 3.22.2.