DAP Training Manual - Module 1
DAP Training Manual - Module 1
TRAINING MANUAL
Table of Contents
2. To add more panels and toolbars, right-click the open/empty space near the toolbars
and check the desired toolbars and panels.
3. To add the toolbox containing the some of the important tools and functions in QGIS, go
to Processing and select Toolbox.
5. To add vector data (shp, kml/kmz, gpx, etc), select Add Vector Layer in the Manage
Layers Plugin. Browse the data (‘StaCruz_barangays.shp’) you are going to add, if you
have a lot of data in the folder, you can filter based on file format.
6. Use the Add Raster Layer when adding raster data (tif, jpeg, png, etc.). Browse
the data you are going to add, in this case the ‘Aster_DEM’.
7. Tabular data can also be added in QGIS. It usually comes in comma separated
values (csv) or text format. To add tabular data, use the Add Delimited Text
Note: If your data is in MS Excel document (e.g. xlsx), you need to save it in comma separated
values (csv) format first before it can be loaded in QGIS.
8. The contents of a tabular data can be appended to a shapefile layer through the process
called Joining/Linking. This process requires fields (columns) with identical values
for both (Barangay names) the shapefile layer and the tabular data.
9. We will append the tabular data (2015 Population data) into the Santa Cruz barangays
shapefile.
10. Open the properties of the target shapefile where you intend to link the contents of
the tabular data.
11. Go to Joins and add a new Join. Fill-in required inputs.
12. To permanently store the appended columns in the shapefile, right-click the joined
shapefile then click Export > Save Feature As.
14. To delete fields, click toggle editing mode then select Delete Field .
15. Highlight the names of the fields you wish to delete then Click OK. Make sure to
highlight the correct field to avoid loss of data.
16. To add new field, click toggle editing mode then select New Field .
17. In the attribute table, you can use the Field Calculator to do mathematical
computations such as length and area computations.
18. In this part, we will calculate the population density (population/land area) of each
barangay in the municipality of Santa Cruz using Field Calculator.
19. Like the previous step, click the Field Calculator in the attribute table. Instead of
selecting Update existing field, select Create a new field to directly create a new
field/column through the field calculator.
20. Name the output field POPDEN with Decimal Number type, field length of 10, and field
precision of 2.
21. In the expression box, implement the formula for population density by selecting the
columns for Population and Land Area (previously generated) under the Fields and
Values. Save the Edits and Toggle off the editing session to save the computation.
26. To save the KML layer, right-click the added KML file then click Export > Save Feature
As.
Data Conversion
27. To convert vector to raster, we will use the Rasterize Tool under the main menu
Raster > Conversion > Rasterize.
28. To convert raster to vector, we will use the Vectorize Tool under the main menu
Raster > Conversion > Vectorize.
4. In the Table window, you can click the Show Selected Records icon (Lower Left) to
show only those features that are selected on the map. On the other hand, click the Show
All Features icon to show both selected and unselected features of the map. Click the
Deselect All icon to remove all selections.
5. From the Table window of feature, click on the Select features using an expression
icon and the Select by Expression Query builder window shows up. The middle pane
contains the function list where the fields and some query functions can be found.
The right-side pane shows the HELP or description for each function while the left-side pane is
where the condition/s for the selection is encoded.
6. In the Function List, drop down Fields and Values. Municipalities are listed under
NAME_2 column, hence we select it by Double-Clicking. Notice that “NAME_2” text
will appear inside the Expression Box. The Field Values window will then appear under the
Function List, click all unique. All Records under the NAME_2 field will appear.
7. To complete the expression, select the Equal (=) sign under Operators and select Santa
Cruz under the Field Values. Click Select Features. Upon making the correct expression
and clicking the Select Features, the selected areas will be highlighted. The selection will
also appear on the map area.
8. To save this selection as a separate layer, right-click the shapefile with the selection then
click Export > Save Selected Features As. The Save vector layer as.. window will
appear. Under the “Save As” row, click browse, name the output file, then click Save.
Leave the rest and click Ok.
9. The output shapefile can now be added using the Add Vector Layer tool. To clear the
selection made, open the Attribute Table then click Unselect All or use the Deselect All
Features from All layers icon at the Attributes Toolbar found at the top of the map
area.
6. For the labels, add the Centroids shapefile into the Layers/Table of Contents. Right-
click the shapefile to be labelled then select Properties.
7. Select Labels on the left pane of the layer properties window.
2. After giving the print layout a unique title, Click OK. A blank print layout canvass will
appear.
3. To change the paper size and orientation, go to Layout > Page Setup. Vertical and
Horizontal Guides can also be added by selecting the Guides tab in the Properties window
at the right side.
4. The first important map element that should be added in the layout is the Map Element.
Click Add Item > Add Map tool found at the menu bar above and drag the element
towards the layout area.
5. Selecting a certain element in the layout allows you to change the item properties of that
specific element in the properties window at the right side.
6. Add more elements into the map layout such as Legend, Scale Bar, Meridian Arrow,
Mapped by, Data Sources, and Map Title using the Add Item menu bar or elements
toolbar on the right side. The Item properties of each element that is added into the layout
can also be modified.
7. To save the map layout as a jpeg file, click Layout > Export as Image.
8. To save the layout project file (QGZ), click Layout > Save Project. The qgz file stores
that layout of the map but not the individual shapefiles.