Geodata Classification Exercise 2: Map of food insecurity in Sierra Leone#

Characteristics of the exercise#

Aim of the exercise

This exercise aims to create an overview map of the distribution of food insecurity in Sierra Leone at district level. To do this, we will visualise both the distribution of food insecurity and key infrastructure elements such as hospitals, airports and roads.

Type of trainings exercise:

  • This exercise can be used in online and presence training.

  • It can be done as a follow-along exercise or individually as a self-study.

These skills are relevant for

  • QGIS Essentials

  • The skills tested in this exercise are necessary for all GIS-users.

  • Classifying geographic data

Estimated time demand for the exercise.

  • The exercise takes around 1 hour to complete, depending on the number of participants and trainers.

Instructions for the trainers#

Trainers Corner

Prepare the training

  • Take the time to familiarise yourself with the exercise and the provided material.

  • Prepare a white-board. It can be either a physical whiteboard, a flip-chart, or a digital whiteboard (e.g. Miro board) where the participants can add their findings and questions.

  • Before starting the exercise, make sure everybody has installed QGIS and has downloaded and unzipped the data folder.

  • Check out How to do trainings? for some general tips on training conduction

Conduct the training

Introduction:

  • Introduce the idea and aim of the exercise.

  • Provide the download link and make sure everybody has unzipped the folder before beginning the tasks.

Follow-along:

  • Show and explain each step yourself at least twice and slow enough so everybody can see what you are doing, and follow along in their own QGIS-project.

  • Make sure that everybody is following along and doing the steps themselves by periodically asking if anybody needs help or if everybody is still following.

  • Be open and patient to every question or problem that might come up. Your participants are essentially multitasking by paying attention to your instructions and orienting themselves in their own QGIS-project.

Wrap up:

  • Leave time for any issues or questions concerning the tasks at the end of the exercise.

  • Leave some time for open questions.

Available 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 will find the following files:

  • Sierra_leone_foodinsecurity_2015.shp (Polygon) Shapefile

  • Sierra_leone_borders.gpkg (MultiLineString) GeoPackage

    • Sierra_Leone_national_borders (Lines)

    • Sierra_Leone_provinces (Lines)

  • Sierra_leone_roads.gpd (Lines) GeoPackage

  • Sierra_leone_healthsites.gpkg (Points) Geopackage

  • sl_airports.gpkg (Points) GeoPackage

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 visualise total food insecurity classifications alongside airports, hospitals, and primary roads in a map.

  1. Open QGIS and create a new project by clicking on Project -> New

  2. 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”.

  3. Import the GeoPackages Sierra_leone_borders.gpkg, Sierra_leone_airports, Sierra_leone_healthsites and Sierra_leone_roads.gpkg as well as the shapefile Sierra_leone_foodinsecurity_2015.shp into your project via drag and drop (Wiki Video). Or by clicking Layer-> 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 click Open. Back in QGIS click Add (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.

  1. First, let’s add a basemap to your map canvas using the plugin QuickMapServices by clicking on the symbol in you project toolbar. Search for “Bing Maps Satellite Imagery” in the QMS panel and add the base map layer via double click. For an optimised view adjust the opacity of your layers to optimise the use of the base map.

  2. 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.

  3. 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 plugin OSM Place Search, click on Plugins -> Manage and Install Plugins… -> All and search for “OSM Place Search”. Once you have found it click on it and select Install Plugin. You can open the OSM Place Search Panel like every other panel by clicking on View -> Panels and checking OSM 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”.

../../_images/mod3_classification_ex_OSMsearch.png

OSM place search.#

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.

  1. 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 .

  2. Now we want to create a intuitive visualisation 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 the Layer Panel -> Properties. A new window will open up with a vertical tab section on the left. Navigate to the Symbology tab.

    • In the topmost dropdown menu choose Graduated. Under Value 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 menu Color ramp. Also, you can modify the value distribution of the classes by selecting different classification modes (Wiki) in the Mode dropdown menu.

    • Play around with these options to achieve a colour scheme that suits the data. Once you are done, click Apply and OK to close the symbology window.

../../_images/mod3_classification_ex_Graduatedclassification.png

Sierra Leone food insecurity classification.#

  1. 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 clicking Apply and OK.

../../_images/mod3_classification_ex_Topology.png

Symbol for hospital.#

  1. As a last visualisation step open the Symbology tab Sierra_Leone_roads (Lines) and like in step 9 open the top dropdown menu. Now instead of Graduated choose Categorized Classification and select “highway” in the Value menu. Click Classify 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 manually clicking and adjusting the colour in the drop “Symbol” dropdown menu near the top of the window.

../../_images/mod3_classification_ex_Categorizedclassification.png

Categorized highways Sierra Leone.#

  1. Set 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:

../../_images/mod3_classification_ex_Result.png

Example for the result of this exercise.#

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

../../_images/mod3_classification_ex_LayerOrder.png

Layer order.#