QGIS-Manual
QGIS-Manual
Introduction to QGIS
1
Composing Maps ..................................................................................................................................28
4.1 Styles and Labelling ..................................................................................................................28
4.2 Map tips....................................................................................................................................29
4.3 Compose manager – Design print maps ..................................................................................30
2
Chapter 1
Downloaded software for 64bit and 32bit systems shown below. It can be installed in
windows computers directly by double clicking.
3
Many tools are added to QGIS by using QGIS plugins. We activate some must-have plugins
by navigating to Plugins | Manage and Install Plugins. Plugins are activated by ticking the
checkbox beside their name.
4
Next, there are multiple toolbars to explore. If you arranged them as shown in the previous
section, you'll find the following toolbars in the top row:
File: This toolbar contains tools to create, open, save, and print projects
Manage Layers: This toolbar contains tools to add layers from vector or raster files,
databases, web services, text files, or create new layers.
Database: Currently, this toolbar only contains DB Manager, but other database-related
tools will appear here when they are installed
Attributes: These tools are used to identify, select, open attribute tables, measure, and so
on
Label: These tools are used to add, configure, and modify labels
Vector: This is currently empty, but will be filled by additional Python plugins
Web: This is currently empty, but will be filled by additional Python plugins
Digitizing: These tools enable editing, basic feature creation, and editing
Advanced Digitizing: This toolbar contains undo/redo, advanced editing tools, geometry
simplification, and so on
5
1.4 Exploring Spatial Data
6
Excel data or .csv can be added using Add Delimited Text Layer button. By selecting X-field
and Y-field for Longitude and Latitude values.
7
1.4.3 Coordinate Reference System
Layer’s coordinate system can be viewed using layer properties button and coordinates are
shown on the fly at the bottom of page.
8
1.4.5 Identifying features
Using the identify tool, we can click on any part and identify its properties as shown below.
9
1.4.7 Understanding scale of map
The scale of the map can be viewed by using the scale in the status bar
10
1.5 Selection and Measurement tools
Features can be selected using select features button; here options are available to select
features in multiple ways
Distance, area and angle measurements are possible using measure button.
11
Chapter 2
In Georerefencer open raster file and start inputting coordinates of known points as shown
12
Then press start georeferencing button (choose transformation type and resampling
method), select output location and file name, by pressing OK button, georeferencing starts.
13
2.2 Feature Creation/Digitizing
Open base map which is geo rectified and create new shapefile layer using new shapefile
layer button
Select type of vector (point, line or polygon), specify coordinate reference system (CRS),
and add essential attributes, finally save file in required location by giving name.
14
To add features to layer, select layer and toggle editing button, and then start digitising
features
15
Right click and select open attribute table button to see attributes of created features in
row and column wise. Finally press save layer edits button to save feature creation or
changes
16
2.3 Adding/Editing/Deleting attributes data
To add new column in attribute table, press new column button, en toggle editing mode,
specify type, width, precision, name etc.
17
2.4 Editing vector geometries
Geometries can be edited using digitization tools as shown for the vector feature.
18
2.6 Data Queries
Complex queries of data is done in QGIS using select feature using expression button
Multiple mathematical, logical queries are possible and selected features can be saved
separately for further work.
19
2.7 Field calculator
Area and length of polygon and line features are can be created using field calculator as
shown. Field calculator can also be used for mathematical calculations.
20
Chapter 3
Spatial Analysis
Many geo processing tools are available in QGIS, for example here clip and buffer tools are
demonstrated. Clipping features of one layer with other is carried out using clip tool under geo
processing tools.
21
Buffers for point, line and polygon features can be formed using buffer tool, by inputting
buffer distance
22
Selected features from spatial query can be exported as separated layer for further work.
23
3.3 Working with DEM
Elevation data called DEM are opened in QGIS using add raster data button, and it can be
used to create contours, slope, relief maps etc.
24
Contour creation
Contours are developed using contour tool as shown, contour interval need to be specified.
25
3.4 Geo-tagging of photos
Photos can be attached to point features by specifying file location, photo name using QGIS
plugins called eVis
26
27
Chapter 4
Composing Maps
Labels button is used for labelling of features; here simple labelling of attributes and label
using expressions are also possible
28
4.2 Map tips
Map tips are used for specific attribute viewing of features; here by simply moving cursor on
the map defined attributes are shown on the fly
29
4.3 Compose manager – Design print maps
To prepare atlas or maps in QGIS Compose manager is used. It facilitates user to page setup,
layer setting, inserting map components (legend, title, north arrow, scale bar etc.),
exporting maps to pdf or image formats.
30
31
32
Chapter 5
33
5.2 Raster Clipping
Another Raster Operation which you can do is to subset or crop an image. We can use a
polygon from a vector layer to crop the raster to the exact shape using the Clipper button
under Extraction of Raster.
The Background black pixels can be removed setting 0 as an additional no data value under
the Transparency properties of the raster
34
5.3 Raster Styling
The rasters are rendered in grayscale, where darker pixels indicate lower values and lighter
pixels indicate higher values
(Pl. Note: The a in the filename suggests that the Population counts were adjusted to match
the UN totals. We will use the adjusted grids for this tutorial.)
Each pixel in the raster has a value assigned. In the below example, this value is the
population density for that grid.
35
To better visualize the pattern of population density, we would need to style it. The Raster
Styling is similar to Vector Styling.
36
.
The output raster results in a grayscale visualization, but we can create much more
informative output by doing the raster styling
37
We can style the layer so that pixel values in certain ranges get the same color. Before we
dive in to that, we need to look at the Metadata tab and look at the properties of the raster
and Note the minimum and maximum values of this layer.
The Styling is done by selecting the Singleband pseudocolor as the Render type under Band
Rendering. The Color interpolation is set to Discrete and 4 unique classes are created. The
way color map works is that all values lower than the value entered will be given the color
of that entry.
38
A much more powerful visualization can be seen by with positive and negative changes of
population density.
39