Installing QGIS and Plugins

Test Data
Download the test data for this lab: stanford_art_data.zip
This zip file contains the following layers:
stanford_public_art.geojson— Point locations of public art installations on Stanford campusstanford_campus_irg.tif— Infrared raster image of the Stanford campusstanford_campus.geojson— Stanford campus boundary polygon
Introduction
QGIS (Quantum Geographic Information System) is a free, open-source desktop GIS application that will serve as our primary tool for spatial data analysis and cartography. This lab will guide you through the installation process and setup of essential plugins that extend QGIS's functionality for terrain analysis, geoprocessing, and basemap integration.
Learning Objectives
By the end of this lab, you will be able to:
- Install QGIS on macOS, Windows, or Linux
- Create a new user profile for course work
- Install and configure essential QGIS plugins
- Set up WhiteboxTools for advanced terrain analysis
- Access basemap services through QuickMapServices
Installing QGIS
macOS Installation

NOTE: Avoid the use of the new "VERY EARLY RELEASE" version 4.0.0. Most of the plugins that we will need to use have not been updated for this version. At some point, soon, I expect that to change, but until then, **please use the Long-term Release (LTR) Version 3.44
- Download the latest Regular release from: qgis.org/en/site/forusers/download.html**
- Download the DMG file for macOS
- Double-click the downloaded DMG file to open it
- It will take a few minutes to decompress and validate the DMG file
- Once the installation window opens, drag and drop the QGIS app icon into the Applications folder icon
- Launch QGIS from your Applications folder
Note: As of 2024, QGIS is now properly registered with Apple, so you should not encounter security warnings during installation or first launch.
Windows Installation
- Visit qgis.org/en/site/forusers/download.html
- Download the QGIS Standalone Installer (Regular release)
- Run the installer with administrator privileges
- Accept the default installation options
- Launch QGIS from the Start menu
For a detailed walkthrough, see: How to Install QGIS on Windows
Linux Installation
- Use your distribution's package manager
- Add the official QGIS repository for the latest versions
- Install using
apt,yum, or equivalent package manager
For distribution-specific instructions, visit: QGIS Installers
Setting Up Your QGIS Profile
Creating a new user profile provides a clean workspace for the course and makes troubleshooting easier if issues arise.
Create a New User Profile
- Launch QGIS
Go to Settings > User Profiles > New Profile

- Name the profile something like
EarthSys144orEarthSys144-Labsto identify it - Click OK
QGIS will restart with your new profile. This creates a fresh configuration with default settings. Your old profile (if you had one) remains available and you can switch between profiles from Settings > User Profiles.
Installing Essential Plugins
QuickMapServices Plugin
QuickMapServices provides convenient access to basemap layers from various providers (Google, Esri, OpenStreetMap, and more).
Install the Plugin:
- Go to Plugins > Manage and Install Plugins
- In the search box, type QuickMapServices
- Select the plugin from the list and click Install Plugin
- Close the Plugin Manager

Test the Installation:
- Go to Web > QuickMapServices
- You should see many service providers listed (Google, Esri, NASA, etc.)
- Select Google > Google Hybrid to load a basemap

SAGA NextGen Plugin
SAGA (System for Automated Geoscientific Analyses) provides powerful geoprocessing tools. SAGA is no longer included with QGIS and must be installed separately as a standalone application. The SAGA NextGen plugin keeps up with the latest SAGA updates and ensures compatibility with current QGIS versions.
Step 1: Install SAGA GIS
- Download the SAGA GIS installer for your platform:
- macOS: saga-9.11.3_mac.zip
- Windows: SAGA 9.11.3 Downloads
- Follow the instructions provided by the SAGA GIS installer. It should install as a standalone application in your Applications folder (macOS) or Program Files (Windows).
Step 2: Configure QGIS to Find SAGA
- Open Finder and navigate to your Applications folder
- Locate the "SAGA.app" application bundle
- Right-click on "SAGA.app" and select "Show Package Contents"
- Navigate to Contents > MacOS — this is your SAGA folder
- Open QGIS and go to Processing > Options > Providers > SAGA
- In the "SAGA folder" field, paste the path you found above. Example:
/Applications/SAGA.app/Contents/MacOS/ - Save the changes and restart QGIS
Step 3: Install the Plugin
- Open Plugins > Manage and Install Plugins
- In the All tab, search for SAGA
- Find Processing SAGA NextGen Provider and click Install Plugin
- Close the Plugin Manager

Verify Installation:
- Go to Processing > Toolbox to open the Processing Toolbox panel
- You should now see SAGA Next Gen as a provider alongside the others

The SAGA Next Gen toolset duplicates the original SAGA provider but with improved integration for the latest QGIS versions.
WhiteboxTools Plugin
WhiteboxTools is an excellent, high-performance toolkit particularly useful for hydrological modeling, terrain analysis, and raster processing. Installing WhiteboxTools is a two-step process: downloading the executables and then installing the QGIS plugin.
Step 1: Download WhiteboxTools Executables
- Download the appropriate version for your operating system from: whiteboxgeo.com/download-redirect/
- Unzip the downloaded archive to a stable location on your hard drive:
- macOS: Consider
/Users/[username]/WBTor~/Applications/WBT - Windows: Consider
C:\WBTorC:\Program Files\WBT - Linux: Consider
~/WBTor/opt/WBT
- macOS: Consider
- Remember this location - you'll need to point the QGIS plugin to it
For a video demonstration, see: WhiteboxTools Setup Video
Step 2: Install the WhiteboxTools QGIS Plugin
- Return to Plugins > Manage and Install Plugins
- Search for WhiteboxTools
- Find WhiteboxTools for QGIS and click Install Plugin
- Close the Plugin Manager
Step 3: Configure WhiteboxTools in QGIS
- Go to Processing > Toolbox to open the Processing Toolbox
- Click the wrench icon at the top to open Processing Settings
- In the left panel, expand Providers > WhiteboxTools
- Double-click in the box next to WhiteboxTools executable
- Click the ... button to browse to the folder where you unzipped WhiteboxTools

Navigate to the WhiteboxTools executable inside the WBT folder:
- macOS/Linux: Select the
whitebox_toolsfile (no extension) Windows: Select
whitebox_tools.exe

- macOS/Linux: Select the
- Click Open, then OK to save the settings
Verify Installation:
- In the Processing Toolbox, expand the WhiteboxTools provider
- You should see hundreds of tools organized by category
Test the installation by running the RandomSample tool:
- Search for RandomSample in the Processing Toolbox
- For the Input Raster File, select
stanford_campus_irg.tiffrom the test data you downloaded earlier - Set Num. Samples to 100
For the Output File, click the ... button and browse to an actual folder on your computer, then type a filename (e.g.,
random_sample_test.shp). Important: WhiteboxTools does not work well with temporary layers. You must save the output to a real file path. If you only type a filename without browsing to a folder first, QGIS will error because it needs a full path (e.g.,/Users/yourname/Documents/random_sample_test.shp), not just a filename.
- Click Run
Note that the output file will likely appear to be solid black. This is becasue the RandomSamples are single pixels, likely too small to be seen on your screen resolution. Also note that the values of those pixels are sequential identifiers, from
1to100, with0the background value.
- Now use the output to create a distance map with the EuclideanDistance tool:
- Search for EuclideanDistance in the Processing Toolbox
- For the Input Vector File, select the
random_sample_test.shpoutput you just created - For the Output File, click the ... button, browse to the same folder, and save as
euclidean_distance_test.tif - Click Run
- If both tools complete successfully, WhiteboxTools is properly configured. You should see a raster layer showing the distance from each pixel to the nearest random sample point.

Note on WhiteboxTools Plugins: WhiteboxTools includes additional plugin executables in the WBT/plugins/ directory. These specialized tools extend WhiteboxTools functionality and will be used later in the course.
Troubleshooting WhiteBox Tools
macOS Security Configuration for WhiteboxTools
Important for macOS users: WhiteboxTools executables are not registered with Apple, which triggers macOS security warnings. You'll need to explicitly allow the executable to run.
If you see an error like:
WhiteboxTools output:
Process "whitebox_tools" failed to start. Either "whitebox_tools" is missing,
or you may have insufficient permissions to run the program.
Execution failed after 0.04 seconds

Follow these steps:
- Navigate to your WhiteboxTools installation folder (e.g.,
/Users/[username]/WBT) Right-click (or Control-click) on the
whitebox_toolsexecutable
- Select Open from the context menu
- A security warning will appear - DO NOT click "Move to Trash"
- Dismiss the warning dialog
- Go to System Settings > Privacy & Security
- Scroll down to the Security section
- Click Open Anyway next to the message about
whitebox_tools
- Confirm through any additional security prompts

- The executable will launch in Terminal - you can close the Terminal window once it opens
- Return to QGIS and retest the RandomSample tool
This process only needs to be done once. After approval, WhiteboxTools will run normally from QGIS.
Configure Processing Toolbox Display
- Go to Processing > Toolbox
- Right-click in the toolbox panel
- Select Reorganize by Type to group similar tools together
Troubleshooting Common Issues
QGIS Won't Launch
- Windows: Try running as administrator
- macOS: Check that the app is in your Applications folder
- All platforms: Check system requirements at qgis.org
- Clear QGIS settings by renaming the QGIS profile folder and creating a new profile
Plugins Not Working
- Verify QGIS version compatibility in the plugin description
- Check your internet connection (required for plugin installation)
- Try Plugins > Manage and Install Plugins > Reinstall Plugin
- Clear the plugin cache and restart QGIS
WhiteboxTools Executable Not Found
- Verify you've downloaded and unzipped the WhiteboxTools executables
- Double-check the path in Processing > Options > Providers > WhiteboxTools
- Make sure you're pointing to the executable file, not just the folder
- macOS/Linux: Ensure the executable has execute permissions (
chmod +x whitebox_tools)
SAGA Tools Missing or Broken
- SAGA is no longer bundled with QGIS — you must install it separately as a standalone application (see the SAGA NextGen Plugin section above)
- Make sure you installed Processing SAGA NextGen Provider, not just the base SAGA
- Verify the SAGA folder path is set correctly in Processing > Options > Providers > SAGA (e.g.,
/Applications/SAGA.app/Contents/MacOS/) - Try using tools from SAGA Next Gen instead of the original SAGA provider
- Conflicting installations: If you had older versions of SAGA installed, ensure they are removed to avoid conflicts
- Permissions: Rarely, you might need to adjust file permissions on the SAGA folder to allow QGIS to access it
- Some tools may require specific data types or CRS - check tool documentation
QuickMapServices Shows No Basemaps
- Make sure you clicked Get Contributed Pack in the settings
- Check your internet connection
- Try Web > QuickMapServices > Settings > More Services > Reload to refresh the list
Submission
To verify your installation:
- Create a new QGIS project
- Load the Google Hybrid basemap from Web > QuickMapServices > Google > Google Hybrid
- Open the Processing Toolbox and expand it to show SAGA Next Gen and WhiteboxTools providers and the Scripts under their sections.
- Create a screenshot showing:
- QGIS interface with the Google Hybrid basemap loaded
- Processing Toolbox panel visible with SAGA Next Gen and WhiteboxTools expanded
- Upload the screenshot to Canvas
Next Steps
With QGIS and essential plugins installed, you're ready to:
- Create your first maps with professional basemaps
- Perform terrain analysis using WhiteboxTools
- Apply geoprocessing algorithms from SAGA Next Gen
- Begin exploring spatial data visualization and analysis
These tools will form the foundation of all the desktop GIS work we'll do throughout the course.