Professional Documents
Culture Documents
Objectives:
(1) To utilize an open-source GIS software such as Quantum GIS (QGIS) Desktop
(2) To be able to familiarize with the interface and tools in QGIS Desktop
(3) To explore the capabilities of QGIS Desktop in displaying shapefiles and editing its properties
(4) To create a map layout in QGIS Desktop
Materials:
▪ Shapefile with filename Barangays (with file extensions .shp, .sbn, .sbx, .dbf, .prj, .shx, .xml)
Deadline of laboratory exercise is on the upper left side. Class comments posted will be visible to your
fellow classmates and lecturer. Private comments posted will be visible only to you and your lecturer.
2. From “Your work” dialogue box (upper right portion), click “+ Add or create” and select “File” from
the dropdown. You can drag your zipped folder to the upload interface or you can click “Select file
from your device”. Locate your file path where you stored your zipped folder for submission. Select
zipped folder and click “Open”.
3. Click “Upload”. Upon, submission of required laboratory output, click “Mark as done” in the “Your
work” dialogue box.
3. Click on the icon of QGIS Desktop to start working with the interface and tools in QGIS.
4. The initial interface will show recent QGIS projects. Click the New project icon . The QGIS interface
will look similar to the figure below.
MENU BAR
TOOLBARS
BROWSER
PANEL MAP VIEW
PROCESSING
TOOLBOX
LAYERS
DATA
PANEL
FRAME
AND
STATUS
BAR
Figure 1. QGIS Desktop Interface and panels
▪ Toolbars
There are several toolbars displayed on the interface and can be found below the Menu Bar
and beside the Table of Contents window. These toolbars contain icons with their
corresponding functions. These are equivalent icons of the functions under each menu. Hover
the mouse cursor and inspect the names of the icons.
You can drag these toolbars anywhere by clicking on the leftmost part (the space with vertical
dotted lines). A white crosshair will appear prompting you to drag the toolbar.
▪ Layers Panel
▪ Map View
This is the large window that displays the input data. You can view and select layers/features
in this window if the layers are enabled in the Layers Panel.
Question 2: What happens if the cursor is moved within the Map View? What is/are being changed or
displayed at what specific part of the interface?
B. Displaying shapefiles
Adding data in QGIS can be done through the Menu Layer > Add Layer.
Question 3: How many types of layers can be added on your QGIS workspace as seen under Menu
Layer > Add Layer? Please enumerate (or take snapshot).
6. Go to Layer → Add Layer → Add Vector Layer. The Data Source Manger window (see Figure 2) will
open.
7. Set “Source Type” to File and “Encoding” as: System
8. Under “Source” click the button and browse to the file: Barangays.shp.
9. Click Add and Close
C. Zooming tools
The zoom tools are useful for focusing and looking at the spatial aspect of your geographic data. Inspect
the different Zoom tools:
22. In the Layer properties window, go to Labels Tab. Labels can show names or description of your
features.
23. Click the drop-down button to enable the Single labels option,
24. For the “Value” option, select BARANGAYS from the drop-down menu. Click Apply then OK.
25. Zoom-in to the lowest/southern part of your data.
26. Take a snapshot of the island/group of barangays that include Brgy. Rabor.
27. Go back to the Layer Properties window. In the Source Tab, the layer (attribute/column) name
contained in the attribute table of the shapefile are listed.
Question 8: How many fields are there and what are their names and data type (type name)? Tabulate
your answer.
Question 9: What are the names of the icons shown in the Attribute Table window?
5. We will be making a map for the island groups containing barangay Rabor (Municipality of Balabac).
If the rendered map is not covering the full extent of our interest area, we can move the map view.
Select Edit > Move content to pan the map in the window and center it in the composer.
6. You can adjust the zoom level for the given map. Click on the Item Properties tab (located at the right
panels) and enter your desired Scale. Try: 200000
7. We can add an inset map to our layout. Go back to QGIS desktop and zoom out to the whole extent
of the BARANGAYS layer (Province of Palawan).
8. Go back to Composer and go to Add Item > Add Map. Drag a rectangle at the place where you want
to add the map inset. You will now notice that we have 2 map objects in the Print Layout, similar to
image below:
9. Select the new map object that we just added from the Items panel (Map 2). Select the Item properties
tab (Note: When making changes, make sure you have the correct map (item) selected). To avoid
confusion, you can rename the items in in the map layout. Select specific item (map) in “Items”. Click
on the “Item Properties” tab and scroll down to “Item ID”. Enter preferred name of the item (i.e., map
inset or main map or etc.)
10. To create a frame for the inset object, select the specific item in the “Items” panel and click “Item
Properties”. Scroll down to the Frame panel and check the box next to it. You can change the color
and thickness of the frame border so it is easy to distinguish against the map background.
17. Go back to the Print Layout window (Note: Be sure to click Refresh from the View tab to see the result
of the previous steps). To automatically highlight the area in our inset (Map 2) that represents our
main map object (Map 1), select Map 2 in the Items panel. In the Item properties tab, scroll down to
the Overviews section. Click the Add a new overview button .
18. Select Map 1 as the Map Frame. What this is telling the Print Layout is that it must highlight in our
current object Map 2 with the extent of the map shown in the Map 1 object.
19. Now that we have the map inset ready, we will add a grid and zebra border to the main map. Select
the Map 1 object from the Items panel. In the Item properties tab, scroll down to the Grids section.
Click the Add a new grid button
20. To configure the settings for the grid, click on the Modify grid... button.
21. In the Map grid properties view, click the button beside CRS. In the Coordinate Reference System
Selector window select WGS 84 EPSG:4326. Click OK
22. Set “Interval units” to: Map unit.
23. Select the Interval values as 0.1 in both X and Y direction. You can adjust the Offset to change where
the grid lines appear.
24. Scroll down to the Frame section and select a frame style that suits your taste (e.g. Zebra). Also check
the Draw coordinates box.
25. You can adjust the Distance to map frame till the coordinates are legible. You can also change font
type and size through the Font button.
26. Change the Coordinate precision to 1 so the coordinates are displayed only up to the first decimal.
27. To add a North Arrow to the map, click Add Item > Add North Arrow. Holding your left mouse
button, draw a rectangle on the top-right corner of the map canvas. On the right-hand panel, click on
the Item Properties tab and expand the Search directories section and select the North Arrow image
of your liking.
28. Add a scale bar. Click on Add Item > Add Scalebar. Click on the layout where you want the scalebar
to appear. In the Item Properties tab, make sure the correct map object (Map 1) is selected for which
to display the scalebar.
29. Choose the Style that fit your requirement.
30. Set scale bar units: Kilometers. Label unit multiplier: 1. Label for units: KM
31. In the Segments panel, you can adjust the number of segments and their size (e.g. Map units per bar
unit: Segments: L=0, R=4; Fixed width=5units, Height=2mm).