Geo Graphy Document HDFGHDFKJGH Vbiobjig B
Geo Graphy Document HDFGHDFKJGH Vbiobjig B
COMMERCE
Vidyavihar (East), Mumbai 400 077
CERTIFICATE
Practical Details
no.
1
A. Creating and Managing Vector Data:
a) Adding vector layer
b) Setting properties
c) Vector Layer Formatting
2
2. Exploring and Managing raster data:
Adding raster layer, raster styling and analysing,
raster mosaicking and statistics.
3
A)Making a Map
4
A)Working with attributes
B) RASTER CLIPPING
6(B)
7
Managing Data Tables and Saptial data Sets:
Table joins, spatial joins.
8(A)
8(B)
Practical 9
10
PRACTICAL 1
➢ Following dialog box will appear on the screen. Select Polygon option
from Geometry type.
➢ Fill the appropriate information in each text box.
• File name :
▪ By default the file will be saved in bin folder.
▪ To avoid it click on following button to change the location of file.
➢ Field Panel
➢ Add the Attribute you want to show. (Column Name for Table)
b. Specify Type (DataType:Text Data/Decimal Data/Whole
Number/Date) of Attribute
c. Specify the Length of the Attribute. Specify Precision (If Data Type is
Decimal)
➢ You can add as many fields (Column Name) as you want for the layer.
➢ Select Geometry Type as follows
• Click on the following button
➢ The CRS dialog box will appear on screen. Click on the WGS84
option and it will be selected
as follows. click on OK
a) Follow the steps to plot Polygon features.
➢ Select the Polygon Feature (In our case it is Matunga for background)
from layer panel
➢ Click Toggle Editing Button → Click on Add Polygon →Now place the
cursor
at the location where you want to place the polygon. for polygon layer
minimum 3 points
should be selected
➢ Save the newly added polygon as follows.
➢ Set style for polygon by using property window(Right click on Matunga
Layer)
➢ Same way we can add one more polygon layer for Gardens.
b) Creating Line vector layer
➢ Repeat the same steps as we have done for polygon layer.
➢ Select geometry type Line.
➢ Road layer :
➢ To plot road click on Add Line Feature.
➢ Once you are done then right click on map (Dotted line turn into
solid line)
➢ save your data
➢ set style for Roads in the same way as we have done for polygon
➢ To label your roads Right click on Road layer .Go to properties
window then select label and
set single label property
➢ To merge roads
• Go to properties of road then select symbology. Click on Advanced
button select
Symbol levels.
➢ Check Enable symbol levels option
Final Output :
d) Calculating line lengths and statistics
➢ Go to Layer → Add Layer → Add Vector Layer
Press OK
➢ The display window will appear like
➢ In Layer Pane, Right click on IND_rails → Open Attribute Table
PRACTICAL 2
STEPS:
Start a new project.
Go to Layer → Add Layer → Add Raster Layer
Add
the
data
MAP
Click the file name and Go to the properties
Click Run
Add
Change the colour go to properties->symbology->select any colour
boundry
Output
Clipping
Clipped(mask)-> select file->finalclipfile(.tif) then run
Output
Practical 3
A) Making a Map
Create a new thematic map or open and existing one
Consider the following map as an example map
Go to Project -> New Print Layout
Insert a suitable title and press “OK”
A new Print Layout will open
Add Item -> Add Label -> Add a Label using HTML rendering
Add Items -> Add Scale Bar
Add Items -> Add North Arrow
A map can be saved in Image or pdf using -> Export as Image/Export as
PDF
Save the map to appropriate location as PDF or Image
Open the PDF or Image from location
Now OSM place search is installed. Now we have to install Open Layers
Plugin
For that, go to Plugins-> Manage and install plugins-> Install from ZIP
Select the ZIP file downloaded from
https://plugins.qgis.org/plugins/openlayers_plugin/
Install plugin and upgrade Experimental plugin
Now OSM place search and Open Layers plugin has been installed
succesfully.
Go to Web-> Open layers plugin-> OpenStreetMap and open
OpenStreetMap
In OSM place search, we can search any place, select a region and it
will be shown in the map.
In this way, we can search any place using plugins and OpenStreetMap
Data
PRACTICAL 4
A. Working with attributes
STEPS:
Start a new project.
Go to Layer → Add Layer → Add Vector Layer
Select
“\GIS_Workshop\Practicals\Practical_04\A\Data\ne_10m_populated_pla
ces_simple.zip”
Right click on Layer in Layer Panel → Open Attribute Table.
STEPS:
Enter 86.92, 27.98 in the coordinate field, Scale 900000 and Magnifier
100% at the bottom of QGIS.
Select the raster layer (if the project contains multiple layers).
Select the clipping area by selecting the option Use Canvas Extends if
the visible part of map is to be selected or manually select an area on
canvas by using Select Extent on Canvas
Select the location and file name for storing clipped raster layer.
The Clipped raster layer is representing altitude are from 103 Meters.
Contour lines are the lines on a map joining points of equal height above
or below sea level. A contour interval in surveying is the vertical distance
or the difference in the elevation between the two contour lines in a
topographical map.
Select the input raster layer name. Set contour interval 100.00 meters,
select the output file
name & location and check the option to add output file to project after
processing.
Press “RUN”.
Select file format as “Keyhole Markup Language”, set file name, location
and Layer Name.
PRACTICAL 5
A. RASTER MOSAICING
STEPS:
2. Select the .tif raster images for India from the Raster Merge
Practical folder.
5. In Merge browse and select all those four layers, select a file name
and location to save merged image.
7. You can now deselect individual layers from layer pane and only
keep the merged layers.
OUTPUT :
B. RASTER CLIPPING
STEPS:
OUTPUT :
C. Raster styling and Raster calculator
STEPS:
1. Select both the raster images from the Raster Calculator practical
folder.
OUTPUT :
➢ This file will have only 1 row specifying data types for each column.
Save this file as ca_tracts_pop.csvt in the same directory as the
original .csv file.
➢ Go to Layer → Add Layer → Add Delimited Text Layer And add
I:\GIS_Workshop\Practicals\Practical_07\A\Data\ca_tacts_pop.csv”
➢ In the layer panel, Right click on “tl_2013_06_tract”, layer and select
Properties
➢ Select the option in Properties, and click on button to add new table
join.
➢ In the Add Vector Join window set the following properties and click
OK.
After clicking Run, an output file will get created. Right click on output
file and open attribute table in order to see the output.
Now we can join this output layer with our original EarthQuake Layer. In
order to do that right click on the EarthQuake layer and select
Properties. Go to joins and add the output layer.
After adding open Attribute Table of EarthQuake Layer, you will find the
data of the output layer
If you want to search any country or any feature, open Query builder by
right clicking the layer, go to properties. In source section, open query
builder
Enter query and after opening the attribute table, the value will be
displayed
Now if we want to create our visualization, we have to add one plugin
mmqgis.
A layer will get opened and select i from the menu bar. Afterwards if you
click anywhere on the layer , temperature will be shown.
Now add Delimited layer and select the file shown below
Select the properties and click add
Now we can extract the temperature value from the raster layer. For that
install plugin Point sampling tool. Open point sampling tool
Select below fields and give an output .shp file for the output
Output will be shown and if we want to see the temperature of any point.
Click on any point and temperature will be displayed in the identify
results tab
Now in order to do the sampling according to polygon, add a vector layer
and select the below shown zip file
Now change layer CRS by right clicking and select featured as
A layer will get added and then download raster or zonal statistics plugin
from QGIS Python Plugins Repository
Then go to RasterStats-> Computer raster statistics
And then output will be shown.
PRACTICAL 9
select the entire “child_id‟ column(first column), Under Home Tab, click
on Conditional formatting >Highlight Cell Rules> Select Duplicate values.
Now select the first combo box and select Duplicate and select Light red
fill with Dark red text in the next combo box as shown in figure
2B Removing Duplicates
Select all the columns of existing worksheet Now go to Data Tab and
select Remove Duplicates
2C Coding of variables
In the current worksheet, select the sex column. Now type Ctrl+F and
use Replace Function and Replace as follows (M-1, F-2) Please keep
track of how many values are getting replace.
3. Verifying the plausibility of Data
A. Coding of variables
B. Using a filter to detect outliners
3A Coding of variables
Select the age column in the existing worksheet. Now go to Insert tab
and select Scatter. You will set chart as shown below
3B Using a filter to detect outliners First go to the Home Tab>Sort and
Filter>Filter. Click and apply the filter to all the columns of the worksheet
Now click on age filter and click on Number Filter> Greater Than option.
type the value 20 in greater than field.
5. Verifying the coordinates of mapping data
Create a New Project in QGIS
Add Vector Layer and add file: Kenya_admin.shp.
Add Delimited Text Layer
Let’s try and get the details of these 2 points that are not on the map,
select the Kenya_schools layer, click on the Identify Features Tool
button and then click on the points outside of Kenya to get their details
Now we want to add the district information to the map. Therefore, we
will join information based on the geographical localization. In the menu
click on Vector, then Data Management Tools, then select Join attributes
by location.
Then select Kenya_schools as Input layer and Kenya_admin as Join
layer
We also need to save the output so in Joined Layer, click “…”button to
Browse location. Save as Kenyaschooldistrict.