Exercise 4: Adding Context
Let's assume that you are happy with your styled data, and with the query you have run, so you want to make a map for printing.
However before we do that, we're going to add some more data so that you can produce a map with some context, rather than just a collection of points on a page.
We'll do this by loading two additional sets of data:
- A set of polygons representing the provinces in DRC
- A background layer using OpenStreetMap to show settlements, roads etc.
To do this:
- Download and save the file containing the DRC provinces from https://github.com/antonys/antonys.github.io/blob/master/downloads/drc_provinces.zip - as before, right-click on
Save as. This is a zip file, so you will need to unzip it first.
- Click the
Add Vector Layer button in the toolbar and navigate to the file you have downloaded, then add it to your map.
- You'll see that the layer you have been working on until now has disappeared... this is because the new layer has gone straight to the top of the list, so it's obscuring everything else
- To fix this, drag and drop the layers so that your ActivityInfo layer is at the top
- Configure some styling to the new Provinces layer, to replace the default which QGIS has applied (don't worry to much about what it looks like for now)
- When you have done this (and assuming you have the OpenLayers plugin installed, and an Internet connection), go to
Web > OpenLayers plugin > OpenStreetMap > OpenStreetMap
- This may take a little time to load, but when it's done you will have a ready-made background map.
- Again, drag and drop the layers to get the right ones at the top, and try some of the other OpenLayers backgrounds to see how they look