0% found this document useful (0 votes)
86 views

GIS Final Practical Writeup

This document provides steps for several QGIS tasks including adding vector layers, setting vector layer properties, formatting vector layers, calculating line lengths and statistics, importing spreadsheets, raster styling and analysis, raster mosaicking and clipping, working with attributes, terrain data analysis, WMS data, georeferencing maps, and digitizing data. The steps generally involve using QGIS menu options and tools to load, style, analyze, and manipulate both raster and vector geospatial data.

Uploaded by

PRANAY PAWAR.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views

GIS Final Practical Writeup

This document provides steps for several QGIS tasks including adding vector layers, setting vector layer properties, formatting vector layers, calculating line lengths and statistics, importing spreadsheets, raster styling and analysis, raster mosaicking and clipping, working with attributes, terrain data analysis, WMS data, georeferencing maps, and digitizing data. The steps generally involve using QGIS menu options and tools to load, style, analyze, and manipulate both raster and vector geospatial data.

Uploaded by

PRANAY PAWAR.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Practical 1

1 A : Adding vector layer


Step 1: Select Project→New

Step 2: Select Layer→Create Layer→New Shapefile Layer

1 B : Setting properties
Step 1: Fill the appropriate information in each text box

Step 2: : Select the required geometry.

Step 3: Give the desired field names -> desired property names

Step 4: Click on Add to Field List Button

1 C : Vector Layer Formatting


Step 1: Click on toggle button -> Draw
Step 2: Select your desired style from properties
Step 3: The same steps should be repeated for the selection/setting
another geometry type.
1 D : Calculating line lengths and statistics
Step 1: Go to Layer → Add Layer → Add Vector Layer.

Step 2: source ->


"\GIS_Workshop\Practicals\Practical_01\D\DATA\IND_rrd\IND_rails.
shp" Press “ADD”

Step 3: Also add India Administrative Map


“GIS_Workshop\Practicals\Practical_01\D\DATA\IND_adm\IND_adm
0.shp”

Step 4 : Double Click on IND_adm0 -> Select your desired symbology


-> OK

Step 5: Click on IND_rails -> open Attribute table

Step 6: Press Toggle Editing button using button, on Attribute table


window toolbar.
Step 8: Set the output field as “Track_Len”, field type to “Decimal
Number”.

Step 9 : From Function List search $length or go to Geometry →


Select $length

Step 10 : Set expression as $len/1000 -> OK

Step 11: ctrl+s -> close

Step 12: Select Vector→ Analysis Tools→ Basic Statics for Fields

Step 13: Select IND_rails layer from input layer. And select Track_Len
in “Field to Calculate statistics on” -> RUN

Practical 2
2A: Importing Spread-sheet or CSV file.
Step 1: Project -> new project
Step 2: Layer -> Add Layer -> Add Delimited text layer.
Step 3: Browse file -> (GPW)v3 dataset from file.
Step 4: Set CRS to EPSG:4326 -> OK

2B: Raster Styling & analysis.


Step 1: Select ‘ glds90age60.asc ’ layer from layer pane -> select
property

Step 2: Go to symbology -> render type -> single pseudocolor ->


mode ->continous ->apply

Step 3: Repeat same same for ‘ glds00age60@1 ’ layer


Step 4: Raster -> raster calculator
Step 5: Put expression -> ‘ glds00age60@1 ’- ‘ glds90age60@1 ’
Step 6: Select output file location & name -> press OK
Step 7: Remove layers glds00age60.asc & glds90age60.asc
Step 8: Double click on pop-diff layers.
Step 9: Select symbology -> interpretation -> Discretes
Step 10: Remove all classification -> Press OK
2C - Raster Mosaicking & clipping
step1: click on layer -> click on add layer ->click on
raster layer -> select for 4 image -> click on ok
step 2: Deselect 4 image option
step 3:click on layer -> click on add layer -> click on
mesh layer->click on IND_adm0.shp -> click on open
step 4: click on raster -> click on extraction -> click on
clip on raster on mask layer
step 5: click on intup layer -> click on merge -> click on
run -> click on close
Practical 3
3A:
Step 1: Go to project->new project

Step 2: In project -> open-> browse and select the “ natural_Earth_quick_start_for_QGIS.qgs


” file -> click on open

Step 3: Click the Zoom In button and draw a rectangle around India to zoom to the area.

Step 4: Type UTM zone 45N in filter search box. Select WGS 84 / UTM zone 45N EPSG:32645
& click apply.

Step 5: Go to Project ‣ New Print Layout-> OK

Step 6: Go to Layout ‣ Add Map

Step 7: Once the Add Map button is active, hold the left mouse button and drag a rectangle where
you want to insert the map.

Step 8: Click on the Item Properties tab and enter 7000000 for Scale value
Step 9: In layers window check the boxes for lock layer and lock styles for layer.

Step 10: Switch to the main QGIS window. Use the Zoom In button to zoom to the area
around Mumbai.

Step 11: Switch the Print Layout window. Go to Layout ‣ Add Map

Step 12: Drag a rectangle at the place where you want to add the map inset.

Step 13: select map1 object-> properties tab->click on Add a new overview button-> select
map 2 as the map frame

Step 14: select map1 object->item properties tab->go to grids section-> Click the Add a new
grid button->modify grid

Step 15: in CRS-> enter 4326 in the Filter box-> select the WGS84 EPSG:4326 as the CRS->OK

Step 16: Select the Interval values as 5 degrees in both X and Y direction

Step 17: Click Add Item ‣ Add Image-> On the right-hand panel, click on the Item Properties
tab and expand the Search directories section and select the North Arrow image of your
liking.

Step 18: Click on Add Item ‣ Add Scalebar-> from item properties give properties of your
choice->from segment panel adjust the number of segments and their size.

Step 19: Click on Add Item ‣ Add Label-> Click on the map and draw a box where the label
should be-item properties tab->check the box render as html->type the given code [Map of
Japan]

Step 20: Click Layout ‣ Export as Image

O/P:
3B: Importing Spread-sheet or CSV file.
Step 1: First create a new file.
Step 2: Layer -> Add Layer -> Add Delimited text layer.
Step 3: Browse file -> Sample(file name).
Step 4: Check Custom delimiters.
Step 5: Set Geometry CRS = EPSG:4326-WGS 84.
Step 6: Add.

3C: Using Plugin


Step 1: Create new file.
Step 2: Plugin -> Manage and install plugins.
Step 3: Not installed-> search "attribute painter" -> install attribute
painter.

step 4: For Checking attribute installed or not : goto->Installed (


check the attribute is checked[✓]).

3D: Searching and downloading OpenStreetMap data (OSM data).

Two Plugins must be used are as follow's :

 OSM place search( purpose: Search live data).


 Open layer plugin( purpose: GPS).

Step 1: New project.


Step 2: Plugins -> Manage and install plugins -> Not installed.
Step 3: Search and install OSM place search and Open layer plugin.
Step 4 : Now go to install and check they are installed.
Step 5: Goto: Web->Open layer plugin -> open street map -> open
street map.(Note: If you get an error Close the application and
repeat the process again) .

Step 6: Search any region in search contains for eg: mumbai (the
region will be visible) .
Practical 4
4A: Woking with attributes
Step 1: Goto "Layer->Add Layer->Raster Layer"
Step 2: Browse file ->"populated_places_simple.zip"-> Add
Step 3: Select layer from layer window -> right click -> "Open
attribute table"
Step 4: Expression window -> "pop_max > 100 and pop_max <
100000 " -> Select feature-> close
Step 5: Expression window -> "pop_max > 100 and pop_max <
100000 and sov0name = 'India' " -> Select feature-> close
4 B.Terrain data and hill shade analysis
Step 1: Go to "Layer->Add Layer->Raster Layer"
Step 2: Browse file ->"
GMTED2010N10E060_300\10n060e_20101117_gmted_mea300.tif
"-> Add

Step 3: Raster ->Extraction->clip Raster by Extention.

Step 4: Raster ->Extraction->Contour

Step 5: layers ->contur -> properties ->labels -> single lables

Step 6: layers ->contur ->open attribute table ->select the max value-
>zoom map

Step 6: layers ->save as “Keyhole Markup Language”

Step 7: Google chrome-> Google earth

Step 8: Raster -> Analysis -> hillshade ->himalaya_hillshade -


>hillshade ->save as
Practical 5

5. WMS data (Web map service)


Step 1: Go to "Layer->Add Layer->Raster Layer"

Step 2: Browse file ->" ne_10m_admin_0_countries(1)"-> Add

Step 3: layer -> ESRI shape File-> Name File -> Coordinate Reference
System Selector -> Filter =102008

Step 4: Add layer -> Add raster layer


Practical 6
6(a).Geo referencing topo sheet and scanned map
Step 1: Go to layer ->Add layer ->vector layer

Step 2: Browse file ->" IND_adm0.shp "-> Add ->zoom the given area

Step 3: click to plugins-> Click on Manage and install plugins ->click


on installed ->Goereferencer GDAL

Step 4: Click on raster -> click on goereferencer -> Click on file->


open raster-> bombay_1909

step5: click on setting -> trasformation Setting -> click on target SRS -
> select EPSG:4326-WSG 84 -> click on ok

step6: click on "edit" point- > click point on image-> click on map
from canvas -> select the point from original map image to get the
georefrence co cordinates -> click on ok->

step:- double click over "mumbai _ modified" and open the property
pan -> open transperancy->reduce transperancy
6(b):Georeferencing aerial imagery
step1: click on web ->open layer plugin-> open street map

step2: click on view ->panels -> OSM place searched ->type gateway
on india in name contain -> click on"->"

step 3: click on raster -> click on georeferencer -> click on EPSG:3857


-WGS84 -> click on ok

step4: click point on image-> click on map from canvas -> select the
point where you select on image and sect another 3 points on map ->
click on ok
6c: Digitizing the data
Step 1: Go to Layer ‣ Add Raster→ Select “Christchurch Topo50 map.tif” from project Folder.

Step 2: Select the layer right click on it -> select properties

Step 3: Choose the Pyramids tab. Hold the Ctrl key and select all the resolutions offered in the
Resolutions panel-> Click Build pyramids. Then click OK

Step 4: Go to Settings →Options.... Select the Digitizing tab in the Options dialog.

Step 5: Set the Default snap mode to vertex and segment->OK

Step 6: Layer->add layer->add spatialite layer

Step 7: Select the name and location for Spatial database eg:
“GIS_Workshop\Practicals\Practical_06\C\MySpatialDataBase.sqlite”

Step 8: Name the Layer as “Digitized_Road-> Set Geometry type as “Line”-> Set CRS EPSG:4167 –
NZGD2000-> Add “Name” and “Class” fields using “Add to Fields List”.

Step 9: Click toggle button-.add feature button->click on map canvas to add new vertex->new
vertices along the road feature-> On Layer Panel Right Click on Digitze_Road, Select the Style tab in
the Layer Properties dialog-> Select appropriate style to see the digitized road feature clearly.

Step 10: Do the same for polygon feature also ( Step 8 and 9 )
Step 11: The Layer will appear on map canvas

o/p:

Practical – 7
practical 7a.(table join)

t1_2013_06_tract and ca_tracts_pop are given as a dataset

Step1:- Add Layer - Add vector layer(t1_2013_06_tract) -

Step 2 ;- Change the data type of "ca_tracts_pop" file as follows

A) Open the notepad and write the datatype of all the five fields "String" and of the field D001 field
as "Integer" and save this file inside the same folder with the same name as "ca_tracts_pop.csvt"

Step 3 :- Add Layer - Add vector layer- Add text delimited layer (ca_tracts_pop.csv)

Step 4 ;- Open the properties window by double clicking over the "t1_2013_06_tract” - joins -"+"

Step 5 :-Set the field name GEO.ID2 as target field = "GEOID" - Then apply

Step 6 Open properties window - Symbology -choose graduated option And Choose Value = ca-
tracts_pop_D001

Step 7 Select a specific colour ramp, set mode as equal interval, - Click "Classify" - Apply - ok
Op:

7B: Spatial join

Step 1: Go to Layer → Add Layer → Add Vector Layer

Step 2: Select “I:\GIS_Workshop\Practicals\Practical_07\B\Data\nybb_12c\nybb_13c_av\nybb.shp”


and “I:\GIS_Workshop\Practicals\Practical_07\B\Data\OEM_NursingHomes_001\OEM_NursingHo
mes_001.shp”, from data folder.

Step 3: Go to attribute table and observe the data.

Step 4: Go to Vector → Data Management Tools → Join Attributes by Location

Step 5: Use the identify feature button to select a region to view join data on map layer.

o/p:
Practical 7c :- Points in polygon Analysis

Steps1:- Project - New project

Step 2 :- Layer - Add layer - Add delimited Text layer - "Select the Earthquake.txt" file

Step 3 :- Custom Delimitor Select

Step 4 :- Click Geometry Defination - Point Coordinates - X field - longitide , Y field - lattitude -
Geometry CRS - EPSG: 4326 - WSG84

Step 5 :- Add

Step 6:- Layer - Add layer - Add vector layer - Select 'ne_10m_admin_0_countries' file

Step 7:- Select all - Apply - OK

Step 8:- Vector - Analysis Tool - Count Points in Polygon ( If Analysis tool is not there under vector
then add the plugin (Spatial Analysis Toolbox) )

Step 9:- Polygons - Select 'nm_10m_admin_0_countries' file

Step 10:- Points - select ' EarthQuake database' file - run

Step 11:- Another output Layer as count will be created

Step 12 :- Zoom the map for India portion - Click on identify feature

o/p
Practical 7D :- Performing Spatial Queries

Step 1 :- Project - New project

Step2 :- Layer - Add layer - Add vector layer - Add zip files 'ne_10m_rivers_lake_centerline' &
'ne_10m_populated_places_simple'

Step 3:- Add - Select all for both files - Add - Ok

Step 4 :- Go to project - properties - select the co-ordinate by typing 54032 - Apply - OK (If you can't
see the changes click on Zoom full)

Step 5 :- Vector - Geoprocessing tools - Buffer

Step 6 :- Select Distance as 0.0200000 - Run - OK

Step 7 :- Vectors - Research tools - Select by Location

Step 8 :- By comparing to features select the 'ne_10m_populated_places_simple' file - Run - Ok

o/p

You might also like