Project Set-up
Before we begin mapping, let’s take a moment to familiarize ourselves with the QGIS interface by way of project set-up. QGIS can be opened by opening a prepared QGIS project file, or simply by launching the application. For today, a nearly-blank project has been prepared for you.
Navigate to dhsi-workshop/Day 2. Inside you will find a file called QGIS-hands-on.qgz as well as a subfolder of data. It’s best practice to save your QGIS projects to the folder where you keep your data for the project. Once you save your project to your computer, you’ll notice the file extension is .qgz. Learn more about QGIS file formats here.
On this page:
Open & Save a new QGIS project
Now, double-click the QGIS project to open it. If you have successfully downloaded and installed QGIS, the application should open and look like this:

To save your project, navigate to the Project Menu at the stop of your screen and go down to “Save”. Just like with documents in a text editor, you can also “Save As” to save your project as a new file, thus creating multiple back-up versions of an original. It is important to regularly save your project while working in case QGIS crashes. Remember, what is saved is your styling etc., the data is elsewhere.

You can also use the save icon in your Toolbar to save your project regularly.

Navigate the Graphical User Interface (GUI)

-
Menus - At the very top of your screen you’ll see menus which, when clicked on, expand to show many more options and even sub-menus. Notice that these menus are only visible when you’ve clicked into the QGIS application. Though you can drag the application interface around your screen, the menus stay at the top. If you click out of the QGIS application, the menu will disappear. These menus provide easy access to a variety of tools you’ll use in your everyday mapping. Like any new interface, it may take some time to become familiar with what’s stored where.
-
Toolbars - The toolbar is the area at the top of your QGIS application with all the icons. The toolbar actually contains multiple toolbars, which are groups of icons that, when clicked, allow you to navigate around your map canvas, make click-based selections, edit layer geometries, create spatial bookmarks, and much more. You can customize this area of your GUI to fit your needs, adding and removing sets of tools by clicking on the great area of the toolbar.
-
Browser and Layers Panel - When you open the project prepared for you, you should see two panels on the left-hand side of your interface. The browser panel lets you easily navigate your file system for data and project files. Your layers panel displays your project’s data layers and provides access to configuration settings. If you ever accidentally close a Panel, you can open it again by going to the View menu at the top of your screen, down to Panels, and then selecting the ones you wish. You can also right-click anywhere in the toolbar’s greyspace and select the Panels and Toolbars you want to show or hide.
-
Status Bar - The status bar displays current information about the map canvas, and allows you to make adjustments in the map’s scale and rotation.
-
Map Canvas or Map View - Call it either one. This is where the map is displayed and updated as layers are loaded. You can zoom/pan the map canvas as well as select features and other operations.
To Do
Notice there is 1/2 Layer groups in the layer panel, though layers inside are hidden bc turned off. This is xyz. Turn on and zoom to group. Expand group to see whats inside. click on and off one by one.


Take a moment to zoom in and out using the Magnification tools in your Toolbar.
Use the Identify tool to look up xyz of xyz. To use the Identify tool, click the tool icon in the Toolbar, then click on any neighborhood polygon.

To stop the Identify tool, close the pop-up window and click the Pan tool.
Customizing the interface
You can change the look and feel of your GUI, as well as adjust default settings from the menu QGIS-LTR –> Preferences or the menu Settings –> Options. Both menus are located at the top of your screen when QGIS is open and the application is active (meaning you’ve clicked anywhere on it).
The application Options window looks like the image below. Most customizations you’ll want to make at this stage will be under “General”.

-
Light and Dark mode - So long as your Style is set to Fusion and UI Theme is set to default, whether your QGIS application is light or dark depends on whether your computer System Settings have Appearance as light or dark. If you change your computer’s Appearance settings, be sure quit (saving first, of course) and re-open your QGIS project for the changes to take effect.
-
Increasing font and icon size - Make sure to resize the Options dialogue window so you can see the drop-down for “icon size” and “font”. (It is particularly difficult to see QGIS drop-down and close window icons in dark mode.) Now you can increase the font and/or icon size. Icon changes will happen as soon as you click OK. Changes in font size won’t update until you quit and restart QGIS, so make sure you save your project now.
Loading Data
Once you’ve acquainted yourself with the QGIS interface, it’s time to add more MAP data to your project.
There are a couple ways to add data to your map canvas.
- Browser panel From the Browser panel, likely docked to the left of your screen, expand the
Homedirectory (aka folder) and navigate to your workshop data folder. Expand that folder to see the data inside, then double-click or drag and drop each file to add it to your project. Alternatively, you can add a Favorite connection in the Browser panel to save you the trouble of finding your data folder. To do this, click “Favorites” at the top of the Browser panel’s list and connect the workshop data folder as a favorite directory. Make sure not to click into, merely select it. - Data Source Manager The Data Source Manager is the same sort of portal as the Browser, just in a separate dialogue box rather than a docked panel. You can open the Data Source Manager by double-clicking the 3 colorful squares icon in the Toolbar, or from the Layer menu at the top of your screen.
- Layer menu A third way to add layers to your map canvas is through the Layer menu at the top of your screen. Under Layer, navigate to Add Layer (it should be the third item down) and select Add Vector Layer… or Add Raster Layer…. This will open the same Data Source Manager dialogue box as before.
- Drag and drop files from your data folder directly onto your map canvas. This method is not recommended as it can easily lead to data disorganization. »> see what it looks like Data - discussed previously. This is what folder looks like from folder view. remember, .shp what we want.

To Do
Add your data files to your QGIS project:
Save your project. Zoom out if you need so you can see all your layers loaded.

Your data isn’t saved inside your QGIS project. Rather, the filepath connections are saved, as well as any modifications to symbology made to the layers in QGIS. When mapping in QGIS, it’s important to keep track of where the data you’re working with is stored. If you move your data, QGIS won’t know where to look for it and a red exclamation mark will appear in the Layers Panel. You can click on this warning to tell QGIS where the data is now stored.
Managing Layers
Although this tutorial has only a handful of layers, some projects require you to juggle more than 10 layers. Having strategies to stay organized is therefore important. Additionally, layers that cover the entire earth are quite large and require lots of processing power to load anew each time you pan and zoom around your map canvas. Best practice is therefore to “hide” or “turn off” layers you aren’t using so as not to slow your computer down. Below are some tips to stay organized.
-
Rendering order Note that we added layers to our project in a very specific order. This is because QGIS will render layers from the top down, meaning the layers to the top of your Layers Panel list will sit above the layers below. We added the aerial photo last so it could bee seen above the other layers. You can reorder your layers at any time by dragging them up or down.
Drag
xto the top of your layers. See how it disappears? Then drag it up again. -
Turning layers on and off Turn layers on and off (or hide and show them) by clicking the little checkbox beside each layer. If you’ve added a layer but don’t see it rendered, it is likely underneath another layer. Rather than rearranging every layer until you find it, you can successively turn each layer off until you find the one you’re looking for.
Turn
xoff. This will allow you to zoom and pan around your project more easily as your computer won’t be working to re-load a large file each time. -
Zoom to layer To zoom to a layer, simply right-click (control-click) any layer and select the top option to “Zoom to Layer(s)”. Zooming to a layer simply centers the extent of that layer in your map canvas. Often times when you first open a QGIS project, even if data is loaded and turned on, your map canvas will appear blank. Zooming to a layer will immediately populate your screen with the loaded layers. If you zoom to any of the global layers, you will return to the global view.
Try zooming to
x(aerial photo). -
Renaming layers You can rename layers in the Layers Panel. This does not change the datasets themselves, but rather their nicknames as they appear in your QGIS project. To rename a layer, simply right-click the layer in your Layers Panel and go to “Rename Layer”.
Try renaming your layers. For example, rename
xtoX. -
Grouping Layers If you’re ever working with numerous layers, you can create layer groups through the group icon or by right-clicking anywhere that’s empty in the Layers Panel and selecting “Add Group”. Once you’ve added and named a group, you can drag layers into it. You can move layers out of a group at any time, and right-click the group to remove or rename it. Each layers group will have its own visibility checkbox, meaning that even as you set the visibility for each individual layer within the group, only by rendering the group itself visible will any of its nested layers appear on your screen.

-
Removing layers Just as you can add layers to your QGIS project, you can remove layers at any time. This will not delete the datasets themselves; after all, they are not saved inside your QGIS project (as ArcGIS would do). Rather, it is the file connections that are saved, as well as edits to their symbology made in QGIS. To remove a layer connection from your project, simply right-click that layer in your Layers Panel and select “Remove Layer…”.
-
Checking file paths If you are ever uncertain where a loaded layer is stored on your physical computer, hover over the layer to see its file path.
-
Refreshing Data Source If you add new data to your working folder already pinned as a favorite directory in your Browser Panel, you might need to “Refresh” the folder connection for the new files to appear. Simply right-click the folder connection and select “Refresh”. You can also click the Refresh icon to refresh all connections.

-
Exporting Layers Exporting a layer essentially makes a copy of the dataset on your computer with a name, file type, and location of your choice. This can be useful if you want to make a copy of a layer, save a temporary layer as a permanent file, or save a selection as a new layer/dataset. To export a layer, simply right-click the layer, go to “Export” –> “Save Feature As…”. Note that your new file will not have the same symbology, though you can copy/paste one layer’s symbology to another. “Duplicating” a layer, which you can also do by right-clicking a layer in your Layers Panel, doesn’t create a copy of the dataset, just adds it twice to your project.
-
Copy/Paste Symbology Right-click the layer whose symbology you want to copy in the Layers Panel, go to “Styles” –> “Copy Style” –> “Symbology”. Then right-click the target layer, and go to “Styles” –> “Paste Style” –> “Symbology”.
Project Properties
You can access the Project Properties from the the Project menu. Open the Project Properties and click down to CRS. CRS stands for Coordinate Reference System, and describes the mathematics behind transforming a 3-dimensional Earth to fit on a 2-dimensional screen. A projection is part of the Coordinate Reference System, and is responsible for projecting a set of points from a 3-dimensional space onto a 2-dimensional plane. There are a variety of projections, each one preserving some characteristics of shape, area, distance, and direction, while distorting others. When choosing the best projection for your map, it is important to consider the content you are visualizing and the extent of the geographic area. Every spatial data layer comes with its own stored projection, often noted at the point of download. Note: If you don’t set a projection at the start, your QGIS project will assume the projection of the first layer you add.
Setting the project CRS doesn’t change the stored projection of each layer, only how they are rendered ‘on the fly’ by QGIS. QGIS will reproject all the project layers ‘on the fly’ to match the project CRS. You can change the stored projection of layers with the Warp and Reproject Layer tools.
For more on Coordinate Reference Systems, see here or check out our resource on Understanding Map Projections for more. QGIS also has extensive documentation on coordinate reference systems, and pbcGIS offers more background information if you’re curious.
Spatial Bookmarks
Another tip, especially if you’re using a single layer to make a map of different locations, is to make spatial bookmarks. A spatial bookmark is exactly what it sounds like: a way to bookmark a canvas extent to return to layer. You can add a spatial bookmark from the bookmark icon in the Toolbar, from the View menu, or from the Spatial Bookmark tab in your Browser Panel. You can then set it to your map canvas, or a layer, etc. You can then save the bookmark with a name to your project (this project alone) or to your user settings (every QGIS project you ever make and open).

To Do
Make a spatial bookmark of ??. If you’ve already zoomed to the provinces layer, set your spatial bookmark extent to “Map Canvas Extent”. Otherwise, be sure x is centered on your screen first, or set the that layer as your extent. Save to Project Bookmarks.
You are now setup to begin mapping! Be sure to SAVE YOUR PROJECT before continuing on. Save from either the save icon in your toolbar or from the Project menu –> Save.
Optional: Add a Basemap
Not doing today - but keep documentation here
A basemap is helpful to give spatial context to your data layers—both as you’re working and in your final map. You can also create a reference map that is simply a basemap. For example, the map made over the course of this workshop used Natural Earth data to show the countries surrounding Canada. Another way to add geographic context is through a web-based basemap. Web-based basemaps are maps of the whole world that are stored on servers and which you can add to your project without downloading them to your local computer. The following page will guide you through adding web-based basemaps to your QGIS project.
Adding basemaps from web plugin
While your out-of-the-box QGIS applicaiton will have a few basemap options under the XYZ tab of your Browser Panel, you can access way more with a plugin. QGIS Plugins are user developed tools that extend QGIS functionality beyond the basics. There are two popular plugins for webmap libraries called QuickMapServices and OpenLayers.The following documentation will show you how to install the QuickMapServices plugin, add basemaps to your QGIS project, and create and export a map using one of them.
Install Plugin
QGIS plugins are user developed tools that extend QGIS functionality beyond the basics. To access basemaps, we’ll first install the QuickMapServices plugin. Click on the Plugin menu at the top of your screen and select Manage and Install Plugins…

In the dialogue box that opens, select All as a search category on the left and type “QuickMapServices” as one word. Install the plugin and close the dialogue box.

Load Basemap
Now go to the Web menu at the top of your screen. You should see the QuickMapServices plugin. Hover over it and click “Settings” at the bottom of the menu that pops up. In the settings dialogue box go to the “More services” tab and click “Get contributed pack.” Click save to close settings and return to the Web menu. This time when you hover over the QuickMapServices plugin you will see an array of basemap options. Select OpenStreetMap as your basemap. Like QGIS, Open Street Map (OSM) is open source and user developed.

Make sure to drag your basemap to the bottom in your Layers Panel. Remove the basemap at anytime by right clicking the layer and selecting “remove.”

Use the zoom tools
located in the toolbar to zoom to see each basemap in detail. Hide a basemap at any time by unchecking the box beside it in the Layers panel. Remove a basemap at anytime by right clicking the layer and selecting “remove.”

Sometimes when you re-open a QGIS project basemaps previously loaded will turn up blank. Try right-clicking the basemap in your Layers Panel and zooming to it. Otherwise, simply re-add the basemap from the Web menu at the top of your screen.
Making a map from a basemap
To use a basemap as your final reference map, simply turn off or remove all other layers. Create a new Print Layout and add your map. Be sure to include a source statement at the bottom. Be sure to check the license of any basemap before using it for academic publication.

Loading last updated date...
Take a moment to zoom in and out using the Magnification tools in your Toolbar.
Use the Identify tool to look up xyz of xyz. To use the Identify tool, click the tool icon in the Toolbar, then click on any neighborhood polygon.
To stop the Identify tool, close the pop-up window and click the Pan tool.