You are on page 1of 125

QGIS 3.

16 Training Manual

INTRODUCTION

About the QGIS Software

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.

About the Training Manual

The QGIS Training Manual: A Comprehensive Introduction to QGIS was primarily


developed by the Department of Human Settlements and Urban Development (DHSUD)
thru the Environmental, Land Use and Urban Planning and Development Bureau
(ELUPDB) to serve as a reference guide for DHSUD trainers who shall train and assist
technical staff from local government units (LGUs) in preparing their Comprehensive
Land Use Plan (CLUP) and other related plans required by various national government
agencies (NGAs). In addition, the Manual can also be used as a resource material by
DHSUD Planners from Central and Regional Offices and LGUs in performing their tasks
that involve the use of geographic information systems (GIS) in the land use planning
process.

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

Chapter 1: Working with Attribute Tables .............................................................................4


Selecting Features by Attribute .............................................................................................................4
Deselecting the Selected Features in the Attribute Table ...........................................................7
Selecting Multiple Features Based on a Single Field ....................................................................8
Selecting Multiple Features Based on Multiple Fields .................................................................9
Exporting Selected Features in the Attribute Table as Shapefile .......................................... 11
Adding a New Field in the Attribute Table .................................................................................... 15
Deleting a Field in the Attribute Table ............................................................................................ 17
Calculating the Area of Polygon Features ...................................................................................... 18
Chapter 2: Joining Non-Spatial Data with Vector Data ..................................................... 21
Saving the Joined Attributes to the Vector Layer ........................................................................ 26
Chapter 3: Creating a Population Density Map ................................................................... 28
Calculating the Population Density................................................................................................... 30
Applying Symbology to the Population Density Map ............................................................... 31
Adding Labels to the Population Density Map ............................................................................ 34
Chapter 4: Creating a Faultline Hazard Map ........................................................................ 36
Creating a Faultline Buffer Area ......................................................................................................... 38
Chapter 5: Creating a Flood Hazard Map .............................................................................. 42
Clipping the Flood Hazard Layer ....................................................................................................... 43
Symbolizing the Flooding Area Layer .............................................................................................. 45
Selecting and Exporting Areas with High and Moderate Flooding as a New Layer ....... 47
Chapter 6: Creating a Landslide Hazard Map ...................................................................... 50
Clipping the Landslide Hazard Layer ............................................................................................... 51
Dissolving Polygon Features Based on Landslide Hazard Rating ......................................... 53
Selecting and Exporting Areas with High and Moderate Landslide Hazard Rating as a
New Layer ................................................................................................................................................... 55
Symbolizing the Landslide Area Layer ............................................................................................ 57
Chapter 7: Applying the Prescribed Coding for a Land Use Map .................................. 59
Applying the Proper Color Code for Each Land Use Category................................................ 60
Saving the Layer Style ............................................................................................................................ 64
Loading the Saved Layer Style ............................................................................................................ 66
Calculating Land Use Areas .................................................................................................................. 68

2|Page
QGIS 3.16 Training Manual

Chapter 8: Preparing a Thematic Map Using the Basemap Template ........................ 71


Inserting a Project File ........................................................................................................................... 72
Updating the Map in the Layout View.............................................................................................. 74
Editing the New Legend ........................................................................................................................ 75
Exporting the Existing Land Use Map as a PDF File ................................................................... 79
Chapter 9: Digitizing in Google Earth Pro ............................................................................. 81
Installing Google Earth Pro .................................................................................................................. 81
Navigating in Google Earth Pro .......................................................................................................... 83
Digitizing Point Features ...................................................................................................................... 85
Digitizing Line Features ........................................................................................................................ 88
Digitizing Polygon Features ................................................................................................................. 91
Saving Digitized Features as KML File ............................................................................................. 93
Importing and Converting KML Files to Shapefiles .................................................................... 94
Chapter 10: Adding Google Map Layers in QGIS 3.16 ....................................................... 98
Adding Map Layers Using XYZ Tiles ................................................................................................. 98
Adding Map Layers Using QuickMapServices Plugin.............................................................. 101
Overlaying the Digitized Shapefiles to the Google Satellite Layer ..................................... 103
Chapter 11: Data Collection Using GPS Essentials ......................................................... 105
Installing GPS Essentials .................................................................................................................... 105
Exploring the Tools in GPS Essentials .......................................................................................... 107
Configuring GPS Essentials ............................................................................................................... 108
Creating Waypoints ............................................................................................................................. 111
Geotagging Photos ................................................................................................................................ 115
Creating Tracks ...................................................................................................................................... 119
Exporting Waypoints........................................................................................................................... 119
Exporting Tracks ................................................................................................................................... 120
References ................................................................................................................................... 122

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.

Data and Tools

For this exercise, participants will be provided the following:

• Barangay Boundary Vector File in ESRI Shapefile Format: brgy_bnd.shp


• Existing Land Use Vector File in ESRI Shapefile Format: ELUM.shp

Selecting Features by Attribute


1. Launch the QGIS Desktop 3.16.7 software. Add the vector layer ELUM.shp using
any technique that you have learned from the previous exercises.

4|Page
QGIS 3.16 Training Manual

Figure 1.1 Loaded ELUM layer

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.

Figure 1.2 Attribute table of the ELUM layer

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.

The Expression panel should display the expression: "Category" =


‘Agricultural’.

Figure 1.3 Using the Select by Expression function to select agricultural areas

4. Click [Select Features] to execute the selection.

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

Deselecting the Selected Features in the Attribute Table


1. Close the Select by Expression dialog box.

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

Selecting Multiple Features Based on a Single Field


1. In the Attribute Table window, click the Select features using an expression
icon.

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.

The Expression panel should display the expression: "Category" = 'Residential'


or "Category" = 'Urban Expansion'.

Figure 1.6 Using the Select by Expression function to select residential and urban expansion areas

3. Click [Select Features] to execute the selection.

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

Selecting Multiple Features Based on Multiple Fields


1. Deselect the features that were selected from the previous part of the exercise.
Then, in the Attribute Table window, click the Select features using an
expression icon.

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”.

The Expression panel should display the expression: "Category" = 'Residential'


and "Area_has" > 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

3. Click [Select Features] to execute the selection.

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

Exporting Selected Features in the Attribute Table as Shapefile


1. In the Attribute Table window, click the Select features using an expression
icon.

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

The Expression panel should display the expression: "Category" = ‘Forest’.

3. Click [Select Features] to execute the selection. Then, click [Close].

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

Figure 1.11 Saving the selected features as a shapefile

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.

d. Do not change other settings. Click [OK].

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).

Figure 1.13 Selected features exported as a new shapefile

14 | P a g e
QGIS 3.16 Training Manual

Adding a New Field in the Attribute Table

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.

Figure 1.14 Selected features exported as a new shapefile

2. Right-click the brgy_bnd in the Layers panel and select Open Attribute Table.
Observe the contents of the attribute table.

Figure 1.15 Attribute table of the barangay boundary shapefile

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

Figure 1.16 Adding the Area_has field

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

Figure 1.17 Area_has field added to the attribute table

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.

Deleting a Field in the Attribute Table

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

Figure 1.18 Delete Fields dialog box

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.

Calculating the Area of 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.

2. Click the Open Field Calculator icon or simply press Ctrl + I.

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

Figure 1.19 Calculating the area of each polygon feature

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

Figure 1.20 Calculated area in hectares of each barangay

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.

6. When you are done, save your QGIS project as “AdvanceGIS_Chapter1_


Surname” in the training folder.

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

For this exercise, participants will be provided the following:

• Barangay Boundary Vector File in ESRI Shapefile Format: brgy_bnd.shp


• Barangay Population File in Excel Format: brgy_population.xlsx

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

Figure 2.1 Loading an Excel data in QGIS

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).

Figure 2.2 Datasets to be used in the exercise

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

Figure 2.3 Tables that will be joined in the exercise

Note: The Philippine Standard Geographic Code (PSGC) is a systematic


classification and coding of geographic areas of the Philippines based on the four
well-established hierarchical levels of geographical-political subdivisions of the
country. Each administrative region, province, city/municipality, and barangay
is assigned with a unique nine-digit code which can be used as a guide in national
and local development planning.

It is based on the four well-established hierarchical levels of geographical-


6. Right-click on the brgy_bnd,
political subdivisions of thethen clicksuch
country Properties… on the dropdown
as the administrative options.
region, the
The Layer Properties
province, window willand
the municipality/city appear.
the barangay

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

Figure 2.4 Join tab in the Layer Properties dialog box

8. Set the following parameters on the Add Vector Join dialog box (See Figure 2.5):

Join Layer = brgy_population Sheet1 (default)


Join Field = PSGC_ID
Target Field = BRGY_ID

Figure 2.5 Add Vector Join dialog box

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

Saving the Joined Attributes to the Vector Layer


1. In the Layers panel, right-click the vector layer brgy_bnd, then go to Export →
Save Features as…

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].

c. Mark a check on the Add saved file to map options.

d. Do not change other settings. Click [OK].

Figure 2.8 Exporting the joined tables as a new shapefile

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

5. When you are done, save your QGIS project as “AdvanceGIS_Chapter2_


Surname” in the training folder.

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:

• Barangay Population Vector File in ESRI Shapefile Format: brgy_POP.shp

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.

Figure 3.1 Vector layer needed for the exercise

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

Figure 3.2 Adding the pop_dense field

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.

Figure 3.3 pop_dense field added to the attribute table

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.

Calculating the Population Density


1. Open the Attribute Table window. Then, click the Toggle Editing Mode icon
or simply press Ctrl + E on your keyboard.

2. Click the Open Field Calculator icon or simply press Ctrl + I.

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

The Expression panel should display "brgy_pop_1" / "Area_has".

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.

Figure 3.5 Calculated population density per barangay

Applying Symbology to the Population Density Map


1. In the Layers panel, double-click the layer named brgy_POP to open the Layer
Properties window.

2. In the Layer Properties window, click on the Symbology tab. Then, select
Graduated on the topmost dropdown list (See Figure 3.6).

Figure 3.6 Selecting Graduated symbols from the dropdown list

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

Figure 3.7 Modifying the symbology of the population density map

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

Figure 3.8 Population density map with proper symbology

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

Adding Labels to the Population Density Map


1. In the Layer Properties window, click on the Labels tab. Then, select Single
Labels on the topmost dropdown list (See Figure 3.9).

Figure 3.9 Selecting Single Labels from the dropdown list

2. In the Labels tab, set the following inputs (See Figure 3.10):

Value= Brgy_Nm
Font= Arial
Style=Regular
Size=10

Figure 3.10 Adding labels to the map

3. Leave other settings as default. Click [Apply] and [OK] respectively.

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.

Figure 3.11 Population Density Map displayed on the Map View

5. When you are done, save your QGIS project as “AdvanceGIS_Chapter3_


Surname” in the training folder.

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

For this exercise, participants will be provided the following datasets:

• Faultline Vector File in ESRI Shapefile Format: EMO5_Faultline.shp


• Barangay Boundary Vector File in ESRI Shapefile Format: brgy_bnd.shp
• River Vector File in ESRI Shapefile Format: River.shp
• Road Vector File in ESRI Shapefile Format: Road.shp

1. Launch the QGIS 3.16.7 software. Add the EM05_Faultline.shp, brgy_bnd.shp,


Road.shp, and River.shp using the steps that you have learned from previous
exercises.

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

Figure 4.1 Vector layers to be used in this exercise

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).

Figure 4.2 Properly symbolized vector layers

37 | P a g e
QGIS 3.16 Training Manual

Creating a Faultline Buffer Area

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).

1. In the Menu Bar, go to Vector → Geoprocessing Tools → Buffer…

Figure 4.3 Navigating to the Buffer Tool

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.

2. In the Buffer dialog box, do the following (See Figure 4.4):

a. In the Input Layer options, select EM05_Faultline from the dropdown list.
b. Set the Distance to 5.0 meters.

c. Set the Segments to 5.

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

f. Leave other settings as default and click [Run].

Figure 4.4 Input settings on the Buffer dialog box

3. The new buffer layer 5m_faultline_buffer will be added to the Layers panel as
shown in Figure 4.5.

Figure 4.5 New buffer layer added to the Layers panel

4. In the Layers panel, double-click on the layer 5M Faultline_buffer to open the


Layer Properties window. Then, click on the Symbology tab.

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.

Figure 4.6 Symbology settings for the buffer layer

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

7. When you are done, save your QGIS project as “AdvanceGIS_Chapter4_


Surname” in the training folder.

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

For this exercise, participants will be provided the following datasets:

• Flooding Hazard Vector File in ESRI Shapefile Format: EMO3_Flooding.shp


• Barangay Boundary Vector File in ESRI Shapefile Format: brgy_bnd.shp
• River Vector File in ESRI Shapefile Format: River.shp
• Road Vector File in ESRI Shapefile Format: Road.shp

1. Launch the QGIS 3.16.7 software. Add the EM03_Flooding.shp, brgy_bnd.shp,


Road.shp, and River.shp located in the training folder: C:\QGIS Training
Data\01_Vector Data.

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).

Figure 5.1 Vector layers to be used in the exercise

Clipping the Flood Hazard Layer


1. In the Menu Bar, go to Vector → Geoprocessing Tools → Clip…

Figure 5.2 Navigating to the Clip tool

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

2. In the Clip dialog box, do the following (See Figure 5.3):

a. In the Input Layer dropdown list, select EM03_Flooding.

b. In the Overlay Layer dropdown list, select brgy_bnd.

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.

e. Leave other settings as default and click [Run].

Figure 5.3 Input settings on the Clip dialog box

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.

Figure 5.4 Clipped flooding hazard layer

Symbolizing the Flooding Area Layer


1. In the Layers panel, double-click the floodhazard_clip layer to open the Layer
Properties window. Select the Symbology tab.

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

Figure 5.5 Symbolizing the flood hazard layer

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.

Figure 5.7 Proper color symbols for the flooding categories

7. Click [Apply] and [OK] respectively. If you followed the steps correctly, your map
should look similar to Figure 5.8.

Figure 5.8 Flood Hazard Map displayed on the Map View

Selecting and Exporting Areas with High and Moderate Flooding as a


New Layer

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.

2. In the Layers panel, right-click on the floodhazard_clip layer and go to Export →


Save Selected Features as…

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.

d. Do not change other settings. Click [OK].

48 | P a g e
QGIS 3.16 Training Manual

Figure 5.10 Exporting high flooding areas as shapefile

4. The exported layer will be automatically added to the Layers panel. Remove the
floodhazard_clip layer.

5. When you are done, save your QGIS project as “AdvanceGIS_Chapter5_


Surname” in the training folder.

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

For this exercise, participants will be provided the following datasets:

• Regional Landslide Hazard Vector File in ESRI Shapefile Format:


landslide_region.shp
• Barangay Boundary Vector File in ESRI Shapefile Format: brgy_bnd.shp
• River Vector File in ESRI Shapefile Format: River.shp
• Road Vector File in ESRI Shapefile Format: Road.shp

1. Launch the QGIS 3.16.7 software. Add the landslide_region.shp, brgy_bnd.shp,


Road.shp, and River.shp located in the training folder: C:\QGIS Training
Data\01_Vector Data.

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).

Figure 6.1 Vector layers to be used in the exercise

Clipping the Landslide Hazard Layer


1. In the Menu Bar, go to Vector → Geoprocessing Tools → Clip…

2. In the Clip dialog box, do the following (See Figure 6.2):

a. In the Input Layer dropdown list, select landslide_region.

b. In the Overlay Layer dropdown list, select brgy_bnd.

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.

e. Leave other settings as default and click [Run].

51 | P a g e
QGIS 3.16 Training Manual

Figure 6.2 Input settings on the Clip dialog box

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.

Figure 6.3 Clipped landslide hazard layer

52 | P a g e
QGIS 3.16 Training Manual

Dissolving Polygon Features Based on Landslide Hazard Rating


1. Open the attribute table of the landslidehazard_clip layer. Observe that the
shapefile consists of many polygon features regardless of its value in the RATING
field.

Figure 6.4 Attribute table of the landslide hazard layer

2. In the Menu Bar, go to Vector → Geoprocessing Tools → Dissolve…

Figure 6.5 Navigating to the Dissolve tool

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

3. In the Dissolve dialog box, do the following (See Figure 6.6):

a. In the Input Layer dropdown list, select landslidehazard_clip.

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.

e. Leave other settings as default and click [Run].

Figure 6.6 Input settings in the Dissolve dialog box

Note: If you encounter an error while processing which states “Invalid


geometry”, go to the Processing Toolbox and search for the Fix Geometries
tool under Vector Geometry. In the Fix Geometries dialog box, set the
erroneous shapefile as the input layer and click Run. Then, go back to the
Dissolve tool and input the new layer created.

54 | P a g e
QGIS 3.16 Training Manual

4. A new layer named landslidehazard_dissolve will appear on the Layers panel.


Remove the vector layer landslide_region and open the attribute table of the new
shapefile. Notice that the number of records in the attribute table was reduced to
four after we dissolved the layer based on the landslide hazard rating.

Figure 6.7 Input settings in the Dissolve dialog box

Selecting and Exporting Areas with High and Moderate Landslide


Hazard Rating as a New Layer

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.

1. Open the attribute table of the landslidehazard_dissolve layer. Then, click to


select the records categorized as “High” and “Moderate” under the RATING field.

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

2. In the Layers panel, right-click on the landslidehazard_dissolve layer and go to


Export → Save Selected Features as…

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.

d. Do not change other settings. Click [OK].

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

Symbolizing the Landslide Area Layer


1. In the Layers panel, double-click the high_moderate_landslide_hazard layer to
open the Layer Properties window. Select the Symbology tab.

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.

Figure 6.11 Symbolizing the landslide hazard layer

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.

Figure 6.13 Landslide Hazard Map displayed on the Map View

5. When you are done, save your QGIS project as “AdvanceGIS_Chapter5_


Surname” in the training folder.

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

For this exercise, participants will be provided the following:

• Existing Land Use Vector File in ESRI Shapefile Format: ELUM.shp

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.

Figure 7.1 Vector layer to be used in the exercise

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.

Figure 7.2 Land use categories on the Symbology tab

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.

Figure 7.3 Changing the symbol of the Agricultural category

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

Figure 7.4 Symbol Selector window

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

ZONE COLOR R-G-B CODE

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

INDUSTRIAL 150 0 200

AGRICULTURAL 0 150 0

FOREST AND FOREST USE


0 100 0
CATEGORIES

MINING/QUARRYING 150 50 0

GRASSLAND/PASTURE 100 125 50

AGRI-INDUSTRIAL 200 150 200

TOURISM 255 100 0

WATER USES
WATERWAYS 175 200 225
MANGROVE

CEMETERY 0 0 0

DIKE 105 105 105

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

Figure 7.6 Proper arrangement of each land use category

7. If you have followed the steps correctly, your Map View should look similar to the
figure below.

Figure 7.7 Land Use Map displayed on the Map View

Saving the Layer Style


1. Open the Layer Properties window of the ELUM layer and go to the Symbology
tab.

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

Figure 7.8 Saving the layer style

3. In the Save Layer Style dialog box, do the following:

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.

c. In Categories, uncheck everything except for the Symbology.

d. Click [OK] to close the dialog box.

65 | P a g e
QGIS 3.16 Training Manual

Figure 7.9 Save Layer Style dialog box

Loading the Saved Layer Style

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.

Figure 7.9 Adding a new ELUM layer

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.

Figure 7.10 Loading a layer style

3. In the Database Style Manager dialog box, do the following:

a. In the Load style dropdown list, select From File.

b. In File, click the Browse button and select ELUM_Symbols.qml in the


training folder.

c. Click [Load Style] to close the dialog box.

67 | P a g e
QGIS 3.16 Training Manual

Figure 7.11 Database Styles Manager dialog box

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.

Figure 7.12 Loaded layer style

68 | P a g e
QGIS 3.16 Training Manual

Calculating Land Use Areas

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].

The Expression should display the following expression: $area / 10000.

Figure 7.13 Calculating the area of different land uses

3. Examine the calculated land use areas in the Attribute Table.

69 | P a g e
QGIS 3.16 Training Manual

Figure 7.14 Calculated land use areas

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.

5. When you are done, save your QGIS project as “AdvanceGIS_Chapter7_


Surname” in the training folder.

END OF EXERCISE

70 | P a g e
QGIS 3.16 Training Manual

Chapter 8
PREPARING A THEMATIC MAP USING THE BASEMAP
TEMPLATE

Introduction

Contrary to a basemap which emphasizes the location of various features such as


establishments, roads, buildings, and waterbodies, a thematic map is a special-purpose
map which highlights a certain theme or attribute. The previous maps that we have
prepared in this training manual, the population density map, faultline hazard map,
flood hazard map, landslide hazard map, and land use map, are examples of a thematic
map.

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

Figure 8.1 Opening the Basemap_Temp_A4 project file

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.

Inserting a Project File


1. In the Menu Bar, go to Layer → Embed Layers and Groups…

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

Figure 8.3 Select Layers and Groups to Embed dialog box

5. Rearrange the order of the layers on the Layers panel, by dragging down the layer
ELUM.

Figure 8.4 Arrangement of layers in the Layers panel

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

Updating the Map in the Layout View


1. In the Menu Bar, go to Project → Layout Manager….

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.

Figure 8.6 Layout Manager dialog box

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

Figure 8.7 New Item Properties dialog box

Editing the New Legend


1. Click on the new legend that will be generated. Then, on the Item Properties tab
on the right side of the window, go to the Legend Items panel and uncheck the
Auto update option.

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).

Figure 8.8 Rearranging the items in the legend

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).

Figure 8.9 Hiding the “ELUM” label in the legend

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

Figure 8.10 Fonts and Text Formatting panel

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

Figure 8.11 Changing the symbol width in the legend

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).

Figure 8.12 Changing the space between symbols in the legend

7. Still in the Item Properties tab, scroll down and uncheck Background (See Figure
8.13).

Figure 8.13 Disabling the background on the legend

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.

Exporting the Existing Land Use Map as a PDF File


1. In the Menu Bar of the Print Layout window, go to Layout → Export as PDF….

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

Figure 8.15 PDF Export Options dialog box

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

Figure 8.16 Existing Land Use Map of Laurel, Batangas

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.

Note: This exercise requires the participants to have an internet connection.

Materials

For this exercise, participants will be provided the following:

• Google Earth Pro Installer: GoogleEarthProSetup.exe

Installing Google Earth Pro


1. Locate the executable file GoogleEarthProSetup.exe in the folder C:\QGIS
Training Data\Installer.

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

Figure 9.1 Google Earth Pro Installation Progress window

3. After installation, a Google Earth Pro shortcut will be automatically generated on


your desktop. Double-click the desktop icon to launch the application.

Figure 9.2 Launching Google Earth Pro

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.3 Google Earth Pro interface

Navigating in Google Earth Pro


1. In the Search panel, type in your target area on the input box and click [Search].
In this exercise, we will digitize the features in Laurel, Batangas. You will notice
that the globe will zoom in and focus on the area that you have entered on the
search bar.

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

Figure 9.6 Using the Pan tool to navigate the area

Digitizing Point Features


1. In the Places panel, right-click on My Places and go to Add → Folder.

Figure 9.7 Creating a New Folder

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

Figure 9.8 Renaming the folder

3. In the Search panel, type in “Municipal Hall of Laurel, Batangas” click [Search]
to navigate to the sample area that we will digitize.

Figure 9.9 Sample area for the exercise

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:

a. Type in “Municipal Hall of Laurel” on the Name input box.

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.

Figure 9.10 Google Earth – New Placemark window

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

Figure 9.11 Digitizing landmarks in Google Earth Pro

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.

Digitizing Line Features


1. Create a new folder in the Places panel and name it as “Existing Road”.

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:

a. Type in “Road 1” on the Name input box.

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.

Figure 9.13 Google Earth – New Path window

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

Figure 9.14 Digitizing roads in Google Earth Pro

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.

Digitizing Polygon Features


1. Create a new folder in the Places panel and name it as “Existing Block”.

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:

a. Type in “Block 1” on the Name input box.

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

Figure 9.16 Google Earth – New Polygon window

3. Start digitizing the blocks by clicking on one of the corners of the target block, then
proceed until you close the entire polygon.

Figure 9.17 Digitizing blocks in Google Earth Pro

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.

Saving Digitized Features as KMZ Files


1. Select and right-click Existing Structure folder in the Places panel and select
Save Place as… from the dropdown options.

Figure 9.19 Saving the digitized layers as a KML/KMZ file

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].

Figure 9.20 Saving the Existing Structure layers

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.

Importing and Converting KMZ Files to Shapefiles


1. Launch the QGIS Desktop 3.16.7 software. Then, add the Existing Structure.kmz,
Existing Road.kmz, and Existing Block.kmz to the Map View using the steps that
you have learned in the previous exercises.

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

Figure 9.21 KML layers added to the Map View

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.

Figure 9.22 Navigating to 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].

d. Mark a check on the Add saved file to map options.

e. Do not change other settings. 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

Figure 9.24 Converted shapefiles loaded into the Map View

7. When you are done, save your QGIS project as “AdvanceGIS_Chapter9_


Surname” in the training folder.

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:

• Existing Structure Vector Layer in ESRI Shapefile Format:


ExistingStructure_GoogleEarthPro.shp
• Existing Road Vector Layer in ESRI Shapefile Format:
ExistingRoad_GoogleEarthPro.shp
• Existing Block Vector Layer in ESRI Shapefile Format:
ExistingBlock_GoogleEarthPro.shp

Adding Map Layers Using XYZ Tiles


1. Launch the QGIS Desktop 3.16.7 software.

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

Figure 10.1 Navigating to XYZ Tiles in the Browser Panel

3. In the XYZ Connection dialog box, input the following (See Figure 10.2):

a. In the Name input box, type in Google Earth.

b. In the URL input box, copy the following link:


http://mt0.google.com/vt/lyrs=s&hl=en&x={x}&y={y}&z={z}

c. Leave the other settings as default and click [OK].

Figure 10.2 XYZ Connection dialog box

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.

Figure 10.4 Google Earth satellite image layer

6. Repeat steps 2 to 5 to add other map layers shown in Table 10.1.

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

Adding Map Layers Using QuickMapServices Plugin


1. In the Menu Bar, go to Plugins → Manage and Install Plugins…

Figure 10.5 Navigating to the Manage and Install Plugins window

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.

Figure 10.7 Available layers in the QuickMapServices plugin

102 | P a g e
QGIS 3.16 Training Manual

5. Go to Google → Google Satellite to overlay a Google Satellite layer in the Map


View.

Figure 10.8 Google Satellite layer from the QuickMapServices plugin

Overlaying the Digitized Shapefiles to the Google Satellite Layer


1. Add the ExistingStructure_GoogleEarthPro.shp, ExistingRoad_Google
EarthPro.shp, and ExistingBlock_GoogleEarthPro.shp to the Map View using
the steps that you have learned in the previous exercises. Make sure that the three
layers are above the Google Satellite layer in the Layers panel.

Figure 10.9 Adding the digitized shapefiles

103 | P a g e
QGIS 3.16 Training Manual

2. In the Layers panel, right-click on the ExistingStructure_GoogleEarthPro layer


and click Zoom to Layer. Check whether the digitized shapefiles are properly
overlaid to the Google Satellite layer. You may change the symbology of your
datasets to make it easier to see if the layers are properly fitted to the satellite
image.

Figure 10.10 Overlaying the digitized shapefiles to the Google Satellite layer

3. When you are done, save your QGIS project as “AdvanceGIS_Chapter10_


Surname” in the training folder.

END OF EXERCISE

104 | P a g e
QGIS 3.16 Training Manual

Chapter 11
DATA COLLECTION USING GPS ESSENTIALS

Introduction

Global Positioning System (GPS) is a navigation system which utilizes satellite


constellations to accurately determine the location of a point on the Earth’s surface. A
typical handheld GPS unit can be used to record position, distance, direction, time, and
travel progress. In land use planning, GPS can be used for various applications such as
recording the coordinates of establishments and other important point features using
waypoints and delineating the administrative boundaries through GPS tracking.

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.

Installing GPS Essentials


1. In your Android phone, go to Google Play Store and type “GPS Essentials” in the
Search bar and click GPS Essentials from the list of suggested applications.

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.

Figure 11.2 Installing the GPS Essentials mobile application

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.

Figure 11.3 Opening GPS Essentials from the installation screen

Figure 11.4 GPS Essentials Mobile Application Icon

106 | P a g e
QGIS 3.16 Training Manual

Exploring the Tools in GPS Essentials


Familiarize yourself with the tools in GPS Essentials that we will use in this exercise.

Figure 11.5 Available tools in GPS Essentials

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.

Configuring GPS Essentials


1. Make sure that the GPS on your mobile phone is enabled. If the application asks to
allow GPS Essentials to access the location of your device, tap [Allow].

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.

Figure 11.6 Available satellites for the GPS Fix

108 | P a g e
QGIS 3.16 Training Manual

3. Configure the Dashboard by doing the following steps:

a. Tap the Dashboard icon from the home screen.

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.

Figure 11.7 Setting up 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

4. Tap the Settings icon and set the following parameters:

a. Position Datum: World Geodetic System 1984


b. Position Format: Degrees, Minutes, Seconds
c. Units: Kilometers, Meters
d. Angular Unit: Degrees
e. Bearing: True North

Figure 11.9 List of settings

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:

a. Tap the Portable Maps icon on the main screen.

b. Tap and hold anywhere on the map to create a new cursor.

Figure 11.10 Creating a new cursor

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

Figure 11.11 Dragging the cursor to the waypoint location

d. In the Actions wheel, tap the Add Waypoint icon to mark the waypoint (See
Figure 11.11).

Figure 11.12 Add Waypoint icon located on the Actions wheel

2. To create waypoints using the Google Maps tool, do the following steps:

a. Tap the Google Maps icon on the main screen.

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

c. Tap once on the target location to mark it as a waypoint.

Figure 11.14 Creating a waypoint in the Google Maps screen

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.

3. To create waypoints using the Waypoints tool, do the following steps:

a. Tap the Waypoints icon on the main screen.

b. Tap the Add Waypoint icon to create a waypoint on your current location (See
Figure 11.14).

Figure 11.15 Creating a waypoint in the Waypoints screen

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

Figure 11.16 Changing the symbol of the waypoint

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.

2. Take a photo of the landmark or location that you want to geotag.

Figure 11.17 Taking a photo for geotagging

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.

Figure 11.18 Checking the properties of the geotagged photo

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.

Figure 11.20 Create stream screen

3. In the Create Stream screen, go to the Track tab and tap [Start] to begin
recording your tracks.

Figure 11.21 Creating a new track

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

Figure 11.22 Track recording screen

5. Tap the map to show your track on the Portable Maps screen (See Figure 11.23).

Figure 11.23 Track recording shown on the Portable Maps screen

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.

2. To export the saved waypoints as KML file(.kml), do the following steps:

a. In the Waypoints screen, tap the Options icon and select Export from the
dropdown options.

Figure 11.24 Exporting all waypoints as KML file

b. In the dropdown options, select KML (Google Earth).

Figure 11.25 Setting the file format to KML (Google Earth)

c. Navigate to the folder where you want to save the waypoints and tap the
Export icon.

3. To export individual waypoints as KML file(.kml), do the following steps:

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.

Figure 11.26 Exporting individual waypoints as KML file

c. In the dropdown options, select KML (Google Earth).

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.

Figure 11.27 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

Figure 11.28 Exporting tracks as KML file

3. In the dropdown options, select KML (Google Earth).

Figure 11.29 Setting the file format to KML (Google Earth)

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.

END OF PART II EXERCISES

121 | P a g e
QGIS 3.16 Training Manual

REFERENCES

GPS Essentials. LearnOSM. (n.d.). https://learnosm.org/en/mobile-


mapping/gpsessentials/.

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

THE PROJECT ORGANIZATION

DHSUD Key Officials

Secretary : Eduardo D. Del Rosario


Undersecretary : Meynardo A. Sabili, AB, JD, LLM
Undersecretary : Atty. Marylin M. Pintor, CPA
Undersecretary : Zyril D. Carlos
Assistant Secretary : Melissa A. Aradanas, DMD, EnP
Assistant Secretary : Leira S. Buan
Assistant Secretary ; Atty. Avelino D. Tolentino III, EnP

Project Committee

Project Advisor : Nora L. Diaz, EnP

Project Manager : Engr. Julia Angela Mae E. Collado, EnP

Writer/Editor/Layout Artist : Engr. John Andrew B. Cruz


Roberts P. Mariñas
Engr. Myra Laika C. Estur
Kriza Marie T. Balite
Danilo S. Palomo

Graphic Designer : Roberts P. Mariñas

Members : Ibani C. Padao, EnP


Mic Ivan B. Sumilang, EnP
Roland Dane Z. Carreon, EnP

Support Group : Ruth R. Roxas, EnP


Mohammad Haydrey K. Aminulla
Charmaine Jeremy S. Galarosa
Peter Daniel F. Fraginal, EnP
Jackie Lyn N. Nunag, EnP
Danica Marie V. Arriesgado, EnP
Ronnie James R. Casamayor
Vanessa B. Baguiwet
Belmar S. Lasam, Jr.
Jemima M. Ragudo
James Earl P. Asas
Jezim L. de Asis

Administrative Support : Eleanor S. Sandoval


Josefina R. De Lara

123 | P a g e
QGIS 3.16 Training Manual

124 | P a g e

You might also like