Exercise 2: Basic geodata processing#

Characteristics of the exercise#

Aim of this exercise:

The objective of this exercise is to get a feeling for geodata and start working with it. Understand the attribute table, sort it, select manually and export the selection, as well as load a basemap.

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

  • Navigating the QGIS-interface

  • Sorting and manipulating datasets through the attribute table

  • selecting the correct projections

  • performing basic and advanced spatial analyses

Estimated time demand for the exercise:

  • The exercise takes around 1 hour to complete, depending on the number of participants and their familiarity with computer systems.

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.

Exercise#

Available Data#

Download all datasets here, save the folder on your computer and unzip the file.

The zip folder includes:

Dataset name

Original title

Publisher

Downloaded from

nigeria_populated_places.shp

Nigeria Populated Places (OpenStreetMap Export)

Humanitarian OpenStreetMap Team (HOT)

HDX

nigeria_boundaries.geojson

The shapefile for populated places contains point data on human settlements in Nigeria, including cities, villages and others. The GeoJSON file for the boundaries of Nigeria contains information on the administrative boundaries at levels 2 and 4 with level 2 representing the whole country and level 4 being the states.

Note

GeoJSON does not support multiple layers, so the polygons for the country boundaries and the states are merged into one layer where the different polygons overlap.

Tasks#

  1. Load both files into QGIS.

  2. Add the OpenStreetMap basemap via the browser panel –> XYZ Tiles.

  3. Familiarise yourself with the data by opening the attribute table. Determine the location of the data and the type of information it contains. Understand the different columns and the data they contain in your attribute table and try to get an overview of which columns will be relevant and important for your analysis.

  4. In the nigeria_populated_places layer, open the attribute table, select the feature for Zuyel, and zoom to the selected point.

Hint

The place starts with a Z so it might help to sort the name column in descending order.

  1. Export Zuyel as its own GeoPackage. Check the projection and choose an appropriate CRS. Name it zuyel.gpkg.

Note

As no calculations are involved, e.g. area, WGS84 (EPSG:4326) is a good choice.

  1. Repeat the steps for the layer nigeria_boundaries.geojson and only export the district in which Zuyel is located. Name it accordingly. To find the district use the Identify Features tool and then manually select the correct district in the attribute table.

  1. Remove all the initial layers and then open the attribute table for each of your new layers and check that each layer only contains one feature.

  2. Save your project.

Result#

../../_images/en_result_geodata_processing_exercise.png

This is how your output could look like in the end#