QGISTrainingManual Part2 QGIS 3.16.7
QGISTrainingManual Part2 QGIS 3.16.7
QGISTrainingManual Part2 QGIS 3.16.7
16 Training Manual
INTRODUCTION
QGIS is a free and open-source geographic information system (GIS) software that allows
users to display, manage, manipulate, analyze, and present geospatial data. Its
development started in 2002 and was eventually adopted as an incubator project of the
Open-Source Geospatial Foundation (OSGeo) in 2007. QGIS is fast developing as it is being
periodically updated by GIS experts around the world. It is also a user-friendly software
which provide common functions and features that are easy to learn and understand by
its users. QGIS is also available on multiple platforms as you can have it installed in
Windows, Mac, and Linux OS. Furthermore, QGIS also has a wide range of plugins that you
can install to customize it depending on your needs. Lastly, QGIS supports a wealth of
raster and vector data formats, with new format support easily added using the plugin
architecture.
The Manual is composed of two parts which are divided into several chapters:
• Part I: Basic GIS aims to introduce the fundamental concepts of GIS and the
common functionalities of the QGIS software and equip its users with basic
knowledge and skills on map preparation. Part I covers topics such as
georeferencing, reprojecting layers, digitizing features, applying map symbology,
feature labelling, and creating a basemap layout.
• Part II: Advance GIS seeks to provide QGIS tools and GIS methods and techniques
that can assist its users in performing spatial analysis to address various
planning-related concerns that have spatial context. Part II includes topics such as
using attribute tables, creating choropleth maps, preparing hazard maps, using
geoprocessing tools, and creating a land use map. In addition, it also contains
supplementary chapters on using Google Earth Pro, adding Google Map layers in
QGIS, and exploring the GPS Essentials mobile application.
1|Page
QGIS 3.16 Training Manual
Table of Contents
2|Page
QGIS 3.16 Training Manual
3|Page
QGIS 3.16 Training Manual
Chapter 1
WORKING WITH ATTRIBUTE TABLES
Introduction
Each vector feature contained in a shapefile has certain characteristics that describes
the real-world object that it represents. For example, in a barangay boundary shapefile
in which each polygon represents a barangay, these attributes may include the barangay
name, area in hectares, total population, annual revenue, etc. In GIS, these descriptions
are stored in an attribute table. An attribute table is similar to a spreadsheet file that
consists of fields (columns), and records (rows) (QGIS Development Team, n.d.).
Objectives
In this exercise, participants will learn how to add and remove fields, select features from
the attribute table using Select by Expression, and calculate the area of each feature
using the Field Calculator.
4|Page
QGIS 3.16 Training Manual
2. Right-click the ELUM in the Layers panel and select Open Attribute Table.
Observe the contents of the attribute table. Then, click the Select features
using an expression icon.
5|Page
QGIS 3.16 Training Manual
3. In the Select by Expression dialog box, do the following (See Figure 1.3):
a. In the center panel, click the dropdown arrow beside Fields and Values.
b. Double-click Category under Fields and Values.
c. In the Expression panel, click the Equal Operator button.
d. In the right panel, click [All Unique].
e. In the right panel, double-click Agricultural.
Figure 1.3 Using the Select by Expression function to select agricultural areas
5. Check the attribute table again. Notice that all of the features labelled as
Agricultural under the field Category were highlighted. The number of selected
features is also displayed on the topmost portion of the Attribute Table window
(See Figure 1.4).
6. Go to the Map View. Notice that the selected features on the attribute table were
also highlighted on the vector shapefile (See Figure 1.4).
6|Page
QGIS 3.16 Training Manual
Figure 1.4 Agricultural areas highlighted in the attribute table and in the shapefile
2. In the Attribute Table window, click the Deselect all features from the layer
icon or simply press Ctrl + Shift + A on the keyboard to deselect all highlighted
features in the attribute table and the shapefile.
Figure 1.5 Deselected features in the attribute table and in the shapefile
7|Page
QGIS 3.16 Training Manual
2. In the Select by Expression dialog box, do the following (See Figure 1.6):
a. In the center panel, click the dropdown arrow beside Fields and Values.
b. Double-click Category under Fields and Values.
c. In the Expression panel, click the Equal Operator button.
d. In the right panel, click [All Unique].
e. In the right panel, double-click Residential.
f. In the Expression panel, type in “OR”.
g. Repeat the process b to d.
h. In the right panel, double-click Urban Expansion.
Figure 1.6 Using the Select by Expression function to select residential and urban expansion areas
4. Check both the attribute table and Map View again. Notice that all of the features
categorized as Residential or Urban Expansion were highlighted. The number of
8|Page
QGIS 3.16 Training Manual
selected features is also displayed on the topmost portion of the Attribute Table
window.
Figure 1.7 Residential and urban expansion areas highlighted in the attribute table and
in the shapefile
2. In the Select by Expression dialog box, do the following (See Figure 1.8):
a. In the center panel, click the dropdown arrow beside Fields and Values.
b. Double-click Category under Fields and Values.
c. In the Expression panel, click the Equal Operator button.
d. In the right panel, click [All Unique].
e. In the right panel, double-click Residential.
f. In the Expression panel, type in “AND”.
g. Double-click Area_has under Fields and Values.
h. In the Expression panel, type in “> 100”.
9|Page
QGIS 3.16 Training Manual
Figure 1.8 Using the Select by Expression function to select residential areas
with an area of greater than 100 hectares
4. Check both the attribute table and Map View again. Notice that all of the features
categorized as Residential with an area of greater than 100 has were
highlighted. The number of selected features is also displayed on the topmost
portion of the Attribute Table window.
10 | P a g e
QGIS 3.16 Training Manual
Figure 1.9 Residential and urban expansion areas highlighted in the attribute table and
in the shapefile
2. In the Select by Expression dialog box, do the following (See Figure 1.10):
a. In the center panel, click the dropdown arrow beside Fields and Values.
b. Double-click Category under Fields and Values.
c. In the Expression panel, click the Equal Operator button.
d. In the right panel, click [All Unique].
e. In the right panel, double-click Forest.
11 | P a g e
QGIS 3.16 Training Manual
Figure 1.10 Using the Select by Expression function to select forest areas
4. In the Layers panel, right-click on the ELUM layer and go to Export → Save
Selected Features as…
12 | P a g e
QGIS 3.16 Training Manual
5. In the Save Vector Layer as… dialog box, do the following: (See Figure 1.12).
a. In the Format options, select ESRI Shapefile from the dropdown menu.
b. In the Filename input box, click the Browse button and navigate to the
training folder: C:\QGIS Training Data\01_Vector Data. Input “Forest”
as the filename and click [Save].
c. Make sure that the Save only selected features and Add saved file to
map options are checked.
13 | P a g e
QGIS 3.16 Training Manual
Figure 1.12 Save vector layer as dialog box with the input settings
6. Notice that a new layer named Forest was added to the Map View and Layers
panel. The new shapefile contains the selected features in the attribute table. (See
Figure 1.13).
14 | P a g e
QGIS 3.16 Training Manual
1. Remove the ELUM and Forest layers in the Layers panel. Then, add the vector
layer brgy_bnd.shp using any technique that you have learned from the previous
exercises.
2. Right-click the brgy_bnd in the Layers panel and select Open Attribute Table.
Observe the contents of the attribute table.
15 | P a g e
QGIS 3.16 Training Manual
3. In the Attribute Table window, click the Toggle Editing Mode icon or simply
press Ctrl + E on your keyboard. This will make the attribute table editable.
4. Click the New Field icon or simply press Ctrl + W on your keyboard to open
the Add Field window. Set the following inputs on the dialog box (See Figure 1.16):
Name= Area_has
Comment= (Leave as blank)
Type= Decimal number (real)
Length=10
Precision=2
5. Click [OK] when you are done. A new field (column) named Area_has has been
added with a record (row) having null information.
16 | P a g e
QGIS 3.16 Training Manual
6. Click the Save Edits icon to save any changes that you made on the attribute
table. Then, click the Toggle Editing Mode icon again or press Ctrl + E to
disable editing.
1. In the Attribute Table window, click the Toggle Editing Mode icon or press
Ctrl + E on the keyboard.
2. To delete a field, click the Delete Field icon or simply press Ctrl + L on the
keyboard. The Delete Fields dialog box will appear.
3. In the Delete Fields dialog box, click the field that you are planning to delete. In
this exercise, we will delete the field named Area_has. Click [OK]. The field
(column) Area_has will be deleted from the attribute table of the brgy_bnd vector
layer.
17 | P a g e
QGIS 3.16 Training Manual
4. Click the Toggle Editing Mode icon again or press Ctrl + E to disable editing.
On the Stop Editing dialog box that will open, click [Discard] for now because we
will need the Area_has field to calculate the area of the polygon features.
1. Open the attribute table of the brgy_bnd layer. Then, click the Toggle Editing
Mode icon or simply press Ctrl + E on your keyboard.
3. In the Field Calculator dialog box, do the following (See Figure 1.19):
a. Mark a check on the box provided for the Update existing field option.
b. On the dropdown list below the Update existing field option, select
Area_has.
c. In the center panel, click the dropdown arrow beside Geometry.
d. Under Geometry, double-click $area.
e. Under the Expression panel, click the Division Operator button.
f. Type in 10000 in the Expression panel.
g. Click [OK].
18 | P a g e
QGIS 3.16 Training Manual
4. Check the attribute table. Notice that the field Area_has does not contain null
values anymore. It now contains the area of each barangay in hectares. (See Figure
1.20).
19 | P a g e
QGIS 3.16 Training Manual
5. Click the Save Edits icon to save any changes that you made on the attribute
table. Then, click the Toggle Editing Mode icon again or press Ctrl + E to
disable editing. Close the attribute table.
END OF EXERCISE
20 | P a g e
QGIS 3.16 Training Manual
Chapter 2
JOINING NON-SPATIAL DATA WITH VECTOR DATA
Introduction
There are instances wherein we need to add new fields and attributes to our vector
datasets but these information are contained in a non-spatial data format such as Excel
files (.xls, .xlsx) or CSV files (.csv). In such cases, we do not need to manually input each
of these data in the attribute table. QGIS allows its users to append standalone tables
with attribute tables through Table Joins as long as both tables share a common field
and there needs to be a cardinality of one-to-one or many-to-one between its attributes
(PACKT Books, 2015).
Objectives
In this exercise, participants will learn how to use Table Joins to append a population
data in an Excel worksheet, to the attribute table of a barangay boundary vector layer.
Materials
1. Launch the QGIS Desktop 3.16.7 software. Add the vector shapefile brgy_bnd.shp
using the steps that you have learned in the previous exercises.
2. Open the Data Source Manager and select the Vector tab. Click the Browse
button and navigate to the C:\QGIS Training Data\02_Tables folder.
3. Select the Excel file brgy_population.xlsx. Make sure that the File Format on the
dropdown list beside the Filename input box is set to All files (*). Click [Open].
21 | P a g e
QGIS 3.16 Training Manual
Tip: Alternatively, you may simply drag the Excel file from your folder to the Map
View or double-click it in the Browser panel.
4. Check the contents of the Layers panel. It should contain the Excel file named
brgy_population Sheet 1 and the shapefile named brgy_bnd (See Figure 2.2).
5. Open the attribute tables of brgy_bnd and brgy_population and observe which
field values are common to both. Notice that the PSGC_ID field of the population
data and the BRGY_ID of the barangay boundary shapefile contain similar
attributes that may be used to match the features contained in the two datasets.
22 | P a g e
QGIS 3.16 Training Manual
7. In the Layer Properties window, click the Join tab. Then, click the Add New
Join icon. The Add Vector Join dialog box will appear.
23 | P a g e
QGIS 3.16 Training Manual
8. Set the following parameters on the Add Vector Join dialog box (See Figure 2.5):
9. Click [OK] when you are done. The Layer Properties window should now contain
the following information as shown in Figure 2.6.
24 | P a g e
QGIS 3.16 Training Manual
Figure 2.6 Layer Properties dialog box after joining the tables
10. Press [Apply] and [OK] respectively to close the Layer Properties dialog box.
11. Open the Attribute Table of brgy_bnd. Notice that the attribute table has now
included the BRGY_NAME and POPULATION fields from the Excel file (See Figure
2.7). Close the attribute table for now.
Figure 2.7 Attribute table of the brgy_bnd layer after joining the tables
25 | P a g e
QGIS 3.16 Training Manual
2. In the Save Vector Layer as… dialog box, do the following (See Figure 2.8):
a. In the Format options, select ESRI Shapefile from the dropdown menu.
b. In the Filename input box, click the Browse button and navigate to the
training folder: C:\QGIS Training Data\01_Vector Data. Input
“brgy_POP” as the filename and click [Save].
3. In the Layers panel, remove all the layers except for the brgy_POP shapefile.
26 | P a g e
QGIS 3.16 Training Manual
4. Open the Attribute Table of the brgy_POP layer. Notice that the new shapefile
has preserved the joined attributes from the Excel file.
Figure 2.9 Attribute table of the exported shapefile with preserved attributes from the Excel file
END OF EXERCISE
27 | P a g e
QGIS 3.16 Training Manual
Chapter 3
CREATING A POPULATION DENSITY MAP
Introduction
Now that we have explored the attribute table, we are ready to create maps based on the
attributes of vector features. One of the commonly used maps in the planning process is
the population density map. A population density map shows the population per unit
area. This can be used by planners in formulating plans and policies based on the
population distribution profile of the city or municipality. It may also be included in the
Exposure Database for the Climate and Disaster Risk Assessment (CDRA) process.
Objectives
In this exercise, participants will learn how to calculate and map the population density
per barangay using the attribute table and the tools that we have utilized in the previous
mapping exercises.
Materials
For this exercise, participants will use the output dataset from the previous activity:
1. Launch the QGIS Desktop 3.16.7 software. Then, add the vector layer
brgy_POP.shp using the techniques that you have learned so far.
28 | P a g e
QGIS 3.16 Training Manual
2. Open the attribute table. Click the Toggle Editing Mode icon or press Ctrl + E
to start editing the attribute table. Then, click the New Field icon or press Ctrl
+ W to add a new field.
3. In the Add Field dialog box, input the following (See Figure 3.2):
Name= pop_dense
Comment= (leave as blank)
Type= Whole number (integer)
Length=3
4. Click [OK] to apply the settings. You will notice that a new field (column)
pop_dense has been added with a record (row) having null information.
29 | P a g e
QGIS 3.16 Training Manual
5. Click the Save Edits icon to save any changes that you made on the attribute
table. Then, click the Toggle Editing Mode icon again or press Ctrl + E to
disable editing.
3. In the Field Calculator dialog box, do the following (See Figure 3.4):
a. Mark a check on the box provided for the Update existing field option.
b. On the dropdown list below the Update existing field option, select
pop_dense.
c. In the center panel, click the dropdown arrow beside Field and Values.
d. Under Field and Values, double-click brgy_pop_1.
e. Under the Expression panel, click the Division Operator button.
f. Under Field and Values, double-click Area_has.
g. Click [OK].
Figure 3.4 Calculating the population density using the Field Calculator function
30 | P a g e
QGIS 3.16 Training Manual
4. Click the Save Edits icon to save any changes that you made on the attribute
table. Then, click the Toggle Editing Mode icon again or press Ctrl + E to
disable editing.
5. Check the contents of the attribute table. The field pop_dense should now display
the population density of each barangay. Close the Attribute Table for now.
2. In the Layer Properties window, click on the Symbology tab. Then, select
Graduated on the topmost dropdown list (See Figure 3.6).
31 | P a g e
QGIS 3.16 Training Manual
3. In the Symbology tab, set the following inputs (See Figure 3.7):
Value= pop_dense
Precision= 0
Color Ramp = Reds
Mode = Natural Breaks (Jenks)
Classes = 5
Note: You are free to use your preferred symbology for the population density
map. As a general rule, the chosen colors or shades should visually represent the
increasing population density.
4. Leave other settings as default. Click [Apply] but do not close the Layer
Properties window yet. Your Map View should look like this.
32 | P a g e
QGIS 3.16 Training Manual
Note: QGIS allows users to use different modes of classifying numerical data into
intervals. You can explore the following modes to determine which one is the most
applicable to the given dataset (QGIS Development Team, n.d.):
• The Equal Interval method groups data values based on equal-sized intervals
(e.g., Given 50 unique values and 5 classes, the created classes will be 0-10, 10-20,
20-30, 30-40, and 40-50).
• The Equal Count (Quantile) method ensures that all of the classes will have the
same number of features (e.g., Given 50 unique values and 5 classes, each class
will contain 10 features).
• The Logarithmic Scale method sets narrow intervals for low values and wide
intervals for high values (e.g., Given 100 unique values and 2 classes, the created
classes will be 1-10 and 10-100).
• The Natural Breaks (Jenks) method classifies data based on its natural
groupings. It makes sure that there is maximum variance between classes and
minimum variance between features within each class.
• The Standard Deviation method clusters features based on mean values and
standard deviations from the mean.
• The Pretty Breaks method is a complex mode based on pretty algorithm in the R
statistical package.
33 | P a g e
QGIS 3.16 Training Manual
2. In the Labels tab, set the following inputs (See Figure 3.10):
Value= Brgy_Nm
Font= Arial
Style=Regular
Size=10
34 | P a g e
QGIS 3.16 Training Manual
4. If you have followed all the steps correctly, your map should look like Figure 3.11
on the Map View.
END OF EXERCISE
35 | P a g e
QGIS 3.16 Training Manual
Chapter 4
CREATING A FAULTLINE HAZARD MAP
Introduction
The first step in the CDRA process is the collection and organization of climate change
and hazard information. One of the maps that should be prepared by planners to analyze
the scope and impact of hazards is the faultline hazard map. A faultline hazard map
may be used to identify houses and establishments that lie along a faultline and
determine the areas that could be severely affected in case of an earthquake, and thus,
are not suitable for urban expansion.
Objectives
In this exercise, participants will learn how to prepare a faultline hazard map of a
municipality. Furthermore, trainees will also be taught how to use the Buffer
geoprocessing tool in QGIS which allows its users to generate a polygon shapefile
surrounding a vector feature based on the input buffer distance. Using this tool, planners
will be able to determine the areas surrounding the faultline that should be evacuated
immediately.
Disclaimer: The tutorial only covers some parts that are being done in a real analysis.
The results that are being displayed in the tutorial cannot be compared with the results
a real analysis would generate. All map layers are presumed to have been digitized,
projected and georeferenced before proceeding to this tutorial.
Materials
Tip: You may add all the vector files at once. In the Data Source Manager, press
the CTRL on your keyboard while clicking all of the shapefiles needed. Then, click
Open. This is also applicable when dragging the files from the training folder to
the Map View.
36 | P a g e
QGIS 3.16 Training Manual
2. Rearrange the layers in the following order, with the first layer on the topmost
position, by left-clicking and dragging each layer on the Layers panel to make all
the layers visible on the Map View:
i. EM05_Faultline
ii. River
iii. Road
iv. brgy_bnd
3. Edit the symbology of the River, Road, and brgy_bnd shapefiles using the skills
that you have learned from the previous exercises. Do not modify the properties
of the EM05_Faultline yet (See Figure 4.2).
37 | P a g e
QGIS 3.16 Training Manual
Note: In this exercise, we will assume that areas that are 5 meters from the faultline are
not suitable for future urban development based on the prescribed minimum buffer zone
from the Faultline by the Philippine Institute of Volcanology and Seismology
(PHIVOLCS).
Note: If you cannot find the Buffer tool in the Vector menu, you may search for
the tool in the Processing Toolbox panel located at the right side of the window.
If the panel is not displayed on the screen, right-click on an area where the
toolbars and other panels are located and click the box beside the Processing
Toolbox option.
a. In the Input Layer options, select EM05_Faultline from the dropdown list.
b. Set the Distance to 5.0 meters.
d. In the Buffered save option, click on the dropdown button and select Save
to file…. Navigate to the training folder: C:\QGIS Training Data\01_Vector
Data and type in “5M faultline_buffer” on the Filename input box. Select
SHP files (*.shp) as the file type and click [Save].
e. Mark a check on the box provided for the Open output file after running
algorithm option.
38 | P a g e
QGIS 3.16 Training Manual
3. The new buffer layer 5m_faultline_buffer will be added to the Layers panel as
shown in Figure 4.5.
5. In the Symbology tab, Click Simple Fill on the topmost panel of the window to
bring out other fill options. Set the Symbol Layer Type to Simple Fill. Set the Fill
39 | P a g e
QGIS 3.16 Training Manual
Color to Red and the Stroke Style to No Pen. Then, click [Apply] and [OK]
respectively.
6. Zoom in to the location of the 5M_faultline_buffer layer in the Map View and
make sure that the EM05_Faultline layer is visible. If not, drag the line layer above
the buffer layer in the Layers panel and change the Line Color to White using the
steps that you have learned in the previous exercises. If you have followed the
steps correctly, your Map View should display something similar to Figure 4.7.
40 | P a g e
QGIS 3.16 Training Manual
Figure 4.7 Faultline line shapefile overlaid to the 5-meter buffer shapefile
END OF EXERCISE
41 | P a g e
QGIS 3.16 Training Manual
Chapter 5
CREATING A FLOODING HAZARD MAP
Introduction
Another map that should be prepared for the CDRA process is the flooding hazard map.
A flooding hazard map shows the areas that are at risk of flooding under extreme
conditions (Zhu, Linham, and Nicholls, 2010). It can be used to identify barangays that
should be prioritized in the implementation of flood mitigation strategies, quantify the
number of people, houses, livelihood, natural resources, and critical point facilities that
could be affected by the flooding hazard, and determine areas which are not suitable for
urban development.
Objectives
In this exercise, participants will learn how to prepare a flooding hazard map of a
municipality using the mapping skills and tools that were taught in the previous
exercises. In addition, participants will also be introduced to the Clip geoprocessing tool
which can be used to extract a portion of an input layer based on the extent of the
clipping layer.
Disclaimer: The tutorial only covers some parts that are being done in a real analysis.
The results that are being displayed in the tutorial cannot be compared with the results
a real analysis would generate. All map layers are presumed to have been digitized,
projected, and georeferenced before proceeding to this tutorial.
Materials
2. Rearrange the layers in the following order, with the first layer on the topmost
position, by left-clicking and dragging each layer on the Layers panel to make all
the layers visible on the Map View:
42 | P a g e
QGIS 3.16 Training Manual
i. EM03_Flooding
ii. River
iii. Road
iv. brgy_bnd
3. Edit the symbology and labels of the River, Road, and brgy_bnd shapefiles using
the skills that you have learned from the previous exercises. Do not modify the
properties of the EM03_Flooding yet (See Figure 5.1).
Note: If you cannot find the Clip tool in the Vector menu, you may search for the
tool in the Processing Toolbox panel located at the right side of the window.
43 | P a g e
QGIS 3.16 Training Manual
c. In the Clipped save option, click on the dropdown button and select Save
to file…. Navigate to the training folder: C:\QGIS Training Data\01_Vector
Data and type in “floodhazard_clip” on the Filename input box. Select SHP
files (*.shp) as the file type and click [Save].
d. Mark a check on the box provided for the Open output file after running
algorithm option.
Note: You might encounter a warning which states that “No spatial index
exists for input layer, performance will be severely degraded”. If the
clipping process has finished successfully, you can disregard the notice. You
can avoid this warning next time by using the Create Spatial Index
algorithm which can be accessed through the Processing Toolbox.
44 | P a g e
QGIS 3.16 Training Manual
3. A new layer named floodhazard_clip with the same extent as the brgy_bnd layer
will appear on the Layers panel. Remove the vector layer EM03_Flooding.
4. Click the Zoom Full icon on the Map Navigation toolbar or simply press Ctrl
+ Shift + F on the keyboard to zoom to the full extent of the remaining shapefiles.
2. In the Symbology tab, select Categorized on the topmost dropdown list of the
Layer Properties window. Set the Value to FloodSusc and click [Classify].
3. Notice that a symbol labeled “all other values” is included on the list. To remove
this, select the unwanted symbol and click the Delete button.
45 | P a g e
QGIS 3.16 Training Manual
4. Double-click the color symbol of the High Flooding (HF) category to open the
Symbol Selector window.
5. In the Symbol Selector window, click the Color dropdown list and change the
color symbol to Red. Click [OK].
Figure 5.6 Changing the color symbol of the high flooding category
46 | P a g e
QGIS 3.16 Training Manual
6. Repeat steps 4 and 5 for the Low Flooding (LF) category. Change its color to Blue.
7. Click [Apply] and [OK] respectively. If you followed the steps correctly, your map
should look similar to Figure 5.8.
Note: In this exercise we will assume that areas categorized as High flooding (HF) and
Moderate flooding (MF) are not suitable for future urban development.
1. Open the attribute table of the floodhazard_clip layer. Then, click to select the
records categorized as “HF” and “MF” under the FloodSusc field.
47 | P a g e
QGIS 3.16 Training Manual
Figure 5.9 Selecting areas with high and moderate flooding hazard
Note: In case the records in the attribute table are too many to manually select,
you may use the Select by Expression function to select the polygon features
categorized as high flooding or moderate flooding.
3. In the Save Vector Layer as… dialog box, do the following (See Figure 5.10):
a. In the Format options, select ESRI Shapefile from the dropdown menu.
b. In the Filename input box, click the Browse button and navigate to
the training folder: C:\QGIS Training Data\01_Vector Data. Input “high
flooding” as the filename and click [Save].
c. Mark a check on the Save only selected features and the Add saved file
to map options.
48 | P a g e
QGIS 3.16 Training Manual
4. The exported layer will be automatically added to the Layers panel. Remove the
floodhazard_clip layer.
END OF EXERCISE
49 | P a g e
QGIS 3.16 Training Manual
Chapter 6
CREATING A LANDSLIDE HAZARD MAP
Introduction
In addition to the maps from the previous exercises, planners should also obtain or
prepare a landslide hazard map if the city or municipality experiences landslides. A
landslide hazard map depicts the areas that are at risk of landslides under extreme
conditions. It can be used to select priority barangays for evacuation and
implementation of landslide mitigation options. Furthermore, it can also be utilized to
quantify the exposed elements of the city or municipality that could be severely affected
by the landslides and identify unsuitable areas for urban development.
Objectives
In this exercise, participants will learn how to prepare a landslide hazard map of a
municipality using the mapping tools and techniques that were discussed in the previous
chapters. Moreover, participants will also be taught how to use the Dissolve
geoprocessing tool which removes the boundary between polygon features that share a
common attribute selected by the user.
Disclaimer: The tutorial only covers some parts that are being done in a real analysis.
The results that are being displayed in the tutorial cannot be compared with the results
a real analysis would generate. All map layers are presumed to have been digitized,
projected and georeferenced before proceeding to this tutorial.
Materials
2. Rearrange the layers in the following order, with the first layer on the topmost
position, by left-clicking and dragging each layer on the Layers panel to make all
the layers visible on the Map View:
50 | P a g e
QGIS 3.16 Training Manual
i. River
ii. Road
iii. brgy_bnd
iv. landslide_region
3. Edit the symbology and labels of the River, Road, and brgy_bnd shapefiles using
the skills that you have learned from the previous exercises. Do not modify the
properties of the landslide_region yet (See Figure 6.1).
c. In the Clipped save option, click on the dropdown button and select Save
to file…. Navigate to the training folder: C:\QGIS Training Data\01_Vector
Data and type in “landslidehazard_clip” on the Filename input box. Select
SHP files (*.shp) as the file type and click [Save].
d. Mark a check on the box provided for the Open output file after running
algorithm option.
51 | P a g e
QGIS 3.16 Training Manual
3. A new layer named landslidehazard_clip with the same extent as the brgy_bnd
layer will appear on the Layers panel. Remove the vector layer landslide_region.
Then, click the Zoom Full icon on the Map Navigation toolbar or simply press
Ctrl + Shift + F on the keyboard to zoom to the full extent of the remaining
shapefiles.
52 | P a g e
QGIS 3.16 Training Manual
Note: If you cannot find the Dissolve tool in the Vector menu, you may search for
the tool in the Processing Toolbox panel located at the right side of the window.
53 | P a g e
QGIS 3.16 Training Manual
b. In the Dissolve field(s) option, click on the button and select RATING as
the field to be dissolved. Click [OK].
c. In the Dissolved save option, click on the dropdown button and select Save
to file…. Navigate to the training folder: C:\QGIS Training Data\01_Vector
Data and type in “landslidehazard_dissolve” on the Filename input box.
Select SHP files (*.shp) as the file type and click [Save].
d. Mark a check on the box provided for the Open output file after running
algorithm option.
54 | P a g e
QGIS 3.16 Training Manual
Note: In this exercise, we will assume that areas prone to landslide, e.g., “High” and
“Moderate” landslide hazard rating, are not suitable for future urban development. We
have to make a new layer that only contains areas with “High” and “Moderate”
occurrence of landslide.
Figure 6.8 Selecting areas with high and moderate landslide hazard
Note: In case the records in the attribute table are too many to manually select,
you may use the Select by Expression function to select the polygon features
categorized as high landslide hazard or moderate landslide hazard.
55 | P a g e
QGIS 3.16 Training Manual
3. In the Save Vector Layer as… dialog box, do the following (See Figure 6.9):
a. In the Format options, select ESRI Shapefile from the dropdown menu.
b. In the Filename input box, click the Browse button and navigate to the
training folder: C:\QGIS Training Data\01_Vector Data. Input
“high_moderate_landslide_hazard” as the filename and click [Save].
c. Mark a check on the Save only selected features and the Add saved file to
map options.
Figure 6.9 Exporting high and moderate landslide hazard areas as shapefile
4. The exported layer will be automatically added to the Layers panel. Remove the
landslidehazard_dissolve layer.
56 | P a g e
QGIS 3.16 Training Manual
Figure 6.10 Areas with high and moderate landslide hazard rating
2. In the Symbology tab, select Categorized on the topmost dropdown list of the
Layer Properties window. Set the Value to RATING and click [Classify]. Remove
the “all other values” value using the Delete button.
3. Rearrange and change the color symbols of the landslide categories. Set the color
of the areas with High landslide hazard rating to Red and the areas with
Moderate landslide hazard rating to Yellow.
57 | P a g e
QGIS 3.16 Training Manual
Figure 6.12 Proper color symbols for the landslide hazard layer
4. Click [Apply] and [OK] respectively when you are done. If you followed the steps
correctly, your Map View should look similar to Figure 6.13.
END OF EXERCISE
58 | P a g e
QGIS 3.16 Training Manual
Chapter 7
APPLYING THE PRESCRIBED COLOR CODING FOR
A LAND USE MAP
Introduction
One of the primary outputs of the 12-step Comprehensive Land Use Plan (CLUP) process
is a land use map which shows the allocation of land and water resources within the
city or municipality to different land uses such as residential, commercial, agricultural,
and industrial zones. The Housing and Land Use Regulatory Board (HLURB) has
published the third volume of the Comprehensive Land Use Plan (CLUP) Guidebook last
2014 which includes the prescribed color coding for various land use categories.
Objectives
In this exercise, participants will learn how to apply the proper symbology of a land use
map based on the recommended color coding of HLURB (now the Department of Human
Settlements and Urban Development or DHSUD).
Materials
1. Launch the QGIS Desktop 3.16.7 software. Add the ELUM.shp located in the
training folder: C:\QGIS Training Data\01_Vector Data.
59 | P a g e
QGIS 3.16 Training Manual
2. In the Layers panel, double-click the ELUM layer to open the Layer Properties
window. Click the Symbology tab.
3. In the Symbology tab, select Categorized on the topmost dropdown list of the
Layer Properties window. Set the Value to Category and click [Classify]. Then,
remove the “all other values” category by selecting the symbol and clicking the
Delete button. Do not close the window yet.
Applying the Proper Color Code for Each Land Use Category
1. Double-click the color symbol of the Agricultural category to open the Symbol
Selector window.
2. Click the Color dropdown list and select Choose Color… to open the Select Color
window (See Figure 7.4).
60 | P a g e
QGIS 3.16 Training Manual
3. In the Select Color window, type in the following RGB values of the color code
assigned for ‘Agricultural’ on the R, G, and B input boxes as shown in Figure 7.5:
R (Red) = 0
G (Green) = 150
B (Blue) = 0
61 | P a g e
QGIS 3.16 Training Manual
Figure 7.5 RGB values for the Agricultural Land Use color symbol
4. Click [OK] on the Select Color and Symbol Selector windows respectively.
5. Repeat Steps 1-4 to apply the proper color symbols for the remaining land use
categories.
Note: Refer to the RGB color coding table below in applying land use color code (See
Table 7.1). The red-green-blue (RGB) color coding is handy to work with on computers,
since most programs define colors as a mixture of these three colors. For land uses that
are not included in the table, refer to Annex 1 of the HLURB CLUP Guidebook Vol. 3
(2014).
Table 7.1 RGB values of the recommended color symbol for each land use category
RESIDENTIAL
SQUATTER 255 255 0
VACANT LOT
COMMERCIAL 255 0 0
INFRASTRUCTURE/UTILITIES
190 190 190
ROAD
INSTITUTIONAL 0 0 255
62 | P a g e
QGIS 3.16 Training Manual
PARKS/PLAYGROUNDS AND
OTHER RECREATIONAL 100 225 100
SPACES
AGRICULTURAL 0 150 0
MINING/QUARRYING 150 50 0
WATER USES
WATERWAYS 175 200 225
MANGROVE
CEMETERY 0 0 0
DUMPSITE 135 70 70
6. Still in the Symbology tab of the Layer Properties window, click on a land use
category (e.g., Residential), then while holding the mouse, drag and drop the layer
to its proper arrangement (See Figure 7.6).
63 | P a g e
QGIS 3.16 Training Manual
7. If you have followed the steps correctly, your Map View should look similar to the
figure below.
2. In the Symbology tab, click [Style] and select Save Style… from the dropdown list.
64 | P a g e
QGIS 3.16 Training Manual
a. In the Save style dropdown list, select As QGIS QML Style File.
b. In File, click the Browse button and save the QGIS QML Style file as
“ELUM_Symbols” in the training folder.
65 | P a g e
QGIS 3.16 Training Manual
Note: The layer style will only be applied to the vector features having the same label as
the saved symbology. Before loading the saved layer style, make sure that the attributes
of your land use layer follow the same convention as the ELUM layer in this exercise.
1. Add a new ELUM layer to the Map View and open its Layer Properties window.
66 | P a g e
QGIS 3.16 Training Manual
2. In the Symbology tab, click [Style] and select Load Style… from the dropdown
list.
67 | P a g e
QGIS 3.16 Training Manual
d. Going back to the Symbology tab, notice that the saved land use color
symbols have been loaded. Click [Apply] and [OK] respectively to apply
the layer style to the shapefile.
68 | P a g e
QGIS 3.16 Training Manual
Note: Before calculating area, make sure that your map units are in meters.
1. Open the Attribute Table of vector layer ELUM. Then, click the Toggle Editing
Mode icon and the Open Field Calculator icon, respectively.
2. In the Field Calculator dialog box, do the following (See Figure 7.13):
a. Type in Area_has on the Output Field Name input box.
b. Select Decimal number(real) from the Output Field Type dropdown list.
c. Type in 10 (default) on the Output Field Length input box.
d. Type in 2 on the Precision input box.
e. In the center panel, double-click Geometry.
f. Under Geometry, double-click $area.
g. In the Expression panel, click the Equal Operator button.
h. In the Expression panel, type in 10000.
i. Click [OK].
69 | P a g e
QGIS 3.16 Training Manual
4. Click the Save Edits icon to save any changes that you made on the attribute
table. Then, click the Toggle Editing Mode icon again or press Ctrl + E to
disable editing. Close the Attribute Table.
END OF EXERCISE
70 | P a g e
QGIS 3.16 Training Manual
Chapter 8
PREPARING A THEMATIC MAP USING THE BASEMAP
TEMPLATE
Introduction
Objectives
In this exercise, participants will learn how to layout the land use map from the previous
activity, using the basemap template.
Materials
For this exercise, participants will use the QGIS project files that were saved in the
previous exercises:
• Land Use Map in QGIS Project File Format: Land Use Map.qgs
• Basemap Template in QGIS Project File Format: Basemap_Temp_A4.qgs
1. Launch the QGIS Desktop 3.16.7 software. In the Menu Bar, go to Project →
Open...
2. In the Open Project window, navigate to the training folder located on C:\QGIS
Training Data and select Basemap_Temp_A4.qgs that you saved on the
previous exercise. Click [Open].
71 | P a g e
QGIS 3.16 Training Manual
Tip: If you have recently opened the Basemap_Temp_A4.qgs file, you may go to
Project → Open Recent and click on the said file.
Figure 8.2 Navigating to the Embed layers and Groups dialog box
2. In the Select Layers and Groups to Embed dialog box, click the Browse button
to select the project file.
3. In the Select Project File window, locate and select the project file Existing Land
Use Map.qgs that you saved on the previous exercise. Click [Open].
4. Going back to the Select Layers and Groups to Embed dialog box, select the layer
ELUM and click [OK].
72 | P a g e
QGIS 3.16 Training Manual
5. Rearrange the order of the layers on the Layers panel, by dragging down the layer
ELUM.
6. Go to Project → Save as... to save your project with the filename “Existing Land
Use Map”. Click [Yes] if you are asked to replace the existing project. If you
followed the steps correctly, your Map View should now look like Figure 8.5.
73 | P a g e
QGIS 3.16 Training Manual
Figure 8.5 Existing Land Use Map displayed on the Map View
2. In the Layout Manager window, click to select the Basemap_Temp_A4, then click
[Show]. The Layout View will appear. Maximize the view if necessary.
3. In the Layout View, click the Add New Legend button on the Toolbars located
on the left side of the window.
4. Left-click once on the Map Elements panel of the map layout to add the new
legend. The New Item Properties dialog box will appear. Here, you may adjust the
values to reposition and resize the legend that you will add. Click [OK] for now.
74 | P a g e
QGIS 3.16 Training Manual
2. Still under the Legend Items panel, select the Municipal Road, Rivers/Creeks,
and Barangay Boundary and click the Move Item Down button to rearrange
the items in the legend (See Figure 8.8).
75 | P a g e
QGIS 3.16 Training Manual
3. Still under the Legend Items panel, select ELUM, then right click the layer and
mark a check on the box provided for Hidden on the dropdown options (See
Figure 8.9).
4. Still in the Item Properties tab, click the dropdown arrow beside the Fonts and
Text Formatting to reveal the entire panel. Then, input the following font settings
(See Figure 8.10):
Title font = Arial – Bold – 10
Item font = Arial – Normal – 10
5. Still in the Item Properties tab, click the dropdown arrow beside the Symbol to
reveal the entire panel. Then, set the Symbol Width to 10 mm. Leave other
settings as default (See Figure 8.11).
76 | P a g e
QGIS 3.16 Training Manual
6. Still in the Item Properties tab, click the dropdown arrow beside the Spacing to
reveal the entire panel. Then, set the Symbol Label Space to 2.00 mm. Leave the
other settings as default (See Figure 8.12).
7. Still in the Item Properties tab, scroll down and uncheck Background (See Figure
8.13).
8. Click the Add Label button on the Toolbox to create the title of the map. In the
Main Properties panel, edit the title to “EXISTING LAND USE MAP”. Change the
font style of the title based on the steps that you learned in the previous exercise.
77 | P a g e
QGIS 3.16 Training Manual
9. Resize and reposition the map elements to maximize the space. If you followed the
steps correctly, your Layout View should look like Figure 8.14.
LOCATOR MAP
Figure 8.14 Existing Land Use Map displayed on the Layout View
Tip: Make sure that all of the basic map elements are present in your Existing
Land Use Map. You may revisit Chapter 10 of the Basic GIS Manual (Part 1) as a
guide.
2. In the Export to PDF dialog box, navigate to the training folder and enter
“Surname_Office_ELUM” as the filename. Click [Save].
3. In the PDF Export Options dialog box, leave the settings as default and click
[Save].
78 | P a g e
QGIS 3.16 Training Manual
CONGRATULATIONS! You have successfully created the Existing Land Use Map for the
MUNICIPALITY OF LAUREL! Now do not forget to save your work.
79 | P a g e
QGIS 3.16 Training Manual
END OF EXERCISE
80 | P a g e
QGIS 3.16 Training Manual
Chapter 9
DIGITIZING IN GOOGLE EARTH PRO
Introduction
Google Earth Pro is a desktop application which gives users access to various
geographic data such as high-resolution satellite and aerial images, road maps, three-
dimensional cityscapes, panoramic imagery at street level, historical imagery, and
topography (Ngucha, n.d.). In addition to a comprehensive set of geospatial datasets,
Google Earth Pro also offers user-friendly tools that allows users to digitize point, line,
and polygon features, measure its length, perimeter, and area, and export it as a vector
file for further processing.
Objectives
In this exercise, participants will explore the basic functionalities of Google Earth Pro
and learn how to perform digitization using its available tools. Furthermore,
participants will also be taught how to save the digitized files as a KML file and convert
it into an ESRI shapefile.
Materials
2. Double-click the file to open the Installation Progress window. When the
installation is complete, click [Close].
81 | P a g e
QGIS 3.16 Training Manual
4. Explore the interface of the Google Earth Pro application and read the contents of
the Start-up Tips window to learn more about the software and how to use basic
features.
82 | P a g e
QGIS 3.16 Training Manual
Figure 9.4 Using the Search Bar to navigate to the target area
Tip: You may also input the coordinates of a location if you do not know the name
of the target area. You may enter the coordinates in decimal degrees or DMS
(degree, minute, second) format but always make sure to type in the latitude first
before the longitude.
83 | P a g e
QGIS 3.16 Training Manual
2. Zoom in further to the area that you intend to digitize using the Zoom slide bar on
the upper right corner of the Map window. Drag the slider upwards to zoom in
and downwards to zoom out of the area.
Figure 9.5 Using the Zoom slide bar to zoom in and zoom out of the map
Tip: Alternatively, you may also click the (+) and (-) buttons of the slider to zoom
in and zoom out, respectively or just simply use the scroll wheel of your mouse.
You may scroll upwards to zoom in and scroll downwards to zoom out of the
target area.
3. Explore the target area using the Movement buttons located on the upper right
corner of the window. Click the up, down, left, and right buttons of the tool to
move towards these directions, respectively. Alternatively, you may simply hold
the left-click button and drag the mouse towards the direction that you want to
navigate to.
84 | P a g e
QGIS 3.16 Training Manual
2. In the New Folder dialog box, change the name of the folder to “Existing
Structure” and click [OK].
85 | P a g e
QGIS 3.16 Training Manual
3. In the Search panel, type in “Municipal Hall of Laurel, Batangas” click [Search]
to navigate to the sample area that we will digitize.
86 | P a g e
QGIS 3.16 Training Manual
4. Click the Add Placemark button on the toolbar to open the Google Earth –
New Placemark dialog box. Make sure that the Existing Structure folder is
selected in the Places panel. Then, do the following:
b. Click the button to open the Icon dialog box. Change the icon color to
Red and click [OK]. Do not close the Google Earth – New Placemark dialog
box yet.
Tip: Alternatively, you may also create a new placemark by right-clicking the
Existing Structure folder and going to Add → Placemark.
5. In the Map window, click on the new placemark that you created and drag it to the
location of the Municipal Hall of Laurel, Batangas. Then, click [OK] on the Google
Earth – New Placemark dialog box.
87 | P a g e
QGIS 3.16 Training Manual
6. Go to the Places panel and check if the Municipal Hall point feature that you
digitized was saved inside the Existing Structure folder.
Figure 9.12 Point feature saved inside the Existing Structure folder
Congratulations! You have now digitized your first point feature in Google Earth Pro!
Now for this exercise, continue to digitize five (5) more buildings by repeating Steps 3-6.
2. Click the Add Path button on the toolbar to open the Google Earth – New Path
dialog box. Make sure that the Existing Road folder is selected in the Places panel.
Then, do the following:
88 | P a g e
QGIS 3.16 Training Manual
b. Click the Style, Color tab. Then, click the box beside the Line Color options
to open the Choose Line Color window. Change the Color to Red and the
Width to 2.0 and click [OK].
c. Do not close the Google Earth – New Path dialog box yet. Drag the window
to the side to prevent it from blocking the area to be digitized.
3. Start digitizing the roads by clicking the left mouse button once, then proceed until
you finish the road segment.
89 | P a g e
QGIS 3.16 Training Manual
Tips:
1. You can still navigate within the image while digitizing by using either the
Movement buttons on the upper right corner of the Map window or by using your
keyboard keys. You may simply press either the arrow keys or the [W], [D], [A],
and [S] keys to navigate upwards, downwards, to the left, and to the right,
respectively.
2. If you want to undo a line segment that you recently digitized, just simply right-
click anywhere on the Map window.
3. When digitizing line features with smooth edges, you may click and hold the
left mouse button while tracing the line segment.
4. To end digitizing, click [OK] on the Google Earth – New Path dialog box. Go to the
Places panel and check if the Road 1 path file that you digitized was saved inside
the Existing Road folder.
90 | P a g e
QGIS 3.16 Training Manual
Figure 9.15 Line feature saved inside the Existing Road folder
Congratulations! You have now digitized your first line feature in Google Earth Pro! Now
for this exercise, continue to digitize five (5) more roads by repeating Steps 2-4.
2. Click the Add Polygon button on the toolbar to open the Google Earth – New
Polygon dialog box. Make sure that the Existing Block folder is selected in the
Places panel. Then, do the following:
b. Click the Style, Color tab. Then, click the box beside the Line Color options
to open the Choose Line Color window. Change the color to Yellow and
click [OK].
c. Still on the Style, Color tab, click the dropdown list under the Area options
and select Outlined.
d. Do not close the Google Earth – New Path dialog box yet. Drag the window
to the side to prevent it from blocking the area to be digitized.
91 | P a g e
QGIS 3.16 Training Manual
3. Start digitizing the blocks by clicking on one of the corners of the target block, then
proceed until you close the entire polygon.
92 | P a g e
QGIS 3.16 Training Manual
4. To end digitizing, click [OK] on the Google Earth – New Polygon dialog box. Go to
the Places panel and check if the Block polygon file that you digitized was saved.
Figure 9.18 Polygon feature saved inside the Existing Block folder
Congratulations! You have now digitized your first polygon feature in Google Earth Pro!
Now for this exercise, continue to digitize five (5) more blocks by repeating Steps 2-4.
93 | P a g e
QGIS 3.16 Training Manual
2. In the Save file dialog box, navigate to the training folder and type in Existing
Structure as the filename. Select Kmz (*kmz) on the Save as type dropdown
options and click [Save].
3. Repeat Steps 1 and 2 to save the layers inside the Existing Road and Existing
Block folders as KMZ files.
Note: A KMZ file is a compressed KML file. It merges the KML files into a single
zipped file.
2. Rearrange the layers in the Layers panel such that all of the vector features are
visible. Your Map View should look similar to Figure 9.21.
94 | P a g e
QGIS 3.16 Training Manual
Note: Similar with ESRI Shapefile, Keyhole Markup Language (KML) is also a
vector file format.
3. In the Layers panel, right-click the Existing Structure layer and go to Export →
Save Features as… to open the Save Vector Layer as… dialog box.
4. In the Save Vector Layer as… dialog box, do the following (See Figure 9.23):
a. In the Format options, select ESRI Shapefile from the dropdown menu.
95 | P a g e
QGIS 3.16 Training Manual
b. In the Filename input box, click the Browse button and navigate to the
training folder: C:\QGIS Training Data\01_Vector Data. Input “Existing
Structure_GoogleEarth” as the filename and click [Save].
c. Click Select the CRS button to open the Coordinate Reference System
Selector window. On the Filter search bar, type in
Luzon_1911_UTM_Zone_51N and click [OK].
Figure 9.23 Input settings on the Save Vector Layer as dialog box
5. Repeat steps 3 and 4 to convert the Existing Road and Existing Block KML files
to shapefile.
6. When you are done, remove the KML layers on the Layers panel. Your Map View
should now look similar to Figure 9.24.
96 | P a g e
QGIS 3.16 Training Manual
END OF EXERCISE
97 | P a g e
QGIS 3.16 Training Manual
Chapter 10
ADDING GOOGLE MAP LAYERS IN QGIS 3.16
Introduction
In the previous chapter, we have learned that it is possible to digitize vector features in
Google Earth Pro and export them to QGIS software. In this chapter, we will import the
Google Satellite raster layer and other useful map layers to QGIS instead of launching
the Google Earth Pro desktop application. Aside from being used as an accurate and
updated reference layer for the digitization of ground features, this QGIS functionality
may also be used extensively in spatial analysis in order to address various problems in
the municipality/city that involve geospatial data.
Objectives
In this exercise, participants will learn how to use the XYZ Tiles and the
QuickMapServices plugin to import various map layers such as Google Satellite, Google
Terrain, Google Maps, Google Satellite Hybrid, and Google Roads.
Materials
For this exercise, participants will use the output shapefiles from the previous activity:
2. In the Browser panel, scroll down and right-click XYZ Tiles. Then, click Make a
New Connection from the dropdown options.
98 | P a g e
QGIS 3.16 Training Manual
3. In the XYZ Connection dialog box, input the following (See Figure 10.2):
99 | P a g e
QGIS 3.16 Training Manual
4. The Google Earth layer will be added under the XYZ Tiles. Right-click on the
Google Earth layer and select Add Layer to Project from the dropdown
options. Alternatively, you may also simply double-click the layer to add it to
the Map View.
Figure 10.3 Adding the Google Earth layer to the Map View
5. The Google Earth layer will now be added to the Map View. Explore the new layer
using the Map Navigation tools that you have learned in the previous exercises.
100 | P a g e
QGIS 3.16 Training Manual
Table 10.1 List of Google layers and its URL that can be added in QGIS
Raster
Raster URL
Name
Google
https://mt1.google.com/vt/lyrs=r&x={x}&y={y}&z={z}
Maps
Google
http://www.google.cn/maps/vt?lyrs=s@189&gl=cn&x={x}&y={y}&z={z}
Satellite
Google
Satellite https://mt1.google.com/vt/lyrs=y&x={x}&y={y}&z={z}
Hybrid
Google
https://mt1.google.com/vt/lyrs=t&x={x}&y={y}&z={z}
Terrain
Google
https://mt1.google.com/vt/lyrs=h&x={x}&y={y}&z={z}
Roads
2. In the Plugins window, type in “QuickMapServices” in the Search bar and press
Enter on your keyboard.
101 | P a g e
QGIS 3.16 Training Manual
Figure 10.6 Searching for the QuickMapServices Plugin in the Plugins window
3. Click [Install Plugin] and wait for the installation to finish. When it is done, click
[Close] to close the Plugins window.
4. In the Menu Bar, go to Web → QuickMapServices. Notice that various map layers
are now available and can be added to the Map View.
102 | P a g e
QGIS 3.16 Training Manual
103 | P a g e
QGIS 3.16 Training Manual
Figure 10.10 Overlaying the digitized shapefiles to the Google Satellite layer
END OF EXERCISE
104 | P a g e
QGIS 3.16 Training Manual
Chapter 11
DATA COLLECTION USING GPS ESSENTIALS
Introduction
Objectives
In this exercise, participants will learn how to collect GPS data using GPS Essentials, a
mobile application for navigating, recording, and managing waypoints and tracks. The
GPS files will be exported as KML file which can be opened, converted, and explored in
the QGIS software.
Note: The GPS Essentials mobile application is only available for Android phones. For iOS
users, you may explore the GPS Tracks application.
Materials
For this exercise, participants will not be provided any data or installer. Instead, they will
be instructed to collect GPS data from their respective locations.
Figure 11.1 Searching for the GPS Essentials mobile application in the Google Play Store
105 | P a g e
QGIS 3.16 Training Manual
2. Click [Install]. You may exit the installation screen while waiting for the
installation to finish.
3. If you are still on the Installation screen, click [Open] to launch the mobile
application. Alternatively, you may go to your home screen or applications and
tap the GPS Essentials icon to open the tool.
106 | P a g e
QGIS 3.16 Training Manual
1. The Dashboard tool displays navigation values such as Accuracy, GPS time, Date,
Distance, Latitude, Longitude, Number of Satellites, Time, and Position.
2. The Camera tool (heads-up display) may be used to capture photos of the
waypoint location.
3. The Compass tool shows the orientation of the Earth's magnetic field and displays
an arbitrary tracking angle and the current target.
4. The Portable Maps and Google Maps tools display a map to show your waypoints.
It allows users to choose among Normal, Satellite, Hybrid, and Terrain map types.
5. The Waypoints tool shows a list of all the waypoints that the user has recorded.
Users are allowed to import and export waypoints with KML and GPX file formats.
107 | P a g e
QGIS 3.16 Training Manual
6. The Routes tool shows a list of all the waypoints that the user has recorded. Users
are allowed to import and export waypoints with KML and GPX file formats.
7. The Tracks tool records tracks and views them on the map. The tool allows users
to export the tracks as KML files and import them into Google Maps, Google Earth,
and other similar applications.
8. The Satellites tool displays a sky view of the current positions of the available
satellites in the area.
9. The Settings tool allows users to modify various settings concerning the GPS,
routes, maps, interface, etc.
2. Tap the Satellites icon to check if there are at least four (4) satellites that are
available in your area to be used in the GPS fix. If there are fewer than 4 available
satellites, look for an open area with a relatively large sky view to improve the
satellite signal.
108 | P a g e
QGIS 3.16 Training Manual
b. In the Dashboard screen, tap on the empty screen to open the Select the
values you want to show on the dashboard dialog box. Tap “Accuracy” to add
this value to the dashboard.
c. Back in the Dashboard screen, tap on an empty panel to add the following
values to the dashboard. You need to repeat this step for every value that you
will add:
• GPS Time
• Date
• Distance
• Distance Covered
• Latitude
• Longitude
• Number of Satellites
• Time
• Course
• Position
• ΣDistance
109 | P a g e
QGIS 3.16 Training Manual
Figure 11.8 Dashboard screen with the values needed for this exercise
110 | P a g e
QGIS 3.16 Training Manual
Creating Waypoints
Note: You may create waypoints through the Portable Maps tool, Google Maps tool,
and Waypoints tool.
1. To create waypoints using the Portable Maps tool, do the following steps:
c. Tap and drag the new cursor onto the location that you want to mark as a
waypoint and tap the Actions wheel.
111 | P a g e
QGIS 3.16 Training Manual
d. In the Actions wheel, tap the Add Waypoint icon to mark the waypoint (See
Figure 11.11).
2. To create waypoints using the Google Maps tool, do the following steps:
112 | P a g e
QGIS 3.16 Training Manual
b. Go to the location that you want to mark on the map. Then, tap the Options
icon on the upper right corner of the screen and select Add Waypoint from
the dropdown list.
Figure 11.13 Selecting the Add Waypoint option from the dropdown list
113 | P a g e
QGIS 3.16 Training Manual
Note: If you want to automatically mark your location as a waypoint, select the
Add Waypoint option twice.
b. Tap the Add Waypoint icon to create a waypoint on your current location (See
Figure 11.14).
c. In the Add Elements screen, you may opt to change the symbol used to mark
the waypoint and assign a name and description to the marked point. When
you are done, tap [Create].
114 | P a g e
QGIS 3.16 Training Manual
Note: You may notice that the Waypoints screen displays the location and
information about all of the waypoints that has been marked through the
Portable Maps tool, Google Maps tool, and Waypoints tool.
Geotagging Photos
1. Tap the Camera icon on the main screen.
115 | P a g e
QGIS 3.16 Training Manual
3. Select the photo and tap the Properties icon to view various properties of the
photo such as the address, coordinates, and altitude.
4. Tap the Mark icon to record the location of the photograph as a waypoint.
5. Tap the Options icon and select Show on Map from the dropdown options to
display its location on the map. Select the marker to display the photograph.
Figure 11.19 Checking the location of the geotagged photo on the map
116 | P a g e
QGIS 3.16 Training Manual
Creating Tracks
1. Tap the Tracks icon on the main screen.
2. In the Tracks screen, tap the Create icon to go to the Create Stream screen.
3. In the Create Stream screen, go to the Track tab and tap [Start] to begin
recording your tracks.
4. You may use the Stop, Play, and Pause icons to stop, continue, and pause
tracking respectively.
117 | P a g e
QGIS 3.16 Training Manual
5. Tap the map to show your track on the Portable Maps screen (See Figure 11.23).
Note: You may also add waypoints and geotag photos while recording your track
using the steps that you have learned in the previous parts of the exercise.
118 | P a g e
QGIS 3.16 Training Manual
Exporting Waypoints
1. Tap the Waypoints icon on the main screen.
a. In the Waypoints screen, tap the Options icon and select Export from the
dropdown options.
c. Navigate to the folder where you want to save the waypoints and tap the
Export icon.
a. In the Waypoints screen, select the waypoint that you want to export to
display its properties.
119 | P a g e
QGIS 3.16 Training Manual
b. Tap the Options icon on the screen that will open and select Export from
the dropdown options.
d. Navigate to the folder where you want to save the waypoints and tap the
Export icon.
Exporting Tracks
1. Tap the Tracks icon on the main screen to display the list of recorded tracks.
2. Select the track that you want to export and tap the Options icon. Then, select
Export from the dropdown options.
120 | P a g e
QGIS 3.16 Training Manual
4. Navigate to the folder where you want to save the track and tap the Export
icon.
Note: To open the GPS data (KML format) in QGIS and to convert it into shapefile, refer
to Chapter 10 of this training manual.
121 | P a g e
QGIS 3.16 Training Manual
REFERENCES
Housing and Land Use Regulatory Board. (2014). Comprehensive Land Use Plan (CLUP)
Guidebook Volume 3: Model Zoning Ordinance. Quezon City.
Ngucha, M. (2015). Google Earth Pro – a useful tool for Environmental Practitioners.
Retrieved from http://www.integratesustainability.com.au/blog/print.php?id=51
PACKT Books. (2015). Working with Tables: MASTERING QGIS. Retrieved from
https://www.gislounge.com/working-with-tables-mastering-qgis/
QGIS Development Team (n.d.). QGIS Geographic Information System. Open Source
Geospatial Foundation Project. http://qgis.osgeo.org"
Zhu, X., Linham, M. M., & Nicholls, R. J. (2010). Technologies for climate change adaptation.
Coastal erosion and flooding.
122 | P a g e
QGIS 3.16 Training Manual
Project Committee
123 | P a g e
QGIS 3.16 Training Manual
124 | P a g e