Training Course on
“ Coastal Vulnerability mapping and Analysis using GIS/QGIS Techniques"
26th to 30th August, 2019
H. SHIVA KUMAR
[email protected]
Hands-on
➢ QGIS introduction
➢ Downloading satellite data from web
➢ Satellite data visualization
➢ Subset based on AOI
➢ Vector shape file creation
➢ Map Composition
• Raster data opening in QGIS
• Raster Band Composition
• Change the band combination
• Adding data to band set
• Data Clipping
• Shape file creation
• Adding fields to attribute table
• Attribute data editing
• Vector data editing
• Export to KML
• Map composition
Outline
Download Landsat data
➢ Go to http://earthexplorer.usgs.gov/ and create new user account Login
• Select clear and cloud free data
• Download Landsat 8 OLI Level-1
Give the path to save data and click
on save
1 2
3 4
5 6
7
8
Landsat 8 Operational Land Imager (OLI) and Thermal Infrared Sensor (TIRS)
Raster data downloading in QGIS:
Loading Google earth to QGIS:
1 2
3
4
Landsat 8 OLI+ band configuration:
Plugin installation :
➢Go to plugins manage and install plugin Select Semi automatic classification and install
1
2
Raster data downloading in QGIS:
➢Now open Semi Automatic Classification Download Products
➢Click on login data enter login ID and Password (Need login in https://ers.cr.usgs.gov/login/)
➢Click on search clock on + symbol now go to QGIS window left click for UL, right click for UR
➢Now coordinates will appear in UL and UR Products select L8 OLI/TRS Select Date
➢Click on find image list will come select image Click on run give path to save data
1
2 3 4
5
6 7
8
9
1 2
4 3
Raster data opening in QGIS:
1
2 3
4 5 6
Raster Band Composition:
1
2
Give the path and file name
Contin…….
Change the band combination
➢Select the FCC image right click properties
1
2
3 4
5
6
Adding data to band set:
➢Go to SCP click on band set SCP plugin window opens.
If band data not added to QGIS window click on open file Browse the image file
1 2
3 4
Now select the bands which you want to create band set or select all bands
➢ More band set creation
➢ After band creation if you want to remove any band from band set
1 2
3
4 5
To remove All the Bands
Contin…….
1 3 2
4
➢After 3 step draw ROI on raster image or use shape file
➢Go to SCP processing Clip multiple raster
Data Clipping:
Shape files are three types : 1. Point shape file
2. Line shape file
3. Polygon shape file Point Shape file creation :
1
2 3
4 5
6
7 8
9
10
11
Direct click on create new shape file icon
Shape file creation:
Point Shape file Editing :
➢Select point shape file
➢Click on Toggle editing add point feature put points on image
➢ To save edited data click on save layer edits.
➢ To stop editing click on Toggle editing
1 2
4
5 6
7
8
3
Contin…….
➢ Moving point from one location to another location .Go to Edit Move feature
➢ Now click on point to select the point and click on image where you want to place that point
1
2 3 4
➢ To edit the attribute data select that point using select features by area or single click
5
6 7
8
Modify the attributes of all selected features
Simultaneously
Symbology :
➢ To change symbol Select layer(Point or Line or Polygon) right click Properties
➢ In layer properties window Click on Symbology Now change the symbol style, colour, size ok
1
2
3
4
Line Shape file creation:
Direct click on create new shape file icon
1
2 3
4
5
6 7
8 9
10
➢ Go to layer Create Layer New shapefile Layer
➢Select line shape file
➢Click on Toggle editing add line feature draw a line on image
Draw a line and to complete line right
click on mouse
➢ To save edited data click on save layer edits.
➢ To stop editing click on Toggle editing
1
2 3
4 5
6
Line Shape file Editing :
Contin…….
Split line feature :
➢ Select line which you want to split using select features by area or single click
➢ Click on split features draw a line where you want to split and right click to complete line Reshape Line feature:
➢ Select line which you want to split using select features by area or single click
➢ Click on reshape feature draw a line where you want to split and right click to complete line Note: Drawing line in reshape feature line first point and last point should touch line feature
Split features Reshape
features Split
line
Before reshape
After reshape
1
Polygon Shape file creation:
1
2 3
4 5
6 7
8 9
➢ Go to layer Create Layer New shapefile Layer
Polygon Shape file Editing:
➢Select polygon shape file
➢Click on Toggle editing add polygon feature draw a polygon on image
➢ To save edited data click on save layer edits.
➢ To stop editing click on Toggle editing
1
2 3
5 6
7 8
4
Draw a polygon and to complete polygon right click on mouse
Contin…….
One to many polygons:
➢ Select the polygon using select features by area or single click
➢ Now click on Split features Draw a line where to split polygon and right click Note: Starting point and ending should touch the polygon line
3
1
2
Contin…….
One to many polygons:
➢ Select the polygon using select features by area or single click
➢ Now Select the polygons which you want to merge press shift key in keyboard and click on multiple polygons click on Merge selected features.
Reshape polygon:
➢ Select the polygon using select features by area or single click
➢ Click on reshape features Now draw a line the way you want to reshape feature and right click to complete. That line staring point and ending point should touch the polygon
Before merge
After merge
After reshape
Before reshape
Reshape feature
Select feature
Contin…….
Adding fields to attribute table:
➢ Click on open attribute table Attribute table window opens Click on New field
➢ Add field window opens Give the field name, type, length Ok
➢ To Delete filed click on Delete field Select filed from delete field window OK
2
Delete filed1
3
4
Contin…….
Area calculation:
➢Click on open Field calculator in attribute table window
➢In filed calculator check create a new field Give name, type, length Geometry double click on $area ok
2 1
3
4 5
6
Contin…….
Area and perimeter or length of line feature calculation:
➢ Click on vector Geometry tools Add Geometry attributes
➢In input layer select polygon feature Run (Calculates area and Perimeter)
➢In input layer select line feature Run (Calculates length of line)
Note: after calculating area and perimeter or length of line it will generate new shape file
1 2
3
4
Attribute data editing
If we want give the name to all same class fields at a time:
➢Click on open attribute table
➢Click on select by expression type the expression Click on Select feature
➢Click on modify attributes of all selected features simultaneously enter the name ok 1
2
3
4 5
6 7
Text should be in single colon
5
6
➢Go to project New print layout Create print layout window opens give name.
➢print layout window go to Add items Add map Draw a box in print canvas
1
2
3
Map composition
➢Go to items select map right click –Item properties click on grid
➢Add a new grid select that new grid click on modify grid
➢In appearance click on CRS select WGS84 ok enter the X,Y intervals.
➢Click on frame select frame style line border.
1
2 3
4
5
6
8
9
7
Add grid
➢Click on draw coordinates go to format select any one
➢Go to font double click on it select font , style and size
.
1
2
4 5
6
Contin…….
➢Insert legend: Go to add item Add legend Draw a box in print canvas
Now it will show the all layers legend if we need one layer legend, remove other layers from legend.
(First select only one layer in main window)
➢Go to items window select the layer Item properties legend items check only show items inside current atlas features click on Filter legend by map content.
1
2
3 4
5 6
Add Legend
➢After adding legend all layers to show on legend. Go to items select legend.
right click item properties unselect auto update
➢Select the file which we no need and clock on remove
1 2
3 4
Contin…….
➢Add Items add Picture/add arrow draw a box in map canvas
➢Now go to items Select picture right click item properties
image picture browse picture or click on search directories select any image
1
2 3
4
5
Add North Arrow
➢Go to add item Add label Draw a box in map canvas
➢Go to items select Label right click item properties main properties enter name .
Add Title
➢ click on appearance to change text font , style and size
1 2
3 4
5
6
Contin…….
➢Add item Add Scale bar draw a box in map canvas .
➢To change map unites Click on scale bar units and select cm or m or km.
Add Scale bar
➢Go to layout Save project Export as image Give name
➢Image export options window export resolution select 300 dpi or as per requirement
➢Click on save
1 2
3
4
5
Export Map
➢Select the layer and right click export Save feature as
➢In save feature window in format select KML File name Give the path and file name
save Ok