Bug report #7760

SLD using "size" wrongly for graphics

Added by Jonathan Moules almost 11 years ago. Updated over 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Symbology
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:16659

Description

Per attached. I have a QML file which has things correctly styled.
When I save it as SLD, the SLD gives the SVG a "<size>" of "3". This is wrong.
Per the SLD 1.0 spec:

"The Size element gives the absolute size of the graphic in pixels encoded as a floating-
point number. This element is also used in other contexts than graphic size and pixel
units are still used even for font size."

The SVG is obviously not supposed to be 3 pixels high - its about 10-16.

Using QGIS weekly master 1959182

Desktop.7z (35.4 KB) Jonathan Moules, 2013-05-03 05:25 AM

History

#1 Updated by Giovanni Manghi almost 11 years ago

  • Category set to Symbology

#2 Updated by Giovanni Manghi almost 7 years ago

  • Easy fix? set to No
  • Regression? set to No

#3 Updated by Andrea Aime over 6 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed
  • Description updated (diff)

I believe this issue has been fixed over a year ago as part of rescaling the default QGIS units, mm, to the pixel ones used by default in SLD.
I've just tried exporting the same QML to SLD with 2.18.x and the result is a size 11, which is in the range Jonathan originally indicated as correct and expected.

Also available in: Atom PDF