GI users can apply custom symbols and icons to improve the cartographic visualization of the maps. In QGIS, custom symbols and icons can be added to the styles and used in the production of maps.
This tutorial will take readers through a simple introduction of how to add and use custom svg markers in QGIS 2.8.1.
Click this link to download this sample of a SVG file for practice use- https://www.dropbox.com/s/x5r3001zm5noy12/CompanyLogo.svg?dl=0
(Kindly attribute creation of this svg marker to-www.mapsnigeriainitiative.wordpress.com)
SVG- Scalar Vector Graphics are picture images that have been vectorized into a dynamic form. This format is very popular with graphic artists and designers that use web based symbols. In addition, png and gif formats are also easily adaptable to the web. In this demonstration, we have a Point map of different company offices and would like to use the Company logo as the symbol on the location map.
The dataset to be styled is a Point map of different office locations. The basic symbols here are known as simple markers.
The Company logo is designed in Inkscape and then save as –SVG file. The SVG file is named Companylogo.svg.
Move the SVG file –Blackrace.svg that was created to the svg folder in the QGIS directory. Save in the directory C > Program files > QGIS wein > apps >qgis > svg > ‘group’. We are saving the file into the folder- food.
Right Click on the layer and go down to Properties OR Double Click the layer.
Click on Style and then click on the Simple marker (red box 1). Click on the drop down button to the right of the screenshot (red box 2) and scroll down to select SVG Marker .
In the next window, go down to the SVG Groups window and click on food where the Blackrace.svg file was stored earlier. Click on the symbol to select and OK to finish. There are options to adjust the size and angle of the marker in this window. We increase the size of the marker to 18.
Next we have to adjust the symbols so that they would take on their proper spatial positions.
Right Click on the layer and go to Open Attribute Table.
Follow these steps. ( I ) Add a new attribute field and name it Y. (ii) Use the expression row in the vertical red box to populate the attribute field. The expression $y will populate the field with the Y coordinate values for the different points.
Go to MMQGIS plugin > Modify > Sort
The Sort Attributes window will open. Select the input parameters and put the Direction option as Descending. A similar layer with a different name will be created in the Output Shapefile option. This new layer will replace the earlier one on the Layers window.
The new shape file now has the company logo customized symbols as well as the logos are also lying in the proper geographical arrangement.
Thank you for following the blog. Send your feedback and comment.