QGIS 3 – How to Load SVG Symbols

importqgis-3svg

For the record: QGIS 3.2 and Mac OS 10.13.5

I am trying to load the symbols from https://www.mapbox.com/maki-icons/

I have tried creating /Users/rful011/Library/Application Support/QGIS/QGIS3/profiles/default/svg (Which is the default path for sgv files that I copied from Preferences->Option->System) and copying the .svg files into the directory but I still don't see any more symbols in the style dialogue. (edit: because I was looking in the wrong place).

Where should the files appear in the style dialogue?

I then tried "open library" button -> import/export -> import … and navigated my way to the directory where the svg files are:

enter image description here

As one can see from the screenshot the files are not selectable in the finder window.

After a bit more research (reading the qgis3 symbol library doc) I tried renaming some of the svg files to .xml and they then became selectable in the finder but when I tried importing them I got a dialogue box with the message "An error occurred during import: Incorrect root tag in style: svg".

I am starting to conclude that QGIS is not expecting one to import .svg files this way. ( edit: this is definitely not the way to do it. THis is for simple markers)

Best Answer

The style manager contains symbol that are more complex than "simple" svg. For instance, you can have an svg whose color can be customized, and a symbol that uses this svg and sets the color to green and the size to 12.

The symbols are saved in a SQLlite DB, while the svg are files on disk.

To access the svg, you would need to declare the library path in Settings ‣ Options ‣ System / svg paths. The SVG are then available for styling under marker / svg marker or using the + icon in the style manager. After choosing one and customizing it, you can click save that will move it to the style manager.

enter image description here