Introduction to QGIS
Overview
Teaching: min
Exercises: minQuestions
What is QGIS good for?
How do I get started with QGIS?
Objectives
Launch QGIS on your computer
Create a new “project”
Load some sample geopackaged (.gpkg) data into QGIS for examination
R Studio and QGIS: Better together
While R Studio is fantastic at doing calculations that you could then turn into visualizations, the visualizations themselves are sometimes not very high resolution.
For example, the as-planted.gpkg file R Studio displays like this:
The same file would look more like this in QGIS:
You can zoom in on each of those areas for higher resolution and see that the wavy areas have higher density application than originally intended:
In QGIS, you can place one layer over another for comparison, as well.
Later on in the lessons, we’ll be using R Studio to provide us with calculations that compare the intended rate of application with the actual rate of application to see how accurate the equipment was. However, R Studio provides those visualizations side by side:
QGIS lets you layer them directly on top of each other and zoom in for more visual comparisons of particular segments, such as identifying where your actual planting or fertilization rates may be higher or lower than intended because of the way the equipment was driven:
This will be helpful during the data cleaning phase of the process.
Getting Started with QGIS
Windows Users: Click here for more details
Mac Users: Click here for more details
First Launch
When you first launch QGIS, it’ll look something like this:
Double-click the New Empty Project
blank piece of paper image to create a new QGIS project.
Next, go to the Layer
menu→Add Layer
→Add Vector Layer
:
We’ll use the … button by Vector Dataset(s) to browse to WorkingDir/data
in order to open up one of the .gpkg files - in this case asplanted.gpkg
.
Click the Add
button toward the bottom of this gray window, and you should see an image like this (though your color may be different):
You can add additional layers as well - let’s add the asapplied.gpkg file next by following the same Layer→Add Layer→Add Vector Layer
process:
You can see a couple wiggles in the applicator’s driving path here, more clearly shown in the zoomed-in view:
Being able to see places where more (or less) seed or nitrogen was applied than intended can help explain differences in yield in that particular area. That can then help you decide whether or not to use the data from that part of the field when calculating your optimal rates. (We’ll go into this in greater detail in the “Data Cleaning” segment of the lesson.)
Key Points
QGIS is a free alternative to the more expensive ArcGIS software
QGIS can give you a more detailed visualization of your data and help you understand your yield results