QGIS Beginner Tutorial


QGIS Beginner Tutorial

Anna
Hello, everyone, and welcome to our introduction to QGIS. Today we are going to start from the absolute basics: what QGIS is, why people use it, how to install it, and how to create maps and perform spatial analysis.

Michael
QGIS is an open-source geographic information system, or GIS. It is free to download and use, and its source code and contributions are publicly available. That means people around the world can inspect, support, test, document, and contribute to the project under its contribution rules.

Anna
And QGIS is not limited to beginners. It supports introductory GIS concepts, advanced analysis, Python scripting, web projects, trajectory data, and integrations with other open-source tools such as PostGIS. Its plugin ecosystem also extends what the core software can do.

Michael
It is also cross-platform, so you can use it on macOS, Windows, or Linux. Because it is open source, it can also be deployed in cloud environments and scaled for different kinds of projects. QGIS began in 2008 as Quantum GIS and has grown into a much larger ecosystem.

Anna
The project website is an important resource. It includes information about QGIS, user guides, training materials, support, documentation, user groups, and ways to contribute through testing, mailing lists, and documentation. Be sure to check the documentation for the version you are using, although many core concepts carry across versions.

Michael
The software is distributed under a Creative Commons 4.0 license, which permits distribution and modification under certain conditions. Anyone who needs the exact legal details should consult the project website.

Anna
To install QGIS, go to the official download page and choose the version for your operating system. At the time of the tutorial, the current version was 3.34 Prizren, but versions change, so the important step is to download the appropriate current release.

Michael
On a Mac, the downloaded file opens with instructions to drag QGIS into the Applications folder. If another version is already installed, you can usually overwrite it with the new version. Windows and Linux have their own installation instructions on the download page.

Anna
Your computer may warn that QGIS comes from an unverified developer, especially on macOS because it was not downloaded directly from the App Store. If you trust the download and have permission to do so, use your computer's security settings to allow the application to open. Once QGIS launches, you will see an opening page with news and project information.

Michael
The first practical step is to create a new project. You can use Project and then New, or use the new-project option on the opening screen. A project stores the map layers, styling, projection settings, and other components of your work.

Anna
The lower-left Layers panel lists the layers in your map. You can reorder them, remove them, filter them, and turn their visibility on or off. The order matters because QGIS renders layers from the bottom upward, so a layer placed above another can cover it.

Michael
The browser panel gives you access to data sources on your computer and to other connections. You can browse folders, volumes, drives, databases, web mapping services, XYZ tiles, and ArcGIS REST servers. You can also create favorites, such as a tutorial folder, so you can return to it quickly.

Anna
The large blank area is the map canvas. This is where your map appears. As you move the cursor, QGIS displays coordinates, and the interface also shows the map scale. You can zoom with the mouse wheel or keyboard shortcuts, pan around, adjust magnification, and rotate the map.

Michael
If a map takes a long time to redraw, you can turn rendering off while navigating and turn it back on when you are ready to see the updated map. The project projection is managed through the project settings, where you can search for and select from available coordinate reference systems.

Anna
Across the top are toolbars and menus. They include file commands, saving and printing tools, zoom and pan controls, bookmarks, feature identification, and tools for creating and editing geometries. Toolbars are customizable: right-click in the toolbar area to turn individual toolbars on or off.

Michael
The menus provide access to settings, plugins, vector tools, raster tools, database tools, and more. If you cannot find a command, QGIS has help and search options. The Processing Toolbox is especially important because it contains analysis and data-conversion tools, including network analysis, raster and vector operations, GDAL operations, and GRASS operations.

Anna
For our example data, we will use New York City's open data portal and focus on Central Park. The portal contains many map-related datasets, including parks, trees, playgrounds, protected natural areas, permits, bike routes, and even squirrel observations.

Michael
When downloading spatial data, look for formats such as GeoJSON or shapefile. KML and KMZ are associated especially with Google Earth, although QGIS can use them. A shapefile normally arrives as a ZIP archive containing several related files; the SHP file is the main geometry file, but the other files help QGIS interpret the data.

Anna
GeoJSON is often convenient because it is a single file. To add a downloaded layer, place it in a folder, locate it in QGIS's browser panel, and either right-click and choose Add Layer to Project or drag it into the Layers panel.

Michael
Once a parks layer is on the map, use the Identify Features tool, represented by an information icon, to click a feature. You can inspect attributes such as the park's name, category, ZIP code, jurisdiction, website, and other information.

Anna
This illustrates the two components of geographic data. Geometry describes where an object exists and may be represented as a point, line, or polygon. Attributes are the associated tabular information, such as text, numbers, or URLs. Park boundaries are polygon geometry, while individual squirrel observations are point geometry.

Michael
You can add several layers to the map, including park properties, playground areas, Forever Wild areas, park-permit areas, bike routes, and squirrel census points. The Layers panel lets you switch each layer on or off and drag layers into a different drawing order.

Anna
A useful plugin is QuickMapServices. Install it through Plugins, then Manage and Install Plugins. After installation, it can provide basemaps such as OpenStreetMap, so you do not need to download every road and contextual layer yourself.

Michael
If the plugin does not appear immediately, restarting QGIS may help. From QuickMapServices, you can choose OpenStreetMap Standard and place it beneath your other layers. The basemap makes roads, locations, and surrounding context easier to understand.

Anna
A basemap also highlights why projections matter. Web maps commonly use Web Mercator, EPSG 3857, while geographic coordinates are often stored in EPSG 4326. If the project uses 4326 while the web basemap uses 3857, labels and map features may look distorted or poorly aligned.

Michael
You can change the project coordinate reference system in the project settings. Search for EPSG 3857, select it, apply the change, and the map should become more legible with the web basemap. Different projections may still be appropriate for particular mapping, printing, or measurement needs.

Anna
QGIS also lets you enter coordinates manually, copy coordinates, set a scale such as one to one hundred thousand or one to one thousand, and change map rotation. These controls are useful when you need a specific view or scale for analysis or print preparation.

Michael
Before doing much work, save the project with the Save command. A QGIS project is commonly saved as a QGZ file. If you see an asterisk in the project title, there are unsaved changes, so save periodically.

Anna
Now let's talk about styling. Double-click a layer to open its properties, then choose the symbology or styling section. You can change the color, size, opacity, outline, icons, rotation, and other visual properties of features.

Michael
Categorized styling is useful when a field contains distinct text categories. For the squirrel census, we can categorize by primary fur color, classify the values, and style categories such as black, cinnamon, and gray with different colors. The legend then lets us see or hide individual categories.

Anna
Graduated styling is designed for numeric data. For the tree census, we can visualize stump diameter, which describes tree width. Classification methods include equal count, equal interval, fixed interval, logarithmic scale, and natural breaks. You can choose the number of classes and inspect the distribution with a histogram.

Michael
A common data problem is that a numeric field may have been imported as text. If stump diameter is treated as text, it cannot be used properly for graduated styling. In the Processing Toolbox, the Refactor Fields tool can change the field type to a decimal or another numeric type.

Anna
After refactoring the field, you can symbolize the trees by color or size. Larger symbols can represent larger stump diameters, while smaller symbols represent smaller diameters. You can also remove zero or missing-value records from the display when they do not represent useful measurements.

Michael
The attribute table lets you inspect and edit the underlying records. You can filter rows, select features, pan or zoom the map to selected records, and perform field calculations. This table is where the geometry and attribute information come together.

Anna
Labels are another part of map design. In the layer properties, choose a labeling option and select a field, such as the tree status. You can adjust the font, size, weight, formatting, masking, and placement. Labels appear where the selected field contains values, and they update as you zoom.

Michael
QGIS also supports editing vector data. Toggle editing with the pencil icon, select an editable layer, and use vertex tools to move, add, or adjust points in a polygon. You can save the edits or cancel them, and you should turn editing off when finished so you do not accidentally change the data.

Anna
You can create a new vector layer when you need your own data. Choose a file name, select a geometry type such as polygon, choose a projection, and add fields such as an ID or name. Then toggle editing on, draw a geometry, and enter its attribute values.

Michael
For printing, create a new print layout from the File menu or the layout button. Add a map item by dragging a rectangle onto the page, then add components such as a legend, scale bar, and north arrow. You can resize items and export the layout as an image, SVG, or PDF, or send it to a printer.

Anna
Plugins extend QGIS beyond its built-in tools. In the plugin manager, you can browse installed and available plugins. Examples include QuickMapServices, QuickOSM, MMQGIS, QGIS to Web, digitizing tools, classification tools, and integrations with other systems.

Michael
Let's apply spatial analysis to a simple question: how many squirrels were observed near playgrounds? First, we need a suitable projection. If the data is in EPSG 4326, a buffer distance is measured in degrees, which is not what we want when asking for a distance in meters.

Anna
Use the Reproject Layer tool in the Processing Toolbox to create a version in EPSG 3857. Then use the Buffer tool on the playground layer and specify a distance, such as 200 meters. The result is a set of buffer polygons surrounding the playground areas.

Michael
Next, use Count Points in Polygons. Choose the buffer polygons as the polygon layer and the squirrel observations as the points layer. QGIS counts the squirrel points inside each buffer and creates a count field, which you can style with graduated colors to compare areas.

Anna
This is only one example of the Processing Toolbox. Other tools can find nearest neighbors, calculate shortest lines, create distance matrices, perform clustering, convert between raster and vector data, and carry out many other spatial operations.

Michael
For repeated or complex workflows, use the Model Designer. You can define inputs such as a polygon layer and a point layer, add an algorithm like Count Points in Polygons, connect the steps, and save the model. The saved model can be run again with different input data and can also be exported as a script.

Anna
QGIS handles raster data as well as vector data. A digital elevation model, or DEM, stores elevation values in raster cells. The tutorial uses a very detailed one-foot DEM for Central Park, but the uncompressed file is several gigabytes, so storage and processing time matter.

Michael
To focus on Central Park, select its polygon from the park-properties layer and export the selected feature as a separate layer. Then use Clip Raster by Mask Layer with the DEM as the input raster and the Central Park polygon as the mask. This produces a smaller raster containing only the area of interest.

Anna
From that clipped elevation raster, you can create a hillshade. Hillshading gives the terrain a three-dimensional visual effect, making flat areas, hills, rocks, and other changes in elevation easier to see.

Michael
You can also generate contour lines from the elevation raster. Style the contours using their elevation values and a graduated color scheme. The resulting map shows higher and lower parts of the park and makes elevation changes visible on top of a basemap.

Anna
Another raster option is a shaded relief map, which can provide a strong visual impression of the terrain. Raster tools also support reclassification, interpolation, zonal statistics, raster creation, raster-to-vector conversion, and terrain analysis.

Michael
Raster and vector data can also be combined. For example, elevation values can be associated with vector points or other features, allowing you to determine the elevation at particular locations.

Anna
QGIS includes network analysis tools as well. Using bike-route lines as a network and a layer of point destinations, you can calculate shortest or fastest paths from a starting point to those destinations.

Michael
To prepare the example, create a point vector layer, add an ID field, toggle editing, and place several points on the map. Then open the shortest-path tool, select the bike routes as the network, choose the destination points, and click a starting location.

Anna
The tool builds a graph from the network and calculates a route to each destination. You can use shortest or fastest paths and, in more advanced cases, provide information about direction, one-way routes, or speed. More advanced routing can be done by connecting QGIS with PostGIS and routing tools.

Michael
Finally, QGIS projects can be exported as web maps. The QGIS to Web plugin lets you choose layers, configure popups, add clustering, adjust appearance, enable geolocation, and select an export location.

Anna
The export creates an HTML-based web map with JavaScript, CSS, image, and data files. When you open the HTML file, you can pan and zoom, see clustered points, select individual tree locations, and view popup attributes. The resulting map can be placed in suitable online storage and shared.

Michael
That brings together the main workflow: install QGIS, create a project, add and organize data, choose an appropriate projection, style and label features, edit or create layers, build print layouts, run vector and raster analysis, calculate network routes, and export an interactive web map.

Anna
This is still an introduction. QGIS also supports QGIS Server, more advanced analysis, database integrations such as PostGIS, Python, and many additional plugins. The key idea is that QGIS can grow with you, from your first map to much more complex spatial projects.

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