Qgis - Training - Practicals 2025
Qgis - Training - Practicals 2025
1
Introduction to Geographical Information System
Aim: In this Experiment, we will introduce importance, components and functions of Geographical
Information System.
DEFINITION:
The definition of what exactly is a GIS ?is a much discussed and debated
question.
A wide diversity of definitions and interpretations exist. We
commonly think of a GIS as a single, well-defined, integrated computer
Functional Definition :
Geographic Information System (GIS) is a system for capturing, storing,
checking, integrating, manipulating, analysing and displaying geographically
referenced data.
Component Definition:
GIS is an organized collection of computer hardware, software, geographic
data, procedures, and personnel designed to handle all phases of geographic
data capture, storage, analysis, query, display, and output.
USEFULNESS OF GIS
1. GIS is a powerful tool for handling spatial data collected from a
variety of sources at different scales and resolutions.
2. Large quantities of data can be stored, maintained and retrieved at
a greater speed and low cost.
3. GIS is able to manipulate and integrate different types of data in
single analysis which is otherwise an impossible task.
4. It can perform complex spatial analysis providing both qualitative
and quantitative results.
5. GIS is extremely helpful in planning scenarios, decision models and
interactive processes.
6. It also facilitates the following:
a) Overlays of data for the purpose of comparison;
b) Updating of information to depict change with time;
c) Change of scale for micro analysis;
d) Generation/interpolation of data through manipulation of
known factors;
e) Incorporation of remotely sensed data for resource mapping,
monitoring and management.
COMPONENTS OF A GIS
A geographic information system is the combination of skilled
persons, spatial and descriptive data, analytic methods, and computer
software and hardware—all organized to automate, manage, and deliver
information through geographic presentation. The important components
of a Geographical Information System include the followings:
(a) People (b) Data
(c) Procedures and analysis (d) Hardware and (e) Software
1. People who build and use GIS: GIS technology is useless without
people power. GIS has wide range of users from specialists who design it
to the end users. The identification of specialist's vs. end users, known as
'brain ware', is important for proper implementation of GIS technology.
These are the primary roles that people play in a GIS:
2. Data sources for GIS: Data is one of the most important, and often
most expensive, components of a GIS. Spatial data and related tabular
data are the backbone of GIS. The existing data may be acquired from a
supplier or a new data may be created/collected in house by the user. The
digital map forms the basic data input for GIS. Tabular data related to the
map objects can also be attached to the digital data.
5. GIS software: The GIS software includes the programs and the user interface for
driving the hardware. GIS software generates, stores, analyzes,
manipulates and presents geographic information or data. An application
software with the following functional modules is important prerequisite of
a GIS:
• Software related to data entry, editing and maintenance
• Software related to analysis/transformation/manipulation
• Software related to data display and output.
You can think of a GIS as a spatially enabled database management
system. This architecture gives you the best of commercial database
technology and sophisticated geographic software.
FUNCTIONS OF GIS:
The Functions of GIS describe the steps that have to be taken to
implement a GIS. These steps have to be followed in order to obtain a systematic and
efficient system. The steps involved are:
I) Data Capture: Data used in GIS often come from many sources. Data sources are
mainly obtained from Manual Digitization and Scanning of aerial photographs, paper maps,
and existing digital data sets. Remote-sensing satellite imagery and GPS are promising data
input sources for GIS.
II) Data Compilation: Following the digitization of map features, the user completes the
compilation phase by relating all spatial features to their respective attributes, and by
cleaning up and correcting errors introduced as a result of the data conversion process.
III) Data Storage (GIS Data Models): Once the data have been digitally compiled, digital
map files in the GIS are stored on magnetic or other digital media. Data storage is based on a
Generic Data Model that is used to convert map data into a digital form. The two most
common types of data models are Raster and Vector.
IV)Manipulation: Once data are stored in a GIS, many manipulation options are available
to users. These functions are often available in the form of "Toolkits." A toolkit is a set of
generic functions that a GIS user can employ to manipulate and analyze geographic data.
Toolkits provide processing functions such as data measuring area and perimeter, overlaying
maps, performing map algebra, and reclassifying map data.
V) Analysis: The heart of GIS is the analytical capabilities of the system. What distinguish
the GIS system from other information system are its spatial analysis functions. The analysis
functions use the spatial and non-spatial attributes in the database to answer questions about
the real world. Geographic analysis facilitates the study of real-world processes by
developing and applying models. Such models illuminate the underlying trends in geographic
data and thus make new information available. Results of geographic analysis can be
communicated with the help of maps, or both.
The range of geographical analysis procedures can be subdivided into the following
categories:
Database Query
Overlay
ProximityAnalysis
Network Analysis
Digital Terrain Model
Statistical and Tabular Analysis.
VI) Visualization: In many types of geographic operations, the end result is visualized as a
map or graph. Maps are very efficient at storing and communicating geographic information.
While cartographers have created maps for millennia, GIS provides new and exciting tools to
extend the art and science of cartography. Map display can be integrated with reports, three-
dimensional views, photographic images, and other output such as multimedia.
Experiment No. 2
1. Menu bar:
provides access to
various QGIS
features.
2. Toolbar: provides
access to most of
the same functions
as the menus.
3. Layer Panel: This
area lists all the
layers in the
project.
4. Map view: maps
are displayed in
this area.
5. Status Bar: The
status bar shows you your current position in map coordinates as the mouse pointer is
moved across the map view.
1. FILE menu is for Opening, Saving, Printing the data layers and closing the current
project.
2. EDIT menu is for adding, modifying, deleting spatial features within an editable data
layer.
3. VIEW menu is for primary Pan, Zoom, Feature Selection, and Toolbar Controls.
4. LAYER menu is for adding, removing, visibility of data layers, and for changing Layer
Projections.
5. SETTINGS menu controls all basic Project settings, Project projection & other defaults
6. PLUGINS menu lists the installed Plugins and their sub-routines, and it can Add or
Remove Plugins.
7. RASTER menu is for Raster processing functions.
8. VECTOR menu is for standard Vector GIS spatial operations
like buffering, dissolving, query, etc.
2.2Project Menu
Experiment No. 3
Reading of Topographical Maps: The study of topographical mapsis simple. It requires the reader to
get acquainted with the legend, conventionalsign and the colours shown on the sheets. The
conventional sign and symbolsdepicted on the topographical sheets are shown below
CONCL
USION: All conventional symbols to interpret various features in topographical maps have studied.
Experiment No. 4
Aim: To introduce various interpretation keys used in aerial photo/ imagery interpretation or
photo interpretation techniques.
Recognition elements: The different reflection properties of terrain features produce varying
tonal expressions on remotely recorded photographs and images. This, together with other
interpretative elements such as shape, size, drainage pattern, texture, landforms, soils,
vegetation and land use etc. enables an experienced photogeologist and remote sensing
specialist to distinguish different units and features from the remotely sensed data following
‘convergence of evidence’. Investigations range in scope from reconnaissance surveys to
detailed studies incorporating field investigations aided by visual interpretation, using
suitable scales of air photos and images in different multispectral bands as required. The
most important and commonly employed recognition elements in photo interpretation are: a)
Tone b) Texture c) Colour d) Pattern e) Shape f) Size g) Association. These elements can
be ranked in relative importance:
Since aerial photography is dependent on photographs, we need, at this juncture, some basic insight
into how a photo is made.
1. Tone: Tone (closely related to Hue or Color) -- Tone refers to the relative brightness or color of
elements on a photograph. It is, perhaps, the most basic of the interpretive elements because without
tonal differences none of the other elements could be discerned.
2. Texture: This may be defined as the frequency of tonal change within an image. It is produced by
a set of features too small to identify individually. Grass, cement, and water generally appear
"smooth", while a forest canopy may appear "rough".
The scale of photo, therefore, had an important bearing on the texture. The texture may be defined as
coarse, fine, mottled, banded, dotted, smooth, rough, even, uneven, speckled, granular, blocky,
rippled, matted, etc.
3. Colour: Colour as a criterion for recognition of objects can be successfully employed while
handling colour photographs/imagery. On the basis of colour differences, different features can
perhaps be better identified and delineated on colour photographs/imagery than in black and white
photographs/imagery. Colour images may be 'True colour' or 'False colour' depending upon the film
type and filters used. In false colour photography using appropriate filters, certain features can be
enhanced for better delineation.
4. Pattern (spatial arrangement) -- The patterns formed by objects in a photo can be diagnostic.
Consider the difference between (1) the random pattern formed by an unmanaged area of trees and (2)
the evenly spaced rows formed by an orchard.
a. Drainage pattern: Drainage pattern is an important element in geologic interpretation of
aerial photos. In bedrock areas the drainage pattern depends for the most part on the
lithologic character of the underlying rock, the attitude of these rock bodies and arrangement
and spacing of the plane of lithologic and structural weakness encountered by runoff.
Different drainage patterns interpreted are dendritic, trellis, parallel, radial, annular,
rectangular etc.,
b. Vegetation pattern: Study and analysis of vegetation pattern also often yield clues to the
identification of underlying lithology or structures. For instance a linear vegetation pattern
clearly reveals a geological structures such as joint or fracture or fault.
5. Shape: Shape -- refers to the general outline of objects. Regular geometric shapes are usually
indicators of human presence and use. Some objects can be identified almost solely on the basis of
their shapes: for example - the Pentagon Building, (American) football fields, cloverleaf highway
interchanges
6. Size: The size of objects must be considered in the context of the scale of a photograph. The scale
will help you determine if an object is a stock pond or Lake Minnetonka.
7. Location/Association: Some objects are always found in association with other objects. The
context of an object can provide insight into what it is. For instance, a nuclear power plant is not
(generally) going to be found in the midst of single-family housing.
RESULT: Recognition elements for Land nuse/ land cover features have studied.
Experiment No. 5
DISPLAYING THE DATA
Aim: To illustrate the various functions of GIS to display the data
Introduction: Although the two terms, data and information, are often used indiscriminately,
they both have a specific meaning. Data can be described as different observations, which are
collected and stored. Whereas, Information is that data, which is useful in answering queries
or solving a problem.Geodata is information about geographic locations that is stored in a
format that can be used with a GIS. GIS technology utilizes two basic types of data. These
are:
Spatial Data: Spatial data describes the locations of spatial features. Two basic types of
spatial data models have evolved for storing geographic data digitally. These are referred to
as:Raster and Vector
Raster Data Formats:Raster data model is a geographic data model that represents
information as a regular array of rows and columns (or pixels), similar to a grid or image,
where each cell contains a value representing information, such as temperature. Rasters are
digital aerial photographs, imagery from satellites, digital pictures, or even scanned maps.
Data stored in a raster format represents real-world phenomena:
Thematic data (also known as discrete) represents features such as land-use or soils
data.
Continuous data represents phenomena such as temperature, elevation, or spectral
data such as satellite images and aerial photographs.
Pictures include scanned maps or drawings and building photographs.
Vector Data Formats: Vector data model is a data model in which the location and shape of
objects is represented by points (zero dimensional objects with only a position in space but
no length), lines(also termed segments or arcs, are one-dimensional spatial objects where ,
besides having a position in space, they also have a length)and areas(also termed polygons,
are two-dimensional spatial objects with not only a position in space and a length but also a
width) that are fundamentally made up of x,y coordinates. Shapefile is the one of the
common format to store all vector data.
Non-spatial data or Attribute Data: Describes characteristics of the spatial features. These
characteristics can be quantitative and/or qualitative in nature. Attribute data is often referred
to as tabular data.
Geodata can be stored in a database, geodatabase, shapefile, coverage, raster image, or even a
dbf table or Microsoft Excel spreadsheet.
PROCEDURE:
5.1 Starting a new project: Go to Project menu, save→ Save As (the same options
are available in the toolbar). Then, choose the name for your project (e.g., my project) and
browse the location to save it.
5.2 Setting Coordinate Reference System: In QGIS the default projection, or CRS, is WGS84
Geographic Coordinate System. This CRS has become a global standard for latitude and longitude
positions, such as those captured with GPS devices. Note that "un projected" data, or those with
projections that cannot be interpreted will be projected by default in WGS-84 when using QGIS. It is
possible to load layers with different CRS into a QGIS project and view them seamlessly in the same
coordinate space. From the Menu go to Project and select PROJECT PROPERTIES.
1. Note the checkbox for enabling "on the fly" CRS transformations
2. The CRS Selection Panel shows the current project CRS.
3. We can select the CRS by recently used CRS options or by searching from browsing CRS
Options.
4. The Search by CRS Name panel provides a drop-down selection of the main Projection
Authorities, such as EPSG, and a form to search for a name or ID number within that authority
list.
5. You can also select from Recently used projection settings.
6. After setting the CRS options, Click ok.
5.3 Creating shape files like point, line & Polygon: Go to layer menu → create layer→
New Shape file Layer from the Layer menu (or the same button on the toolbar). The New
shape file layer dialog box will be displayed.
Choose the type of layers like point, line or polygon. Below the New field list, type a name
(e.g., location), select the type as text data & type the field length click ok . Then click on
[Add to field list] icon, location field name will be displayed in field list table likewise we
add two more fields by following the same procedure, and then click [OK]. To remove the
unwanted fields in the list just select the name in field list and click remove field.
After clicking ok, you will be prompted to the Save layer as dialog box. Type the file
name as (e.g., Housing location) and click [Save]. You will be able to see the new layer in
the Layers list in the window.
The same procedure will be followed to create another layers like line & polygon
also.
5.4 Adding vector layer (shape files): To add a vector layer, click on the Add Vector
Layer toolbar button or, on the menu, select the option Layer → Add Vector Layer. This will
bring up a new window. From the available options check File. Click on button [Browse] to
navigate the file system and select the shape file to add it and start editing the layer.
5.5 Adding Raster layer (images): To add a raster image, click on the Add Raster
Layer toolbar button or, on the menu, select the option Layer → Add Raster Layer. This
will bring up a new window and select the raster file name and click ok.
After clicking ok, The Raster layer added in your layer view panel, automatically raster
To assigning the Raster band values for your image, Right click the raster image go to
properties & click the style. In Band rendering, click the render type as multiband color&
change the Red band value as band 3, Green band value as band 2 & Blue band as band 1
by using drop down list arrow.
In Resampling, zoomed in option need to set as Bilinear by using drop down arrow.
After setting these all band layer options in layer properties - style tab dialog box, click ok.
then go to raster tool bar . Click the first option as Local cumulative cut stretch icon. Now the
image will be appear as per given below.
5.6 Layer Properties:Layers will not contain any geographical data, but it references the data
location. Any data opened in the GIS software is treated as a layer. Layers will be resided
within a data frame. Layer stores the symbology of data. Layers can be moved by Click and
Drag method within Table of Contents.
The Layer Properties dialog for a vector layer provides general settings to manage appearance
of layer features in the map (symbology, labeling, diagrams), interaction with the mouse (actions,
map tips, form design). It also provides information about the layer.
In the Layers panel, double-click the layer or right-click and select Properties… from the
pop-up menu;
Go to Layer ‣ Properties… menu when the layer is selected.
The vector Layer Properties dialog provides the following sections: Information, Source, Symbology
(also available in the Layer styling panel), Labels (also available in the Layer styling panel),
Diagrams, 3D View (also available in the Layer styling panel), Source Fields, Attributes Form etc.,
5.7 Symbology or Displaying features by category: By default, all the parcels are drawn using the
same symbol when you add them. You can also draw them based on an attribute. In this case, type of
land use.
RESULT: Raster and Vector data structures displayed and viewed in QGIS.
Experiment No. 6
Editing of Vector and Attribute Data In QGIS
Aim: To create a vector data using the digitisation method and to illustrate various modifying and
editing tools used in the digitization method.
Introduction: The process of representing an analogue signal or an image by a discrete set of its
points is known as Digitizing. This data after conversion is in the binary format, which is directly
readable by computer. This is the mostly used Vectorisation method. The digitisation methods are of
four types based on the instruments and methods using. Here we are using a type called as Heads-up
Digitizing/on screen digitising. It is similar to manual digitizing in the way that lines have to be
drawn manually but directly on the computer screen. So in this level of accuracy increases and time
taken decreases.
PROCEDURE:
6.1 Editing layers
In editing session Right Click on the layer name to select the layer you have just created. All
editing sessions start by choosing the Toggle editing option (either on the toolbar or under the
Layer menu). Select this option and note that the little pencil symbol will show up beside the name of
the layer, indicating that the layer is now editable. This procedure is same for all three layers like
Point, Line, Polygon.
for editing point layer, click on theAdd Feature icon (or select Edit → Add Feature). When
you do this, the cursor will look different (not an arrow head). click on the map area to create the first
point of your new feature. After editing Right click the mouse, featureattribute small dialog box
will appear and enter the location name (e.g., Ramapuram) then click ok.
By right clicking the vector layer, select open attribute table, the edited attribute table will be
displayed.
Keep on clicking for each additional point you wish to include in your point layer by following the
same procedure & naming the features attributes as per given above. When you have finished
adding points to your layer. Then, click on Save Layer Edits (either on the toolbar or under the
Layer menu).
for editing line/Polygon , the same procedure shoul be followed as noted for point features by click
on the Add Feature icon (or select Edit → Add Feature).
By right clicking the vector layer, select open attribute table, the edited attribute table will
be displayed.
6.2 Adding fields in attribute data
In editing mode you want to add one more field or delete field for your vector layer, Right click
your vector layer & click on open attribute table, window will be appear as on below. By clicking
add field icon in above mentioned ,small add field dialog box appear, type the name of the field,
enter the type as text by using drop down list & enter the length as 50, then click ok.
After clicking ok, automatically area field will be added in your attribute data as per below.
6.3 Deleting fields in attribute data
In QGIS Vector layer you want to delete some unwanted fields. Right click your vector layer &
click on open attribute table, window will be appear as on below. By clicking delete field icon a
small delete field dialog box appear, click the unwanted field what u want to delete in vector layer,
then click ok( e.g., delete the area column in attribute data).
After clicking ok, automatically area field will be deleted in your attribute data as per given below.
6.5 Converting area into acres by using field calculator in attribute data
In the field calculator dialog box check create a new field, enter the output field name as acres,
Output field type as Decimal number (real) & Output field length as 10.
In Right side of the dialog box, below the row number and select the geometry parameters like $area
then use the expression * then type 0.00024711 and click ok.
After clicking ok, take a look at the attribute table, area will be calculated as acres in new column.
RESULT: Point, Line and Polygon features along with attributes were manually created and
calculated.
Experiment No. 7
Patch Missing data / fill raster regions: The downloaded SRTM data contains “no-data” gaps, where
elevation values are missing from the terrain grid. Intermittently it will be essential to patch/fill
missing elevation data points in theDEM. Fill raster regions with no data values by interpolation from
edges. The values for the no-data regions are calculated by the surrounding pixel values using inverse
distance weighting. After the interpolation a smoothing of the results takes place.
Hillshade:Hillshade is a technique for generating shaded topographic images of the earth’s surface
elevations where the reflection of artificial light arriving from a point source of illumination from a
given altitude (inclination) and azimuth (declination) is simulated. A DEM could be artificially
illuminated from any direction desired, which is not possible in optical satellite imagery and can
create grid of shadows for a specific time of day.
Aspect:An aspect slope map shows the direction and degree of slope for a terrain by assigning a
number between 0 and 360, for each cell in the grid. An aspect value of a cell is measured clockwise
in degrees from 0-due north – to 360 again due north, forming full circle. The value of each cell in an
aspect dataset indicates the direction of the cell’s slope faces. Flat slopes have no direction and are
given a value of -1, direction 0 is north, 90 is east and so on. Aspect categories are symbolized using
hues (e.g., red, orange, yellow, etc.) and degree of slope classes are mapped with saturation (or
brilliance of color) so that the steeper slopes are brighter.
Roughness: Outputs a single-band raster with values computed from the elevation. Roughness is the
degree of irregularity of the surface. It’s calculated by the largest inter-cell difference of a central
pixel and its surrounding cell. The determination of the roughness plays a role in the analysis of
terrain elevation data, it’s useful for calculations of the river morphology, in climatology and physical
geography in general.
Sieve:Removes raster polygons smaller than a provided threshold size (in pixels) and replaces them
with the pixel value of the largest neighbour polygon. It is useful if you have a large amount of small
areas on your raster map.
Slope:Generates a slope map from any GDAL-supported elevation raster. Slope is the angle of
inclination to the horizontal. You have the option of specifying the type of slope value you want:
degrees or percent slope.
Terrain Ruggedness Index (TRI): Outputs a single-band raster with values computed from the
elevation. TRI stands for Terrain Ruggedness Index, which is defined as the mean difference between
a central pixel and its surrounding cells.
Topographic Position Index (TPI):Outputs a single-band raster with values computed from the
elevation. TPI stands for Topographic Position Index, which is defined as the difference between a
central pixel and the mean of its surrounding cells.
RESULT: The Digital Elevation model is created and further analysed to generate various
derivatives.
Experiment No. 8
PROCEDURE:
QGIS allows you to create maps. To compose map, go to project and new composer or press new
composer icon. The composer titledialog box appear, enter the composer title.
Enter the map composer title in it then click ok. After pressing OK button, new window will
popup
In composer interface, there are many buttons. If you hover over the button you can see the tool-
tip providing info about it. select the layout tab in menu bar, The following map elements are
explained below here.
Add map: This button add the QGIS canvas (the map that we want to present) to your
composer.
Add label: This button help to provide information about generated map such as Title, Author,
and Date etc.
Add Legend: This button bring the symbol from the map canvas.
Add attribute: This will add the desired attribute table of available layer. This help to show
statistics data on map.
This buttons help to print map either in hard-copy or in image or in pdf as per
user needs.
To compose map, first click Add map, then draw rectangle box in working space, map will be added
in map composer window. By following these above map elements like Add Label, Add Legend, Add
scale, Add new arrow etc.. By using these item properties in the right side of the mapping window we
can modified the settings of map elements to compose the following map.