Qgis Training Manual
Qgis Training Manual
TRAINING
MANUAL
NAMRIA Geomatics Training Center Basic GIS using QGIS
INSTALLING QGIS
1. Download QGIS Windows Standalone Installer for your Windows Operating System
(32bit or 64bit) from http://www.qgis.org
2. Double click on the downloaded setup .exe file to install or Right click and Run as
Administrator.
(ex: QGIS-OSGeo4W-2.14.1-1-Setup-x86_64.exe)
3. Click Next
4. In License Agreement,
Click I Agree button.
1
NAMRIA Geomatics Training Center Basic GIS using QGIS
4. Select the destination folder or leave as is and click the Next button.
5. An option to include the sample data sets. Leave as is, click Install.
2
NAMRIA Geomatics Training Center Basic GIS using QGIS
QGIS INTERFACE
Menu Bar
Tool Bar
Add data:
Vector,
Raster,
etc.
Layers List
Browser Panel
Manage
Layers
Toolbar
Map Canvas
Status Bar
1. Menu Bar provides access to all the main functions and plugins. For example, the File
toolbar allows you to save, load, print, and start a new project.
2. Toolbar provides one-click common functions, and task-specific functions.
3. Add Data /Manage Layers Toolbar tools for adding different datasets (vector, raster,
delimited text, geodatabases and web map services).
4. Layers List / Browser Panel shows all available data layers currently added to the
project.
5. Map Canvas provides a dynamic visualization of the active data layers.
6. Status Bar provides information about the current map and current project settings.
Also allows you to adjust the map scale and see the mouse cursor’s coordinates on
the map.
3
NAMRIA Geomatics Training Center Basic GIS using QGIS
Toolbars
Menu bar-
View-
Toolbars
Right Click
on the
blank space
of the
toolbar
4
NAMRIA Geomatics Training Center Basic GIS using QGIS
4a
4c
4d
4e
4b
4. CRS of currently loaded data can also be assigned using the following steps:
4a. Settings-Options
4b. CRS menu bar.
4c. Click the icon
Currently used CRS can also be selected through drop down menu.
4d. Search in the Filter box the desired CRS or Authority ID.
4e. Select the correct CRS and click OK
5
NAMRIA Geomatics Training Center Basic GIS using QGIS
Customizing Projection
6
NAMRIA Geomatics Training Center Basic GIS using QGIS
4a
4c
4d
4e
4b
7
NAMRIA Geomatics Training Center Basic GIS using QGIS
8. CRS of currently loaded data can also be assigned using the following steps:
4a. Settings-Options
4b. CRS menu bar.
4c. Click the icon
Currently used CRS can also be selected through drop down menu.
4d. Search in the Filter box the desired CRS or Authority ID.
4e. Select the correct CRS and click OK
8
NAMRIA Geomatics Training Center Basic GIS using QGIS
3
1
4
2 5
7
4
1. Right click or double click the layer to open the layer properties.
2. Click the style menu.
3. Select Categorized from the drop down menu.
4. Select the column name to be used in applying the color
5. Select the desired color ramp (default: random colors)
6. Click Classify button.
7. Click apply and OK.
8. To save the applied or current Style, click the Style button and save style either in
QGIS layer style file or SLD format.
9
NAMRIA Geomatics Training Center Basic GIS using QGIS
2
1
6
10
NAMRIA Geomatics Training Center Basic GIS using QGIS
9
8
10
11
NAMRIA Geomatics Training Center Basic GIS using QGIS
1. Click Raster-Georeferencer-
Georeferencer
1 A new window will open called
Georeferencer.
2. In the Georeferencer
window,
Click Open Raster icon to
open an image
12
NAMRIA Geomatics Training Center Basic GIS using QGIS
5. Configure the
6 Georeferencer from the
Settings-Configure
Georeferencer.
6. Check Show IDs
13
NAMRIA Geomatics Training Center Basic GIS using QGIS
7
7. Zoom in to the upper left
corner of the map.
8. Click the Add Point icon 8
and add control point by
clicking the intersection of
longitude and latitude
lines.
9. Input the values of X/East
and Y/North coordinates
from the map.
(ex: 120 45 and 14 45) 9
Deg. min. sec is separated
by space.
Repeat the process in
the three remaining
corners:
Upper right, lower left and
lower right corners.
10
11
12
14
NAMRIA Geomatics Training Center Basic GIS using QGIS
13
14
14. Click the Start Georeferencing icon. After georeferencing, Close the Georeferencer
window. You have the option to save the values of control points-GCP’s.
15. The georeferenced image will be displayed on the Map Canvas.
15
NAMRIA Geomatics Training Center Basic GIS using QGIS
16
NAMRIA Geomatics Training Center Basic GIS using QGIS
1. Click “Add Delimited Text Layer” icon or from Menu bar – Layer-Add Layer-Add
Delimited Text Layer.
2. Browse for the delimited text file (.csv format).
3. Click CSV (comma separated values) radio button.
4. Check if the first record in the table has the field names.
5. Assign the x and y fields from the csv file columns of (x-longitude-easting and
y-latitude-northing).
6. Click OK
2
3
4
5
17
NAMRIA Geomatics Training Center Basic GIS using QGIS
Note: Point data from the delimited text layer cannot be edited. Save it as a separate shape
file to enable edit the data.
18
NAMRIA Geomatics Training Center Basic GIS using QGIS
Joining Tables
Sometimes other attribute information are stored in a separate table and not available in the
attribute table associated with the spatial data. It is the result of the normalization process
applied in the database design.
To attach or join the separate table to the attribute table, we need to join the tables using the
common field available in both tables.
2
1
4
5
7
19
NAMRIA Geomatics Training Center Basic GIS using QGIS
4. Open the layer properties. Right click or double click the layer that needs to borrow
fields from the separate table.
5. Select the “Joins” menu.
6. Select the join layer (separate table), select the join and target field common to both
tables.
7. Choose fields to be joined.
8. Click Apply and OK.
9. Open the Attribute table of the layer that borrowed the fields from another table.
10. Check the columns if already present in the attribute table.
The columns are not permanent, save the layer as a new shape file to make it permanent.
To remove the joined fields, remove the joined fields in the Join menu of the layer properties.
10
20
NAMRIA Geomatics Training Center Basic GIS using QGIS
Labelling
3
4
2
5
1
21
NAMRIA Geomatics Training Center Basic GIS using QGIS
Prepare and organize your maps in the Map Canvas before creating a map layout.
Save the Project before creating a map layout.
1. In the Composition tab, configure the page size of the map layout.
4
2
3 5
23
NAMRIA Geomatics Training Center Basic GIS using QGIS
1 2 3 4 5 6 7 8 9 10 11 12 13
2. Click Add new map icon and drag a box on the blank space of the map layout.
3. Move the map item content using the Move item content tool by dragging the item
inside the map. The map can be resized using the Select/Move item tool.
4. In the Item properties tab, change the scale of the map to a desired value that fits in
the map item box.
5. Click on Lock layers for map item.
24
NAMRIA Geomatics Training Center Basic GIS using QGIS
Adding Grids
25
NAMRIA Geomatics Training Center Basic GIS using QGIS
Adding Labels
10 11
12
11. Using the Add new label tool, drag a box on the desired position of the label.
12. Input the label
13. Change the Font, Horizontal and Vertical Alignment
14
13
14. Add North Arrow using Add image tool by dragging a box on the desired position.
15. Select north arrow symbol from the Search directories window.
North Arrow can be resized and moved using the Select/Move item tool.
26
NAMRIA Geomatics Training Center Basic GIS using QGIS
16
15
16. Add scale bar using Add new scale bar tool by clicking on the desired position.
Adding scale
19
18
27
NAMRIA Geomatics Training Center Basic GIS using QGIS
18. Add scale bar using Add new scale bar tool by clicking on the desired position.
19. Change the scale bar properties:
Style: Numeric
Alignment: Middle
Scale can be resized and moved using the Select/Move item tool.
21
22
22a
20 23
Adding Legend
24
20. Add Legend using Add new legend tool by dragging a box on the desired position.
21. Change the legend properties:
Title : Legend
Title Alignment ; Center
22. Edit the legend items:
Uncheck Auto update
22a. Edit the Name of the Legend item properties if desired.
23. Font of different groups can be changed by clicking on the specific group.
24. Change the Columns count to 2, check Equal column width and Split layers.
Spacing of legend items can also be adjusted.
28
NAMRIA Geomatics Training Center Basic GIS using QGIS
26
25
28
27
29
NAMRIA Geomatics Training Center Basic GIS using QGIS
29
30
1 2 3 4 5 6
1. Group items
2. Ungroup items
3. Lock selected item
4. Unlock All items
5. Raise selected item
6. Align selected item
Note: When you add a rectangle over the map item, rectangle will cover the whole map. The
rectangle can be Send to Back using the Raised selected item tool.
30