Import spatial data from a spreadsheet

Let’s work with an example of Latitude-Longitude coordinates, to learn how to import spatial data from a spreadsheet

The Che Tao NR staff have provided us with a new dataset from their most recent patrol, looking for evidence of threats to wildlife

.csv file format

Threats_Evidence.csv is in .csv format, or comma-delimited, with columns separated by a comma. .csv is a non-spatial file format, although as you’ll see, it does contain spatial information

To add this new layer to your GIS project, you’ll need to use a new method. QGIS won’t automatically know where to draw data in .csv format, so we have to tell it where the location coordinates are stored. Before we do that, let’s take a look at the raw data

  1. Download Threats_Evidence.csv
  2. Open up the .csv file in Excel (or a text editor if you prefer)
  3. Examine the columns:
    1. Does the information you’ve been given make sense?
    2. What type of vector data do we have - points, lines or polygons?
    3. Do you understand what the numbers in the coordinate columns mean?

Add .csv data to QGIS

For those of you who are more confident with the basics of using QGIS, here are the steps without screenshots:

  1. Layer > Add Layer > Add Delimited Text Layer...
  2. Choose source file - click the ... button and find Threats_Evidence.csv
  3. Ensure Point coordinates is selected under Geometry Definition
  4. QGIS should automatically recognise which columns contain the X (Longitude) and Y (Latitude) coordinates
  5. Click Add and Close


For those of you who want more detail or visual instructions, here are the steps including screenshots:

:warning: Be aware that the csv file in these screenshots is different from yours

  • Layer > Add Layer > Add Delimited Text Layer...
QGIS screenshot: Add delimited text layer
  • Choose source file - click the ... button
QGIS screenshot: Choose text file
  • Ensure Point coordinates is selected under Geometry Definition, and specify which columns contain the X and Y coordinates
QGIS screenshot: Specify X and Y columns
  • Click Add and Close

Previous submodule:
Next submodule: