QGIS Beginner Tutorial
QGIS Study Notes: Beginner GIS Workflow and Spatial Analysis
1. What QGIS Is
QGIS is a desktop geographic information system used to work with spatial data. It allows users to:
Display geographic information on maps.
Organize multiple spatial layers.
Examine the geometry and attributes of geographic features.
Create and edit vector data.
Analyze raster and vector datasets.
Perform spatial analysis, including buffering, point counting, terrain analysis, and network routing.
Produce printable maps and web maps.
Extend its functionality through plugins, Python scripting, and database integrations.
QGIS is designed to support both beginners and advanced GIS users. A new user can learn basic mapping and spatial concepts, while experienced users can build complex projects involving databases, web mapping, automated workflows, and advanced analysis.
2. Why Use QGIS?
Free and Open Source
QGIS is free to download and use. Users do not need to purchase a commercial software license to create maps or conduct analyses.
It is also open source, meaning:
The source code is publicly available.
Developers and users around the world can inspect, test, and improve the software.
Contributions are made according to project rules.
The software evolves through both its core development and its broader plugin ecosystem.
The project is supported by contributors, organizations, companies, and community members from around the world.
Global Community and Documentation
The QGIS project provides numerous ways for users to learn and participate:
User guides and training materials.
Technical documentation.
Community support.
User groups in different countries and regions.
Mailing lists and discussion forums.
Testing and documentation contributions.
Information about changes between software versions.
Documentation may differ by QGIS version, so users should identify their installed version before consulting version-specific instructions. However, many fundamental GIS concepts remain consistent across versions.
Cross-Platform Support
QGIS is cross-platform, meaning it can run on:
macOS.
Windows.
Linux.
Because it is open source, QGIS can also be integrated into cloud environments and other scalable computing systems.
Plugins and Extensibility
QGIS has a large ecosystem of plugins. Plugins extend the core software with additional tools, such as:
Additional basemaps.
OpenStreetMap data access.
Specialized spatial analysis.
Automated or semi-automatic classification.
Web map creation.
Database and routing tools.
Digitizing and editing utilities.
Google Earth Engine integration.
The plugin system means that QGIS can continue to support increasingly advanced workflows rather than limiting users to only the tools included in the initial installation.
Integration with Other Software
QGIS can interact with many other open-source technologies and data systems, including:
PostgreSQL and PostGIS databases.
SpatiaLite databases.
Web mapping services.
REST-based data services.
GRASS GIS operations.
GDAL raster and vector operations.
Python scripts.
Web mapping libraries such as OpenLayers and Leaflet.
History and Development
QGIS began in 2008 under the name Quantum GIS. Early releases had a much simpler interface, but the project has since developed into a large GIS ecosystem.
Its development has expanded to include:
Beginner-friendly desktop mapping.
Advanced cartography.
Complex spatial analysis.
Web mapping.
Scripting and automation.
Database connectivity.
Raster processing.
Network analysis.
The central benefit of this development model is that users can begin with simple mapping and gradually scale their workflows as their GIS skills grow.
3. Installing and Starting QGIS
Downloading QGIS
The QGIS website provides downloads for the user’s operating system. The normal installation process is:
Open the QGIS download page.
Select the appropriate operating system.
Download the installation package.
Run the installation program.
Follow the operating-system-specific installation instructions.
Open QGIS and create a new project.
The exact interface and installation steps differ slightly between macOS, Windows, and Linux.
macOS Installation
On macOS, the downloaded application may need to be dragged into the Applications folder. If an earlier version is already installed, the user may be asked whether to keep both versions or replace the previous one.
In most cases, replacing the older version is appropriate if the user wants to use the newly installed release.
Security Warnings
Operating systems may display a warning that QGIS comes from an unverified developer. This commonly occurs when an application was downloaded from outside the operating system’s official app store.
If the user trusts the downloaded software, the application can usually be authorized through the system’s security and privacy settings. Users should follow the security policies of their personal or work computer before allowing the application to open.
Creating a New Project
After opening QGIS, the first step is normally to create a new project:
Use the Project menu and choose the option for a new project.
Alternatively, use the new-project control on the opening screen.
A project stores the map configuration, including:
Loaded layers.
Layer order.
Symbology.
Labels.
Project coordinate reference system.
Map views.
Print layouts.
Analysis outputs that are saved into the project.
Saving the project regularly is important. An unsaved-change indicator may appear in the application title bar.
4. The QGIS Interface
The QGIS interface is organized around a map canvas, layer controls, data browsers, menus, and toolbars.
Layers Panel
The Layers panel lists the layers currently included in the map.
Users can use this panel to:
Add or remove layers.
Change layer order.
Turn layers on or off.
Filter layers.
Control visibility.
Open layer properties.
Access styling and labeling options.
Start or stop editing.
Export selected features.
Layer order determines how the map is rendered. A layer at the top of the list is drawn above layers below it.
If a basemap is placed above other layers, it may hide the layers underneath. Basemaps are therefore normally placed at the bottom of the layer list.
Browser Panel
The Browser panel provides access to available data sources and folders.
It can display:
Local drives and folders.
Home directories.
Volumes and connected storage.
GeoPackage files.
PostgreSQL or PostGIS databases.
SpatiaLite databases.
Web mapping services.
XYZ tile services.
WMS and other web services.
REST services and open-data portals.
Frequently used folders can be added as favorites. Favorites make it easier to return to project data without repeatedly navigating through the computer’s file system.
Map Canvas
The large central area is the map canvas. It displays the geographic layers in the project.
The map canvas supports:
Panning.
Zooming.
Selecting features.
Identifying features.
Editing geometries.
Viewing labels.
Inspecting spatial relationships.
Navigating to coordinates.
The map canvas may initially be blank until spatial layers are added.
Coordinate Display
The cursor’s current geographic position is shown in the interface, generally near the lower-right area. As the cursor moves, the displayed coordinate values update.
The meaning of those coordinates depends on the project’s coordinate reference system.
Scale
The map scale indicates the relationship between map distance and real-world distance. Users can:
Zoom with the mouse wheel.
Use keyboard shortcuts.
Enter a scale manually.
Select preset zoom levels.
For example, a scale of 1:100,000 means that one unit on the map represents 100,000 of the same units in the real world.
Magnification and Rotation
QGIS allows users to:
Magnify the map view.
Rotate the map.
Return the rotation to zero degrees.
Enter a specific scale or coordinate.
Copy coordinate values.
Navigate to a coordinate location.
Rendering Control
Map rendering can be temporarily disabled. This is useful when working with a very large map extent or many complex layers.
A common workflow is:
Turn rendering off.
Zoom or pan to the desired area.
Turn rendering back on.
This can prevent the software from repeatedly recalculating a complex map while the user is navigating.
Project Coordinate Reference System
The project’s coordinate reference system, or CRS, controls how spatial data is displayed and interpreted.
The CRS settings allow users to:
Choose from available projections.
Search for a projection.
Review recently used projections.
Change the project’s CRS.
Align the map with a basemap.
Use a CRS appropriate for measurement or printing.
Different layers may have different native CRSs. QGIS can often reproject layers for display, but the project CRS still affects how coordinates, distances, and map appearance are interpreted.
Toolbars
The toolbars contain shortcuts for commonly used operations, including:
Creating, opening, and saving projects.
Printing and creating layouts.
Zooming and panning.
Navigating through zoom history.
Creating spatial bookmarks.
Identifying features.
Selecting features.
Creating and editing geometries.
Working with raster data.
Accessing plugin tools.
Toolbars are customizable. Users can right-click in the toolbar area and turn individual toolbars on or off.
Menus
The main menus provide access to a broader collection of tools, including:
Project management.
Settings.
Plugin management.
Vector operations.
Raster operations.
Database tools.
Processing tools.
Help and documentation.
The toolbar and menu systems often provide access to the same commands, but menus expose a wider range of functions.
Processing Toolbox
The Processing Toolbox contains many of QGIS’s analytical tools.
It includes operations for:
Vector geometry.
Raster processing.
Network analysis.
File creation.
Coordinate transformation.
Selection and extraction.
GDAL operations.
GRASS GIS operations.
Data conversion.
Interpolation.
Spatial statistics.
The toolbox can be searched by keyword. For example, searching for “raster” displays raster-related operations, while searching for “refactor fields” displays tools for changing field data types.
5. Obtaining Spatial Data
Open Data Portals
Public open-data portals are useful sources of GIS data. A municipal portal may contain information about:
Parks.
Roads.
Trees.
Playgrounds.
Bike routes.
Protected areas.
Permitted event locations.
Public facilities.
Environmental resources.
A useful data portal should provide:
A searchable catalog.
Descriptions of datasets.
Map previews.
Attribute information.
Spatial download options.
Metadata and projection information.
Searching for Data
A typical data-search workflow is:
Open the data portal.
Search for a keyword such as “trees.”
Filter the results to map or spatial datasets.
Open a dataset that matches the analysis goal.
Review the dataset’s attributes and geographic coverage.
Locate the export or download controls.
Choosing a Spatial Format
Common spatial formats include:
GeoJSON
GeoJSON is often convenient because:
It is usually a single file.
It stores geometry and attributes together.
It is easy to move between folders.
It can be opened directly in QGIS.
It is widely supported by web mapping tools.
Shapefile
A shapefile is an older and widely supported format. It normally arrives as a ZIP archive containing several related files.
The .shp file stores the geometry, but other files are also important:
.shxstores the geometry index..dbfstores attribute data..prjstores projection information.Additional files may store metadata or spatial indexes.
A shapefile should generally be kept with its related files. Opening only the .shp file may cause the data to lose attribute or projection information.
KML and KMZ
KML and KMZ are commonly associated with Google Earth. They can be used in QGIS, but they may contain extra properties or formatting intended for Google Earth.
CSV
A CSV file is a table rather than a spatial layer unless it contains coordinates or a geometry field. A CSV can become a spatial layer if it includes:
Longitude and latitude fields.
A well-known text geometry field.
Another recognized geometry representation.
CSV files must be configured correctly when imported so QGIS knows which columns represent spatial coordinates.
6. Adding Data to a QGIS Project
A common workflow for adding a downloaded dataset is:
Download the spatial file.
Move it into the project’s data folder.
Open QGIS.
Locate the file through the Browser panel.
Drag the file into the Layers panel or map canvas.
Alternatively, right-click the file and choose to add it to the project.
Check that the layer appears in the correct geographic location.
QGIS reads the dataset and displays its geometries on the map. The layer can then be styled, queried, labeled, edited, or analyzed.
Geometry and Attributes
Every spatial feature generally contains two major components:
Geometry
Geometry describes where a feature exists and what shape it has.
Common geometry types are:
Point: A single location, such as a tree or observation.
Line: A path or linear feature, such as a road, trail, or bike route.
Polygon: An enclosed area, such as a park, playground, or protected region.
Attributes
Attributes are the tabular facts associated with each feature.
Attributes may include:
Names.
Categories.
Text fields.
Numeric measurements.
Postal codes.
Jurisdictions.
URLs.
Status values.
Species.
Dates.
Classification values.
The geometry answers “where?” while the attributes describe “what?” or “which characteristics?”
Identifying Features
The Identify Features tool displays the attributes of a feature selected on the map.
A user can click a park polygon or another map feature to inspect:
Its name.
Category.
Jurisdiction.
Postal code.
Website URL.
Operational information.
Other stored attributes.
After using the identify tool, the map-navigation or hand tool should be selected again to resume panning.
7. Managing Multiple Layers
A GIS project becomes more useful when multiple related datasets are combined.
Examples of layers for a park-based project include:
Park property boundaries.
Playground areas.
Protected natural areas.
Permitted event areas.
Bike routes.
Squirrel observations.
Tree locations.
Street basemaps.
Elevation data.
Layer Visibility
A layer can be turned on or off using its visibility checkbox.
When a layer is disabled:
It is not drawn on the map.
Its entry may appear italicized.
Other layers remain visible.
The layer’s data remains in the project.
Visibility controls make it possible to compare datasets without deleting them.
Reordering Layers
Layers can be reordered by:
Dragging them within the Layers panel.
Using upward and downward movement controls.
The order matters because upper layers cover lower layers when their symbols are opaque.
Basemaps
A basemap provides geographic context without requiring the user to download and manage many separate contextual layers.
Basemaps may show:
Roads.
Streets.
Place names.
Buildings.
Water.
Administrative areas.
Other reference information.
The QuickMapServices plugin can add basemaps such as OpenStreetMap. The basemap should normally be positioned underneath analytical layers.
8. Coordinate Reference Systems and Projections
A coordinate reference system defines how locations on Earth are represented with coordinates.
Why CRS Matters
CRS affects:
The position of data on the map.
The appearance of geographic features.
Distance and area calculations.
Compatibility with basemaps.
The units used by analysis tools.
A layer with missing or incorrect CRS information may appear in the wrong location, sometimes even in the ocean.
Common CRS Codes
Two CRS codes used in the tutorial are:
EPSG:4326: Geographic coordinates using latitude and longitude.EPSG:3857: Web Mercator, commonly used by online basemaps such as OpenStreetMap.
Matching a Web Basemap
If a web basemap appears distorted or its labels look incorrectly positioned, the project CRS may not match the basemap’s expected CRS.
A common workflow is:
Open the project CRS settings.
Search for
EPSG:3857.Select Web Mercator.
Apply the change.
Confirm that the basemap and other layers display correctly.
Reprojecting a Layer
Changing the project CRS is not the same as permanently changing a layer’s CRS.
To create a permanently reprojected layer:
Open the Processing Toolbox.
Search for a tool to reproject a layer.
Select the input layer.
Choose the target CRS.
Run the tool.
Save the output layer if it will be needed later.
Reprojection is especially important when an analysis requires meaningful distance units, such as meters.
Geographic vs. Projected Units
Latitude and longitude are angular units. A buffer created directly in a geographic CRS may therefore use degrees rather than meters.
For distance-based analysis:
Reproject the data into an appropriate projected CRS.
Confirm that the output units are appropriate.
Avoid assuming that degrees represent a fixed ground distance everywhere.
9. Styling and Symbolizing Data
Symbology controls how geographic features are drawn on the map.
To open a layer’s styling controls:
Double-click the layer.
Open the layer properties.
Select the symbology or styling section.
Users can change:
Color.
Size.
Shape.
Stroke or outline.
Opacity.
Icons.
Rotation.
Rendering order.
Blending modes.
Data-defined properties.
Single-Symbol Styling
A single symbol gives every feature the same appearance.
It is useful when:
The layer is being used for simple reference.
All features have equal visual importance.
The user is first checking whether the data loaded correctly.
Categorized Symbology
Categorized symbology styles features according to distinct text or category values.
Example: squirrel observations can be categorized by fur color:
Black.
Cinnamon.
Gray.
The workflow is:
Select categorized styling.
Choose the categorical field.
Click Classify.
QGIS creates a symbol for each unique value.
Edit colors or symbols individually.
Apply the changes.
Categorized styling allows the map to show where different classes occur. Individual categories can also be turned off in the legend to focus on one group.
Graduated Symbology
Graduated symbology styles features according to numeric values.
Examples include:
Tree-stump diameter.
Elevation.
Number of observations.
Population.
Distance.
Area.
Graduated styling can vary:
Color.
Symbol size.
Or both.
Classification Methods
Numeric data can be divided into classes using different methods:
Equal interval: Each class covers an equal numeric range.
Equal count: Each class contains a similar number of features.
Fixed interval: The user defines a fixed class width.
Logarithmic scale: Useful when values span a large range.
Natural breaks: Places class boundaries where groups of values naturally separate.
The appropriate classification method depends on the data distribution and the purpose of the map.
Handling Zero and Missing Values
Datasets may contain values recorded as zero even when the value was not actually measured. Such values can produce misleading symbols.
For example, a tree census may contain many zero values for stump diameter. If those zero values are symbolized, they may create a large group of visually dominant points.
Possible solutions include:
Filtering out zero values.
Treating zero as missing data when appropriate.
Creating a separate “no data” category.
Styling missing values differently.
Reviewing the dataset documentation before interpreting the values.
Symbol Size and Opacity
Users can adjust:
Minimum and maximum symbol size.
Symbol opacity.
Outline visibility.
Transparency.
Rotation.
Opacity is useful when many symbols overlap. Removing the outline may reduce visual clutter.
Data-Defined Symbology
Symbol properties can be controlled by fields in the dataset. For example:
A symbol can rotate according to an angle field.
A symbol can grow according to a numeric field.
A symbol can use a field-driven color.
A symbol can change based on a condition.
Rendering Order
When many symbols overlap, their rendering order affects which features appear on top.
Features may be ordered:
Ascending by a field.
Descending by a field.
According to a rule.
For example, larger tree symbols can be drawn above smaller ones so that their sizes remain visible.
Advanced Styling
QGIS also supports:
Rule-based styling.
Point displacement.
Point clustering.
Heat maps.
Embedded symbols.
Custom symbol libraries.
Zoom-dependent styling.
Blending modes.
Drawing effects.
Legend formatting.
Masking and label backgrounds.
10. Cleaning and Importing CSV Data
A CSV containing latitude and longitude requires special configuration before it can be displayed as a spatial layer.
Importing Latitude and Longitude
The usual coordinate assignment is:
Longitude: The x coordinate.
Latitude: The y coordinate.
The field names must be spelled correctly so QGIS can locate them.
A general workflow is:
Choose the option to add a vector layer.
Select the CSV file.
Identify the longitude field as the x coordinate.
Identify the latitude field as the y coordinate.
Assign the correct source CRS, commonly
EPSG:4326.Add the layer.
Zoom to the layer.
Verify that the points appear in the correct location.
Why Points May Appear in the Wrong Location
A CSV may contain coordinate values but no embedded spatial reference information. QGIS may therefore interpret the coordinates using the wrong CRS.
If data in latitude and longitude is interpreted as Web Mercator, the points can appear far from their actual location.
The correction is to assign or define the layer CRS as EPSG:4326. The coordinates themselves should not be transformed merely because the project uses another CRS; QGIS can reproject them for display once the source CRS is correctly defined.
Changing Field Data Types
GIS operations distinguish between text and numeric fields.
A numeric value stored as text cannot always be used for:
Graduated symbology.
Numeric sorting.
Mathematical calculations.
Statistical analysis.
Distance or size-based visualization.
The Processing Toolbox includes a Refactor Fields operation that can change field types.
Typical conversions include:
Text to integer.
Text to decimal.
Text to date.
Text to another supported field type.
A decimal field is appropriate when values may contain fractional values. The refactored output may initially be temporary, but it can be exported as a permanent file.
11. Attribute Tables
Each vector layer has an attribute table containing one row per feature and one column per attribute field.
The attribute table can be used to:
View feature information.
Search or filter records.
Select rows.
Pan to selected features.
Zoom to specific features.
Edit attribute values.
Calculate fields.
Organize data.
Inspect data quality.
Spatial selections and table selections are connected. Selecting a row in the table can highlight its corresponding geometry on the map, and selecting a feature on the map can identify its row in the table.
12. Labeling Features
Labels display attribute values directly on the map.
To label a layer:
Open the layer properties.
Select the labeling section.
Choose a field to display.
Set the font and size.
Adjust weight, placement, and visibility.
Apply the labeling settings.
Labels can be based on fields such as:
Park name.
Feature status.
Species.
Category.
Identification code.
The tutorial uses a status field to label tree features. Labels may appear or disappear as the map scale changes, especially when QGIS avoids excessive overlap.
More advanced labeling options include:
Rule-based labeling.
Label placement.
Collision and overlap handling.
Text formatting.
Backgrounds.
Masks.
Data-defined label properties.
13. Editing Existing Vector Data
QGIS allows users to modify vector geometries and attributes.
Entering Editing Mode
Editing can be started by:
Right-clicking a layer and enabling editing.
Selecting the pencil or toggle-editing control.
Editing mode should be used carefully because changes may update the source dataset.
Editing Polygon Vertices
To adjust a polygon boundary:
Select the polygon layer.
Enable editing.
Select the vertex or geometry editing tool.
Right-click or select the polygon to display its vertices.
Move an existing vertex.
Add or remove vertices as needed.
Save the changes.
Turn editing mode off.
A vertex is a coordinate that defines part of a line or polygon boundary.
Undoing or Cancelling Changes
During editing, users can:
Undo individual changes.
Cancel all unsaved edits.
Save changes for the selected layer.
If a group of edits is not wanted, canceling the edits prevents those changes from being written to the source file.
Creating New Geometries
QGIS can be used to digitize new features, such as:
Building footprints.
Property boundaries.
Trails.
Points of interest.
Areas traced from imagery.
To create a new polygon:
Create or select an editable polygon layer.
Enable editing.
Choose the tool for adding a polygon.
Click around the boundary to create vertices.
Right-click to finish the polygon.
Enter attribute values.
Save the edits.
Disable editing.
Snapping, curve tools, and digitizing controls can improve geometric accuracy.
Creating a New Vector Layer
A new vector layer can be created by specifying:
File name and storage location.
Geometry type.
Coordinate reference system.
Attribute fields.
Field names.
Field data types.
Field length or constraints.
For example, a building layer might use:
Polygon geometry.
A text field named
name.A numeric identification field.
The new layer initially contains its defined fields but no features. Features are added through editing and digitizing.
14. Creating Print Layouts
A print layout converts a map view into a composed cartographic page.
A layout can include:
The map itself.
A legend.
A scale bar.
A north arrow.
Text.
Images.
Shapes.
Markers.
Multiple map frames.
Basic Layout Workflow
Create a new print layout.
Name the layout.
Choose a page size and orientation.
Add a map item.
Drag a rectangle on the page to define the map area.
Allow the map to render.
Add supporting map elements.
Adjust positions and sizes.
Export or print the layout.
Map Elements
A legend explains the symbols and categories used in the map. Items can be added or removed to simplify the legend.
A scale bar provides a visual representation of map distance.
A north arrow indicates orientation.
Additional text and graphical elements can be used to make the map clearer and more professional.
Export Options
A completed layout can be:
Printed directly.
Exported as a PDF.
Exported as an SVG.
Saved for future modification.
SVG output is useful when the map needs to be edited in a vector graphics program.
15. QGIS Plugins
Plugins are extensions that add new functionality to QGIS.
To manage plugins:
Open the Plugins menu.
Choose the option to manage and install plugins.
Search the official plugin repository.
Select a plugin.
Install or upgrade it.
Confirm that it appears among the installed plugins.
Examples of useful plugins include:
QuickMapServices: Adds basemaps and web mapping services.
QuickOSM: Retrieves OpenStreetMap data.
MMQGIS: Provides additional simple GIS and analytical tools.
QGIS2Web: Exports QGIS projects as web maps.
Classification and digitizing tools.
Google Earth Engine integrations.
Specialized data-processing tools.
Plugins vary in quality and maintenance, so users should review their descriptions, compatibility, and update status.
16. Vector Spatial Analysis
Vector spatial analysis examines relationships among points, lines, and polygons.
Buffer Analysis
A buffer creates a zone around a feature at a specified distance.
Buffers can be created around:
Points.
Lines.
Polygons.
Examples include:
Areas within a certain distance of a playground.
Properties near a road.
Regions around a river.
Service areas around a facility.
Importance of Projection for Buffers
If the input layer uses latitude and longitude, the buffer distance may be expressed in degrees. This is usually unsuitable when the analysis requires meters or another meaningful linear unit.
A better workflow is:
Reproject the input layer into a projected CRS.
Confirm that the distance unit is meters or another appropriate unit.
Run the buffer operation.
Inspect the output zones.
Counting Points in Polygons
The Count Points in Polygons operation determines how many point features fall inside each polygon.
For example:
Polygon layer: playground buffers.
Point layer: squirrel observations.
Output: the number of squirrel observations within each buffer.
The output adds a count field to the polygon layer. The resulting counts can then be symbolized using graduated colors or sizes.
Optional settings may include:
A weighting field.
A class field.
A field containing the resulting number of points.
Interpreting the Result
The resulting map can show which areas contain the highest number of observations. In the example, some playground buffer zones contain more squirrel observations than others.
This type of analysis demonstrates a basic spatial question:
How many features of one type occur within areas defined by another type of feature?
Other Vector Analysis Tools
QGIS provides many other vector operations, including:
Nearest-neighbor analysis.
Shortest lines between features.
Distance matrices.
Clustering.
Point-to-line and line-to-point conversion.
Spatial joins.
Geometry transformations.
Selection by location.
Intersections and overlays.
Dissolving boundaries.
Extracting features by location or attribute.
17. Model Designer and Workflow Automation
The Model Designer allows users to combine several processing steps into a reusable workflow.
Instead of manually repeating every operation, a model stores:
Inputs.
Processing algorithms.
Connections between steps.
Outputs.
Optional styling or follow-up operations.
Example Model Structure
A model that counts points in buffered polygons could include:
A polygon vector layer input.
A point vector layer input.
A Count Points in Polygons algorithm.
An output layer containing the point counts.
The model can be run repeatedly with different input datasets.
Advantages of Models
Models are useful because they:
Reduce repetitive work.
Improve consistency.
Make complex workflows easier to reproduce.
Allow multiple processing steps to be chained.
Can be saved in the project or as a reusable model.
Can be exported or converted for use with Python-based workflows.
A model can be expanded with additional steps, such as styling the output, filtering results, or performing further analysis.
18. Raster Data and Digital Elevation Models
A raster represents space as a grid of cells. Each cell stores a value.
Raster data is useful for representing continuous phenomena, such as:
Elevation.
Temperature.
Rainfall.
Land cover.
Satellite imagery.
Slope.
Soil properties.
Digital Elevation Models
A Digital Elevation Model, or DEM, stores elevation values across a landscape.
A high-resolution DEM may have very small cells, such as one-foot cells. High-resolution data can be powerful but requires substantial storage and processing time.
Large raster datasets may:
Occupy several gigabytes.
Take longer to load.
Require more memory.
Slow down rendering and analysis.
Interpreting Elevation
An elevation layer can reveal:
Flat areas.
Hills.
Valleys.
Reservoirs or lakes.
Rocky outcrops.
Changes in terrain.
Relative differences in height across a landscape.
19. Clipping Raster Data
Large raster datasets often cover a much larger area than the project requires. Clipping reduces the raster to a study area.
Raster Mask Workflow
A vector polygon can be used as a mask:
Select the polygon defining the study area.
Export it as a separate layer if necessary.
Open the raster-processing tools.
Choose Clip Raster by Mask Layer.
Select the DEM as the input raster.
Select the study-area polygon as the mask.
Run the tool.
Use the clipped raster for subsequent analysis.
Clipping improves efficiency by removing irrelevant areas from the analysis.
20. Hillshade Analysis
A hillshade simulates illumination across a terrain surface. It creates light and dark areas that make elevation changes visually apparent.
Hillshade is useful for:
Showing terrain shape.
Emphasizing slopes.
Revealing ridges and valleys.
Providing visual context for elevation maps.
Making subtle terrain changes easier to interpret.
A hillshade does not necessarily display exact elevation values. Instead, it provides a visual representation of how terrain might appear under directional lighting.
21. Contour Generation
Contours are lines connecting locations with equal elevation.
A contour map can show:
Higher and lower terrain.
The shape of hills.
Valleys and ridges.
The relative steepness of slopes.
Elevation patterns across a study area.
Closely spaced contour lines generally indicate steeper terrain, while widely spaced lines indicate more gradual changes.
After generating contours from a DEM, the lines can be styled using graduated symbology based on the elevation field.
22. Shaded Relief and Terrain Visualization
A shaded relief map combines terrain elevation and simulated illumination to create a more visually realistic representation of landform.
It can reveal:
Hills and valleys.
Lakes and depressions.
Terrain direction.
Relative topographic structure.
Small landscape features.
Color ramps can be applied automatically or manually to emphasize different elevation ranges.
Other raster terrain operations include:
Slope calculation.
Aspect calculation.
Terrain classification.
Raster reclassification.
Zonal statistics.
Raster-to-vector conversion.
Raster interpolation.
Raster value extraction.
Combining raster and vector datasets.
Raster and vector data can also be combined. For example, elevation values can be extracted for point locations to determine the height of each point.
23. Network Analysis
Network analysis examines movement through connected lines, such as:
Roads.
Bike routes.
Walking paths.
Transit networks.
Utility networks.
A network dataset must generally contain connected line features that represent possible movement paths.
Shortest Path Analysis
QGIS can calculate routes between a starting point and one or more destinations.
A basic workflow is:
Create a point layer for destinations.
Add destination points to the map.
Assign an identifier to each point.
Open the network-analysis tools.
Select a shortest-path operation.
Select the bike-route or road layer as the network.
Select the destination point layer.
Specify a starting point.
Choose the path type.
Run the analysis.
Inspect the resulting route layer.
Shortest vs. Fastest Paths
Network tools may support different path criteria:
Shortest path: Minimizes route distance.
Fastest path: Minimizes travel time, usually using speed or travel-time information.
More advanced routing may use:
One-way restrictions.
Direction fields.
Default speeds.
Speed attributes.
Travel costs.
Barriers.
Service areas.
Interpreting Network Results
The output may contain a separate route or route segment for each destination. The resulting paths show how movement can follow the connected network rather than traveling in a straight line.
For advanced routing, QGIS can be combined with PostgreSQL, PostGIS, and routing extensions.
24. Exporting QGIS Projects as Web Maps
QGIS projects can be exported into interactive web maps using plugins such as QGIS2Web.
Web Map Export Workflow
Install a web-mapping export plugin.
Prepare the QGIS project and layers.
Open the web export tool.
Choose the layers to include.
Configure pop-ups and display options.
Enable clustering if appropriate.
Configure appearance and user-location options.
Choose an export folder.
Select a web-mapping library, such as OpenLayers or Leaflet.
Export the project.
Open the resulting HTML file in a browser.
Web Map Contents
The exported folder may include:
An HTML file.
JavaScript files.
CSS stylesheets.
Images.
Layer data.
Supporting resources.
The resulting web map may provide:
Zooming and panning.
Interactive feature clusters.
Pop-up attribute information.
Geolocation.
Web-based layer display.
The exported files can be placed on a web server or storage bucket to share the map online.
25. Overall QGIS Workflow
A typical beginner-to-intermediate QGIS workflow is:
Install QGIS.
Create a new project.
Set or confirm the project CRS.
Create a data folder and add it as a Browser favorite.
Download spatial data from an open-data portal.
Add vector or raster layers to the project.
Inspect geometry and attribute information.
Add a basemap for geographic context.
Organize layer order and visibility.
Reproject data when analysis units require it.
Clean field types and missing values.
Style layers using single symbols, categories, or graduated values.
Add labels.
Edit or digitize vector geometries if needed.
Run vector, raster, or network analysis.
Save analysis outputs.
Build a print layout or export a web map.
Save the project regularly and preserve the source data.
QGIS supports a continuous progression from basic map creation to advanced analysis, automated models, database integration, terrain processing, routing, and interactive web mapping.

Ask anything
We've read this whole study set, so questions about it get the best answers.