Bug report #10546

When symbol units is in map units then the symbol in composer legend has a padding around it

Added by Giovanni Manghi over 5 years ago. Updated about 5 years ago.

Status:Closed
Priority:Normal
Assignee:Nyall Dawson
Category:Map Composer/Printing
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:duplicate
Crashes QGIS or corrupts data:No Copied to github as #:18953

Description

The attached image may explain better what it is going on:

*) the svg symbols and the yellow symbols are defined in map units, the more the units the more a padding is used around the symbol in the legend

*) the same layer used is used with a symbology in millimiters (color circles) and no such padding is applied.

It is not a regression but hopefully is an easy fix in time for 2.4.

49.png (170 KB) Giovanni Manghi, 2014-06-11 09:43 AM

42.png (256 KB) Giovanni Manghi, 2014-06-22 03:05 AM

Couverture.zip (903 KB) Gilles Turgeon, 2014-08-07 08:45 AM

History

#1 Updated by Giovanni Manghi over 5 years ago

#2 Updated by Giovanni Manghi over 5 years ago

  • Target version set to Version 2.4

#3 Updated by Nyall Dawson over 5 years ago

Unless I'm missing something, aren't symbols using map units unusable in legend at the moment? I just tried for the first time it seems symbols using map units are drawn at some seemingly random size.

#4 Updated by Giovanni Manghi over 5 years ago

Nyall Dawson wrote:

Unless I'm missing something, aren't symbols using map units unusable in legend at the moment? I just tried for the first time it seems symbols using map units are drawn at some seemingly random size.

it is the "data defined" properties that isn't working.

You can define the size of point symbols in map units and get legends (in the composer) with a symbol of the proper/needed size. Problem is that in the composer the symbol is "padded". In the attached image you see that there are symbols (in map units) that are not aligned to left. The padding increases with the value of map units.

#5 Updated by Nyall Dawson over 5 years ago

I'm not referring to data defined sizes - just a simple marker with size in map units. In the legend the symbol isn't drawn to scale for me. Can you test this and confirm?

#6 Updated by Giovanni Manghi over 5 years ago

Nyall Dawson wrote:

I'm not referring to data defined sizes - just a simple marker with size in map units. In the legend the symbol isn't drawn to scale for me. Can you test this and confirm?

Hi Nyall,
the size of symbols see the attached screenshot, both layers (same source) are 20 map units (meters), they seems ok to me (other than the padding).

#7 Updated by Nyall Dawson over 5 years ago

Try changing the map scale though - does the symbol in the legend change size too?

#8 Updated by Giovanni Manghi over 5 years ago

Nyall Dawson wrote:

Try changing the map scale though - does the symbol in the legend change size too?

Hi Nyall,

no, it does not change.

#9 Updated by Jürgen Fischer over 5 years ago

  • Target version changed from Version 2.4 to Future Release - High Priority

#10 Updated by Gilles Turgeon over 5 years ago

I am not sure taht this is the same bugs, but the other (#11006) is not the same so I post this file here to.

Composer dont seem to take in consideration the scale ou the unit of the map when drawing border of polygon ou line in the legend when the layer use map units.

#11 Updated by Martin Dobias about 5 years ago

  • Resolution set to duplicate
  • Status changed from Open to Closed

This is the same bug as #11006

Also available in: Atom PDF