Geodata Classification Exercise 2: Overview map of the prevalence of food insecurity in Sierra Leone#
Aim of the exercise#
This exercise aims to create an overview map of the distribition of food insecurity in Sierra Leone at district level. To do this, we will visualize both the distribution of food insecurity and key infrastructure elements such as hospitals, airports and roads.
Relevant Wiki Articles#
Data#
Download all datasets here and save the folder on your computer. Unzip the .zip file. The unzipped folder is structured according to the recommended folder structure for QGIS projects. Under “data > input” you find the following files:
Sierra_leone_foodinsecurity_2015.shp
(Polygon)Sierra_leone_borders.gpkg
(MultiLineString) GeoPackageSierra_Leone_national_borders (Lines)
Sierra_Leone_provinces (Lines)
Sierra_leone_infrastructure.gpkg
(MultiLineString/Points) GeoPackageSierra_Leone_health (Points)
Sierra_Leone_airports (Points)
Sierra_Leone_roads (Lines)
Tasks#
Our goal is to produce an overview of the 2015 food insecurity situation in Sierra Leone together with the display of main infrastructure elements. To achieve this, we will visualize the classification of total food insecurity together with airports, hospitals and primary roads in a map.
Open QGIS and create a new project by clicking on
Project
->New
Once the project is created save the project in the “project” folder of the “Ex_Sierra_Leone_foodinsecurity”. To do that click on
Project
->Save as
and navigate to the folder. Name the project “Sierra_Leone_foodinsecurity”.Import the GeoPackages
Sierra_leone_borders.gpkg
andSierra_leone_infrastructure.gpkg
aswell as the shapefileSierra_leone_foodinsecurity_2015.shp
into your project via drag and drop (Wiki Video). Or by clickingLayer
->Add Layer
->Add Vector Layer
: Click on the three dots and navigate to “Sierra_leone_borders.gpkg” in your file Browser. Select the file and clickOpen
. Back in QGIS clickAdd
(Wiki Video).
Attention
GeoPackages can contain multiple files and even whole QGIS projects. When you load such a file in QGIS a window will appear in which you have to select the files you want to load in your QGIS project.
First have a look at the airport layer(
Sierra_Leone_airports
). Open the attribute table and sort the data. Delete empty columns. See the Wiki entry on the Attribute table for further information.Add a base map to your map view using the Plugin
QuickMapServices
by clicking on the symbol in you projct toolbar. Search for “Bing Maps Satellite Imagery” in the QMS panel and add the base map layer via double click. For an optimized view adjust the opacity of your layers to optimize the use of the base map.Using the attribute table of the airports layer zoom to Tongo Airport by right-clicking on the row in the attribute table and selecting
Zoom to Feature
(Wiki Video). Check the Basemap. Do you think the airstrip is still operational? The answer is no, according to Wikipedia. Delete Tongo Airport in the Attribute table. Delete Kabala airport too, since it is also not operational anymore.Now we want to check out the airports of the cities of Bo and Kenema. Are these airstrips in better shape? If yes, add them to the airport layer. To find these cities on your map interface use the QGIS Plugin
OSM Place Search
. To add the pluginOSM Place Search
, click onPlugins
->Manage and Install Plugins…
->All
and search for “OSM Place Search”. Once you have found it click on it and selectInstall Plugin
. You can open theOSM Place Search Panel
like every other panel by clicking onView
->Panels
and checkingOSM Place Search Panel
(Wiki Video).In the panel, you can search for places on the OpenStreetMap by typing the name in the search bar. Often it makes sense to add additional information like the name of the country. Try for example “Bo, Sierra Leone”.
Add the airports of Bo and Kenema as points to the layer Sierra_Leone_airports
. Find help on the addition of features to a point layer here.
Optional: In the attribute table, create a new column
Runway_length
and add the length of the runways of Bo and Kenema by measuring them approximately with the measuring tool .Now we want to create a intutive visualization of the differences in food insecurity. To achieve this we use the “Graduated Classification” visualization option for the layer
Sierra_leone_foodinsecurity_2015
by displaying the polygons according to classes created based on the “Total_FI” column in the attribute table.Right-click on the layer
Sierra_leone_foodinsecurity_2015.shp
in theLayer Panel
->Properties
. A new window will open up with a vertical tab section on the left. Navigate to theSymbology
tab.In the topmost drobdown menu choose
Graduated
. UnderValue
select “Total_FI”.Further down the window click on
Classify
. You now should see multiple classes based on the value range of the “TotalFI” column represented with different colours. You can adjust the colours by picking different colour palettes in the drop down menuColor ramp
. Also, you can modify the value distribution of the classes by selecting different classification modes (Wiki) in theMode
dropdown menu.Play around with these options to achieve a visualisation that suits the display of the values. Once you are done, click
Apply
andOK
to close the symbology window.
To give the hospitals and airports a more distinctive visualization, open the
Symbology
tab again for the respective layers and choose “Topology” in the dropdown menu above the bottom panel top panel. Search for the airport/hospital symbol and select it by clicking on it. Again, apply your changes by clickingApply
andOK
.
As a last visualisation step open the
Symbology
tabSierra_Leone_roads (Lines)
and like in step 9 open the top dropdown menu. Now instead ofGraduated
choose Categorized Classification and select “highway” in theValue
menu. ClickClassify
to get a classification with individual colours for all unique values of the “highway” column. In the squares next to the classes, deselect all classes except for “primary”. You can change the colour of the classes by selecting them via click and adjusting the colour in the drop “Symbol” dropdown menu near the top of the window.
Turn all the layers you loaded into your project to visible and arrange them in an order that is suitable for a good visualization of the food insecurity as well as the infrastructure elements. Choose a basemap that you think is suitable. Your final result could look like this:
The layer order here from top to bottom is:
Sierra_Leone_health
Sierra_Leone_airports
Sierra_Leone_roads
Sierra_Leone_national_borders
Sierra_leone_foodinsecurity_2015
Basemap:
OpenStreetMap