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) GeoPackage

    • Sierra_Leone_national_borders (Lines)

    • Sierra_Leone_provinces (Lines)

  • Sierra_leone_infrastructure.gpkg (MultiLineString/Points) GeoPackage

    • Sierra_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.

  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 and Sierra_leone_infrastructure.gpkg aswell 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 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.

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

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

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

Fig. 68 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 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 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 drobdown 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 visualisation that suits the display of the values. Once you are done, click Apply and OK to close the symbology window.

../../_images/mod3_classification_ex_Graduatedclassification.png

Fig. 69 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

Fig. 70 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 selecting them via click and adjusting the colour in the drop “Symbol” dropdown menu near the top of the window.

../../_images/mod3_classification_ex_Categorizedclassification.png

Fig. 71 Categorized highways Sierra Leone.#

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

../../_images/mod3_classification_ex_Result.png

Fig. 72 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

Fig. 73 Layer order.#