GPS Essentials & QGIS

Learning Outcomes

Download data from GPS Essentials

Import data in QGIS

Query Data in QGIS

Prevalence rate Mapping

Lets do this!

😍

Download data from GPS Essentials

1. From the main menu, select Waypoints. It will show you the list of waypoints you recorded

2. To export all the waypoints, select Export from the Options button. If you want to export a single waypoint, select the desired waypoint, click the Options button and select Export.

3. The dropdown box will let you select what type of file you want your data to be exported. For now, click KML (Google Earth)

Download data from GPS Essentials

Step 1 through 3

Step 4 & 5

4. Select the SD card icon to manually select your desired location of the file.

5. Click this icon to Save.

Import data in QGIS

There are many different types of data sources you can import into QGIS

But, commonly used data types including shapefiles (.shp), csv files, & raster files

QGIS supported formats

Import a shapefile

1. Click on the Layer menu, mouse-over Add Layer and click Add Vector Layer... You can also click the Add Vector Layer button in the left hand column of QGIS.

Import a shapefile

2. If the shapefiles you have are on your local machine, all you need to do is click on the Browse button and navigate to the folder where your shapefiles are

Import a shapefile

3. After you find the folder with your shapefiles, you will need to be sure the data type is selected to shapefile. Click on the drop-down box next to file name and select ESRI Shapefiles (.shp *SHP). You have many different vector data types to choose from if you have another data type. Click Open.

Import a CSV file

Once the csv files are formatted properly, you can add them into QGIS

1. Click on the Layer menu, mouse-over Add Layer and click on Add Delimited Text Layer... or click on the Add Delimited Text Layer icon in the left column of QGIS.

Import a CSV file

2. The next GUI will have many different options you may need to change depending on the specific data set you have. Here is an outline of the most common fields needed to be changed.

Import a CSV file

3. If you have a field with x, y coordinates, you may be prompted to define the coordinate reference system (CRS) of your x, y coordinates. For Kiambu County we can only have EPSG:4326 - WGS 84 or EPSG:21037 - Arc 1960/UTM zone 37S or EPSG:32737 - WGS 84/UTM zone 37S. More info - Coordinate Systems Worldwide

Import a Raster file

If you have a georeferenced image or aerial imagery, you will need to import them using the Add Raster Layer button.

1. Click on the Layer menu, mouse-over Add Layer and click on Add Raster Layer... or click on the Add Raster Layer icon in the left column of QGIS.

Import a Raster file

2. You will automatically be directed to your folders. Go to the folder where your rasters are stored and change the raster data type if needed by click on the drop-down menu next to the file name. Click Open.

Querying Data in QGIS

Sometimes, data are already available, organized, and stored in a database

To understand what is contained in your database, a procedure known as querying is performed

A query is an inquiry into the database about any kind of information contained within that particular database, allowing you to extract variables of interest

Querying also allows you to

  • Combine datasets into a bigger dataset
  • Modify data - e.g., update or delete
  • Aggregate data using some inbuilt functions - e.g., count
  • Rearrange data for better viewing

Querying Data in QGIS

Before you begin querying your data, you should

  • Know your data well (what variables are collected, how many records exist, what are the allowed values for each variable, etc.)
  • Understand what the coded values mean and how can they be decoded - e.g., is 1 equal to 'yes?'
  • Understand the relationship between variables - e.g., last menstrual period (LMP) and gender

Querying Data in QGIS

Overview of how to query in QGIS

Work with operators

Load .csv data to work on. Lets begin...

Querying Data in QGIS

Spatial query

Prevalence or Prevalence Mapping

Prevalence is expressed as a percentage (5%, or 5 people out of 100), or as the number of cases per 10,000 or 100,000 people - weighting, during specified time period

A measure of a condition in a population at a given point in time. How is prevalence estimated?

$$ {Prevalence =\frac{Number-of-existing-cases-with-condition}{Total-number-of-people-at-risk}} $$

Prevalence reporting depends on how common the characteristic is in the population

  • Point prevalence - specific time
  • Period prevalence - specific time with a period
  • Lifetime prevalence - a specific time in life

Incidence Mapping

This is number of new occurrences of a condition (or disease) in a population over a period of time - infectious disease

The incidence rate uses new cases in the numerator; individuals with a history of a condition are not included. The denominator for incidence rates is the population at risk.

$$ {Incidence =\frac{Number-of-new-cases-with-condition}{Total-number-of-people-at-risk}} $$

Let's use QGIS for prevalence & incidence mapping

Goodbye!!!

Science of Where, for Why