Ticket #2610 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Printing with SVG symbols: QGIS ignores totally the size of SVG symbol

Reported by: trapanator Owned by: nobody
Priority: major: does not work as expected Milestone: Version 1.5.0
Component: Printing Version: Trunk
Keywords: Cc:
Platform Version: Platform: All
Must Fix for Release: No Awaiting user input: no

Description

Steps to reproduce:

  1. load a point layer;
  2. assign a SVG symbol to it with a size defined;
  3. try to print to PDF

result: QGIS ignores totally the defined size

Attachments

print_composer_screenshot.png Download (82.0 KB) - added by zanollim 3 years ago.
screenshot of the QGIS "New Print Composer"
export_as_image.png Download (54.0 KB) - added by zanollim 3 years ago.

Change History

  Changed 3 years ago by trapanator

change the 2. step with this:

  1. assign a SVG symbol to it with a size based by map-unit

Changed 3 years ago by zanollim

screenshot of the QGIS "New Print Composer"

Changed 3 years ago by zanollim

  Changed 3 years ago by zanollim

As you can see in the attachments only the red labels (numbers) are correctly scaled. The other symbols and the label of the line are wrong.

  Changed 3 years ago by wildintellect

  • priority changed from critical: causes crash or data corruption to major: does not work as expected
  • must_fix changed from Yes to No

I agree this should be tackled but I don't think this should hold up a new release if not solved.

  Changed 3 years ago by wonder

Umm, I'm unable to replicate.

Is that new symbology or old symbology or both?

Does that happen only with SVG symbols with size in map units or also in other combinations? (simple marker / font marker, millimeters)

Does the problem exists in PDF export, in raster export - or in both? It seems that trapanator refers to PDF export, while zanollim refers to raster export.

Martin

follow-up: ↓ 6   Changed 3 years ago by zanollim

Martin,

Because I need rotation of the symbols by a layer attribute, currently I am using the old symbology.

Yes, the problem occurs:
with SVG symbols
with size in map units (and not in pixel)
in PDF export and raster export

in reply to: ↑ 5 ; follow-up: ↓ 7   Changed 3 years ago by lutra

Because I need rotation of the symbols by a layer attribute, currently I am using the old symbology.

this is already available in new symbology

in reply to: ↑ 6   Changed 3 years ago by trapanator

Replying to lutra:

Because I need rotation of the symbols by a layer attribute, currently I am using the old symbology.

this is already available in new symbology

yes, but only for unique value symbology. For categorized and graduated values, the option doesn't exists.

  Changed 3 years ago by mhugent

  • status changed from new to closed
  • resolution set to fixed

Fixed for old symbology in r13687

Note: See TracTickets for help on using tickets.