Using arrow symbols

Line features convey location, but sometimes you also need to convey a direction along a line. QGIS recently added a symbol that does just that by turning lines into arrows. In this recipe, we'll symbolize some line features showing historical human migration routes around the world. This data requires directional arrows for us to understand it.

Getting ready

We will use two shapefiles in this example. One is a world boundaries (countries) shapefile and the other is a route shapefile. You can download the countries shapefile here:

https://github.com/GeospatialPython/Learn/raw/master/countries.zip

You can download the routes shapefile here:

https://github.com/GeospatialPython/Learn/raw/master/human_migration_routes.zip

Download ...

Get QGIS Python Programming Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.