This tutorial shows an example of workflow to map statistical agricultural data with QGIS. To do this, we will use a background map from the Natural Earth website and agricultural data downloaded from FAOStat. The join between the map and the data, as well as the layout of the map, will be performed with QGIS.
We will start by downloading a world map. On the Natural Earth site, in the “Downloads” tab, click on the “Cultural” button for Medium scale data
On the next page, click on “Download countries” button, in the first section (Admin 0 - Countries)
After unzipping the downloaded folder, you can open
QGIS and add the world map as follows:
If you want to map a particular region of the world, it is
recommended to change the coordinate system to the most suitable one.
For example, the CRS code for Europe is EPSG:3035. You
may select this CRS in the “Project” tab:
Before you continue, open the attribute table (right-click on
the layer name, then “Open Attribute Table”). This table contains
various data concerning the entities represented on the map. The column
that will allow us to join the statistical data is
ISO_A3_EH. In this column, each country is identified
by a unique three-letter code.
Agricultural data can be downloaded from the FAOStat website. A wide range of data is available on this site, and you can choose the ones that interest you. Before starting the download, it is necessary to change the country identifier to the ISO3 code, in order to be able to perform the table join with the map later on.
The downloaded file is not a spatial file, but a data table. It is added to QGIS as follows:
We will now join the csv table (statistical data) to the vector layer (world map). To do so:
Warning: You need to confirm you join with “OK” or “Apply” before closing the “Properties” window.
You can now display your data downloaded from FAOStat on the world map. More information on how to create a choropleth map is available in this tutorial and the final layout of the map is detailed here.