Using Custom markers in QGIS 2.8

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.

Capture-2

 

The Company logo is designed in Inkscape and then save as –SVG file. The SVG file is named Companylogo.svg.

Capture-1

 

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.

Capture-4

 

Right Click on the layer and go down to Properties OR Double Click the layer.

Capture-3

 

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 .

Capture-5

 

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.

Capture-6

 

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.

Capture-9

 

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.

Capture-14

 

Go to MMQGIS plugin > Modify > Sort

Capture-15

 

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.

Capture-16

 

The new shape file now has the company logo customized symbols as well as the logos are also lying in the proper geographical arrangement.

Capture-19

 

Thank you for following the blog. Send your feedback and comment.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s