Opened 14 years ago

Closed 14 years ago

#2610 closed bug (fixed)

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:
Must Fix for Release: No Platform: All
Platform Version: 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 (2)

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

Download all attachments as: .zip

Change History (10)

comment:1 by trapanator, 14 years ago

change the 2. step with this:

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

by zanollim, 14 years ago

screenshot of the QGIS "New Print Composer"

by zanollim, 14 years ago

Attachment: export_as_image.png added

comment:2 by zanollim, 14 years ago

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.

comment:3 by wildintellect, 14 years ago

Must Fix for Release: YesNo
Priority: critical: causes crash or data corruptionmajor: does not work as expected

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

comment:4 by wonder, 14 years ago

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

comment:5 by zanollim, 14 years ago

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 ; comment:6 by lutra, 14 years ago

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 comment:7 by trapanator, 14 years ago

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.

comment:8 by mhugent, 14 years ago

Resolution: fixed
Status: newclosed

Fixed for old symbology in r13687

Note: See TracTickets for help on using tickets.