Bug report #8978
loading an sld without uom attribute should set ouptput units to mapunits
|Affected QGIS version:||2.0.1||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||17639|
When loading an sld where in the sizes no uom attribute is given, it can be assumed that the output units are "MapUnits". However the output units are by default mm, so this should be adjusted manually.
Since it the output setting can be inferred from the sld, imho it should be automatically set.
[bugfix] backport from 3.0 Fix unit of sizes when reading a SLD file (fixes #8978)
#5 Updated by Pierre-Yves Abalain about 5 years ago
I support your request, because I'm facing this problem when developping a program to export styles from ArcGIS to QGis, passing by a SLD file.
QGis should accept pixel as default unit when loading a SLD.
- offer the possibility to have a global parameter in QGis to set default units for everything : pixel/millimeter/map units
- treat unit as pixel by default when loading SLD
- when loading a SLD, propose the user to choose the unit
#6 Updated by Koen DeBaets almost 5 years ago
At AIV , the Flemish Agency of (Geographic) Information, we would like to provide our geospatial data with
an SLD as (software independent) symbolisation file. This is a request from many of our users (government institutions, businesses and citizens)
But we face the same problem: all measures in our SLD's use the default unit 'pixel', but when loading the SLD in QGis (2.16), the assigned units are 'mm'. I would expect QGis to accept pixel as default unit.