Professional Documents
Culture Documents
QGIS Manual With Notes From NAMRIA
QGIS Manual With Notes From NAMRIA
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.
3. Click Next
4. In License Agreement,
Click I Agree button.
1
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
QGIS INTERFACE
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.
7. PROCESSING TOOLBOX menu contains the TOOLBOX for running many geoprocessing
tasks, the Model Builder for chaining tasks, and controls the additional scripts that can be run in
QGIS such as Grass, Python, R, SAGA, etc.
3
Toolbars and Panels
4
Adding Vector or Raster layers
. Another way is to drag and drop the file to layers panel or Map canvass.
5
Assigning/Defining the Coordinate Reference System (CRS) of data with unknown
CRS:
1. Loading a data without CRS (.prj, .qpj), Coordinate Reference Selector dialog box will
open automatically.
2. Using the Filter box, search the desired CRS or Authority ID (ex: 4326).
3. Select the correct CRS of the file being loaded.
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
6
Exporting a layer
1
1. Right Click on the layer, from the
context menu select Export Save Feature
as…
2.1
7
SYMBOLOGY
3
1
4
2 5
7
8
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.
8
Selection using Select by expression
2
1
6
9
7
10
10
Georeferencing scanned topographic map
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
11
4
5. Configure the
6 Georeferencer from the
Settings-Configure
Georeferencer.
6. Check Show IDs
12
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
13
10. Click the Transformation Settings.
11. Select Polynomial 1 in the Transformation Type drop down menu.
Resampling Method : Nearest Neighbor
Target SRS : select the correct projection of the map based from the map projection and
the coordinates used in adding control points. In this example use
EPSG:4253.
12. Check Load in QGIS when done. Click OK.
13. Control Points can be adjusted using the Move GCP point icon to reduce the residual error
in pixels. Zoom to the specific control point and move it using the Move GCP point tool,
observe the values of the Residual (pixels). Control Points can also be deleted using
Delete point tool.
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.
14
Geographic Information System QGIS
16
Geographic Information System 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 or select the custom delimiter used in
creating your table (colon, semi-colon, tab and space)
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. Assign the correct projection based on the values of x and y coordinates. In this example,
use ESRI:102454
3
1
6
4
7. Click Add.
17
Geographic Information System 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
Geographic Information System 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
Geographic Information System 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
Geographic Information System QGIS
Labelling
3
4
2
5
1
21
Geographic Information System QGIS
Map Layout
Prepare and organize your maps in the Map Canvas before creating a map layout.
Save the Project before creating a map layout.
Print Layout
1. In the Composition tab, configure the page size of the map layout.
4
2
3 5
23
Geographic Information System 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
Geographic Information System QGIS
Adding Grids
25
Geographic Information System 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
Geographic Information System QGIS
16
15
16. Add scale bar using Add new scale bar tool by clicking on the desired position.
Adding scale
19
18
27
Geographic Information System 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
Geographic Information System QGIS
26
25
28
27
29
Geographic Information System 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