I am wondering if there is a way to scale SVG files I have stored as blob in a Spatialite database according to the current zoom level in QGIS. My hope is to have the SVG icon resize itself when the map is zoomed in/out. I understand there is a size option in the data defined option, but it does not seem to provide a dynamic sizing option. I am open to options.
1 Answer
If you have an SVG Marker symbol layer, you can set the size units to map units. That way the icon will always have the same real-world size.
Note that the size in the data-defined properties is not radius or diameter but area - which I find weird and might be considered a bug.
-
Thank you @Underdark. This does what I want, however, I am working at a scale for North America, and there are sizing limits in QGIS. You can only use up to 5 digits, so the largest value I can use is 99999 map units, which is much too small for displaying a word cloud at a continent scale using the EPSG code of 3978. I suppose I may need to choose a different projection. Can you suggest another option? Commented Jan 11, 2015 at 4:39
-
Does the 5 digit limit also apply to the data-defined size? Should definitely be reported as a bug. The only bigger CRS units would be degrees as far as I can think of. Commented Jan 11, 2015 at 10:00
-
I am not sure about the data driven size. I thought degrees would be the only other option, unfortunately those projections are not visually pleasing. Commented Jan 11, 2015 at 15:53