You are on page 1of 52

Principle of Geographical Information System B.N.N.

College
PRACTICAL 1
Aim: Creating and managing a vector data.
A: Adding polygon vector layer.
Step 1:Select Project>>New
Step 2:Select Layer>>create layer>>New Shapefile Layer.
➢ Following dialog box will appear on the screen. Select Polygon option from Geometry type.

➢ Fill the appropriate information in each text box.


Field Panel
Step 3:Add the Attribute you want to show. (Column Name for Table).
Step 4:Specify Type (DataType: Text Data/Decimal Data/Whole Number/Date) of Attribute.
Step 5:Specify the Length of the Attribute. Specify Precision (If Data Type is Decimal).
Step 6:Click on Add to Field List Button.
➢ You can add as many fields (Column Name) as you want for the layer.
Step 7:Select Geometry Type as follows>>Click on the button.
Step 8:The CRS dialog box will appear on screen>>Click on the “WGS84” option and it will be selected as
follows>> click on OK.

1
Principle of Geographical Information System B.N.N. College
Follow the steps to plot Polygon features.
Step 1:Select the Polygon Feature( In our case it is Matunga for background) from layer panel.

Step 2: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).
➢ Following screen will appear on the screen. Select pattern as you want and click on OK.

➢ Same way we can add one more polygon layer for Gardens.

2
Principle of Geographical Information System B.N.N. College
B:Creating Point vector Layer.
Note: Repeat the same steps as we have done for polygon layer.
Step 1:Select geometry type point.

Step 2:To create shops>>click on Add Line Feature>>Click on the map where you want to draw
points>>Once you are done then right click on map>>save your data.

➢ set style for shops in the same way as we have done for polygon.

➢ shops will look as below.

3
Principle of Geographical Information System B.N.N. College
To label your roads
Step 1:Right click on Road layer>>Go to properties window then select label>>set single label
property>>Select value as name or either id>>Also change the color>>
Click on ok.

➢ Shops will be shows as below.

4
Principle of Geographical Information System B.N.N. College
C:Create Point vector layer.
Note: Repeat same steps to add point layers as we have done in previous layers.(For Small Roads , Road,
Flyover).

5
Principle of Geographical Information System B.N.N. College
D:Calculating line length and statistics.
Step 1:Go to layer>>Add layer>>Add vector layer>>Select “IND_rrd.shp” file.
Step 2:Again Add “IND_adm0.shp” file
Step 3:Go to “IND_admo” Properties>>Symbology>>Select the appropriate outline>>OK.
➢ After that the display window will look like this.

Step 4:Right click on “IND_rrd.shp” >>Open attribute table>>Click on open field calculator
Using this button.
Step 5:Set Output Field Name as “Track_Len”>>Output Field Type as “Decimal Number”
Step 6:From Function List search>>Go to Geometry>>Select $length

Step 7:Click on OK.


6
Principle of Geographical Information System B.N.N. College

➢ A new Column is added to the attribute table i.e “Track_Len”.


Step 8:Press CTRL+S or click on Save Edits option on tool bar.
➢ For calculating the total length of Railway tracks in India.
Step 1:Select Vector>>Analysis Tools>>Basic Statics for Fields.
Step 2:Select IND_rails layer for input layer>>And select Track_Len in “Field to Calculate statistics on”.

Step 3:Click on Run.


Step 4:Open the “output.html” file to get the field statistics.

7
Principle of Geographical Information System B.N.N. College
PRACTICAL 2
Aim: Exploring and Managing Raster data.
A: Adding Raster Layer.
Step 1:Go to layer>>Add layer>>Raster layer
➢ Select Gridded Population of the World (GPW) v3 dataset from Columbia University, Population Density Grid
for the entire globe in ASCII format and for the year 1990 and 2000.
“\GIS_Workshop\Practicals\Practical_02\A\Data\gl_gpwv3_pdens_90_ascii_one\glds90ag60.asc”
“\GIS_Workshop\Practicals\Practical_02\A\Data\gl_gpwv3_pdens_90_ascii_one\glds00ag60.asc”
Step 2:Go to project>>Properties>>Set CRS “WGS 84 EPSG:4326”>>Click on OK.

OUTPUT:

8
Principle of Geographical Information System B.N.N. College
B:Raster Styling and Analysis.
➢ To start with analysis of population data, convert the pixel from grayscale to Color.
Step 1:Select “glds90ag60.asc” Layer form layer Panel>>select property OR double click on it>>Symbology.
Step 2:Set render type”Singleband Qseudocolo”>>Max value”240”>>Color ramp”YIOrRD”>>Click on OK.

Step 3:Repeat the same for “glds00ag60.asc” Layer.

➢ The objective this experiment is to analyze raster data, as an example we will find areas with largest
population change between 1990 and 2000, by calculating the difference between each pixel values.

9
Principle of Geographical Information System B.N.N. College
Step 4:Go to Raster>>Rater Calculation.
Step 5:Put the expression "glds00ag60@1" - "glds90ag60@1".

Step 6:Select the output file location & name and Press OK.
Step 7:Remove the other two layers i.e. glds00ag60.asc and glds90ag60.asc
Step 8:Double click on “New Generated Layer” layer

10
Principle of Geographical Information System B.N.N. College
Step 9:Set Render Type to “Single band Pseudo color”>>Interpolation as Discrete>>Min “-2000”>>Max
“6000”>> remove all classification and add as shown in figure above using + button.
Step 10:Apply and OK.
➢ Layer will appear like.

➢ Explore an area of your choice and check the raster band value using to verify the classification
rule.
➢ The Orange pixel shows negative changes and Black shows positive changes.

11
Principle of Geographical Information System B.N.N. College
C: Raster Mosaicking and Clipping.
Step 1:Go to layer>>Add Layer>>Add Raster Layer
➢ Select the following “.tif” raster images for India from data folder.
FAS_India1.2018349.terra.367.2km.tif
FAS_India2.2018349.terra.367.2km.tif
FAS_India3.2018349.terra.367.2km.tif
FAS_India4.2018349.terra.367.2km.tif
Step 2:Go to Raster>>Miscellaneous>>Merge.
Step 3:Input Layer>>Select all Four file.

Step 4:Save File as name “Merged” at appropriate location>>Click on Run>>Close.

12
Principle of Geographical Information System B.N.N. College
Step 5:You can now deselect individual layers from layer pane and only keep the merged raster file
Step 6: Go to Layer>>Add Vector Layer>>Select
\GIS_Workshop\Practicals\Practical_02\C\IndiaAdminBoundry\IND_adm0.shp file..
Step 7:Go to properties of “IND_adm0.shp”>>Symbology>>Select any one simple Outline.

Step 8:Go to Raster>>Extraction>>Clip Raster by Mask Layer.


Step 9:Select the merge raster image as input and Ind_adm0 as mask layer.
Step 10:Select a file name and location for clipped raster as /Practical_02/C/Clipped_File.tif.>>Click on Run.

13
Principle of Geographical Information System B.N.N. College
PRACTICAL 3
Aim:Making a Map, Working with Attributes, Importing Spreadsheets or CSV files Using Plugins, Searching
and Downloading OpenStreetMap Data
A: Making a Map
➢ Create a new Thematic Map or open and existing one
➢ Consider the following map as an example map

Step 1:Go to project>>New Print Layout>>Give Suitable title>>Click on OK.


➢ After that a new print layout window will be open.
Step 2:Go to “Add Item”>>Add Map.
➢ After that you just select the area where you want to set your Map

Step 3: Go to ItemProprties>>Map1>>Layer>>Check on “lock layer” and “lock Style for layer”.

14
Principle of Geographical Information System B.N.N. College
Step 4: Go to Add Item>>Add Picture>>Place a Picture box at appropriate location>>
Select Picture from “ItemProperties>>Search Directries.
Step 5: Add Item>>Add Label>>Change the Label text To “India”, Set appropriate font size and color using
Item Properties>>Main Properties.
Step 6: Add Item>>Add Legend>>Place the
legend
Stepindicator at appropriate
7:Add Item>>Add location>>Uncheck
Scale Bar.
auto update and use suitable legend indicator label.

➢ A Map can be saved in Image or PDF using Layout


Step 8:Go to Layout>>Export as Image / Export as PDF>>Save at appropriate location>>And then Open.

OUTPUT:

15
Principle of Geographical Information System B.N.N. College
B: Importing Spreadsheet or CSV file.
➢ Many times the GIS data comes in a table or an Excel spreadsheet or a list lat/long coordinates,
therefore it has to be imported in a GIS project.
➢ Sample file for Earthquake data will be used in this practical.
Step 1:Go to layer>>Add layer>>Add delimited text layer.

➢ Select The “sample.CSV file” and then Select “Custom delimiters” after that check the “Tab, Colon and
Space”
➢ Go to geometry definition and select LONGITUDE as x field and LATITUDE for y field
➢ And then Select “EPSG:4326-wgs 84” as Geometry CRS.
Step 2:Click on OK.

16
Principle of Geographical Information System B.N.N. College
C: Using Plugins.
➢ Core plugins are already part of the standard QGIS installation. To use these, just enable them.
➢ Open QGIS. Click on Plugins → Manage and Install Plugins....

➢ To enable a plugin, check on the checkbox next to Plugin. This will enable the plugin to use it.
➢ To enable a plugin, check on the checkbox next to Plugin. This will enable the plugin to use it.
➢ External plugins are available in the QGIS Plugins Repository and need to be installed by the users
before using them.
➢ Click on Not Installed or Install from ZIP.
➢ Once the plugin is downloaded and installed, you will see a confirmation dialog.
➢ Click on Plugins → <New Plugin Name>
➢ The Plugin if marked Experimental plugin can be installed, from Setting→ check on or

➢ A tab will be added to Plugin Manager Window.


➢ Click on a plugin name and Click Install.

17
Principle of Geographical Information System B.N.N. College
D: Searching and Downloading OpenStreetMap Data.
Step 1:Add “Open Layer” and “OSM Search” Plugin from Not Installed option from Plugin Manager Dialog Box.
Step 2:The OSM Place Search plugin will install itself as a Panel in QGIS, if not go to View>>Panels>>select OSM Place
Search.
Step 3:Go to web>>OpenLayer plugin>>Select OpenStreetMap.>>After that a world map will appear on the screen.

Note: If an occurs in loading map then go to project properties>>CRS>>Check “No Projection”.

Step 4: In OSM Place search Panel>>Enter Mumbai or any place name to search.
Step 5: Double click on the desired place in OSM Place search Panel or Click and press.

18
Principle of Geographical Information System B.N.N. College
PRACTICAL 4
A: Working with attributes terrain data.
Start a new project.
Step 1: Layer>>Add Layer>>Add Vector Layer>>Select“C:\data\A\ne_10m_populated_places_simple.zip “.

Step 2:Right click on Layer in Layer Panel>>Open Attribute Table>>Explore various attributes and their
values in the Attribute table. To find the Place with maximum population click on “pop_max” file.

Step 3:On clicking the Select feature using expression button the following window will appear.
Enter “pop_max>100 and pop_max<10000” and click button to get all the places with population between 100
and 10000.

19
Principle of Geographical Information System B.N.N. College
➢ The places matching the criteria will appear in different color.

Step 4:Different queries can be performed using the dataset.Try this.

➢ Will give.

20
Principle of Geographical Information System B.N.N. College
B: Terrain Data and Hill shade analysis.
A terrain dataset is a multiresolution, TIN-based surface built from measurements stored as features in a
geodatabase. Terrain or elevation data is useful for many GIS Analysis like, to generate various products from
elevation data such as contours, hillshade etc.
Step 1:Go to Layer>>Add Raster Layer>>select “C:\data\B\10n060e_20101117_gmted_mea300.tif “ From
data folder.

The Lower altitude regions are shown using dark color and higher using light shade as seen on top region
containing Himalaya and Mt Everest.
Mt. Everest - is located at the coordinates 27.9881° N, 86.9253° E.
Step 2:Enter 86.92, 27.98 in the coordinate field, Scale 900000 and Magnifier 100% at the bottom of QGIS.

Step 3:Press enter the view port will be centered on Himalaya Region.

Step 4:Raster>>Extraction>>Clip Raster by Extent. Select the raster layer (if project contains multiple layers).
Step 5: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.

21
Principle of Geographical Information System B.N.N. College
Step 6:Select the location and file name for storing clipped raster layer.>>Press Run.

➢ Counter 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.
Step 7:Go to Raster>>Extraction>>Contour.

➢ Afer running The contour layer will appear like this.

22
Principle of Geographical Information System B.N.N. College
Step 8:Label the layer using “ELEV” field and set appropriate symbols for line.

Step 9:In the Layer panel right click on Contour Raster Layer >>“Open Attribute table”.
Step 10:Arrange the table in descending order based on the value of “ELEV” column.

➢ A Hillshade is a grayscale 3D representation of the surface, showing the topographical shape of hills
and mountains using shading (levels of gray) on a map, just to indicate relative slopes, mountain ridges,
not absolute height.
For Hill Shade surface analysis.

23
Principle of Geographical Information System B.N.N. College
Step 11:Go to Plugin>>Install Georeferencer GADL.After successful installation of plugin Go to Raster>>
Analysis>>Hill Shade.

Step 12:Press “RUN” and After Raster styling the Output will appear like this

24
Principle of Geographical Information System B.N.N. College
PRACTICAL 5
Aim: Working with Projections and WMS Data.
A Web Map Service (WMS) is a standard protocol developed by the Open Geospatial Consortium in 1999 for
serving georeferenced map images over the Internet. These images are typically produced by a map server
from data provided by a GIS database.
➢ Start a new Project.
Step 1:Layer -> Add Layer -> Vector Layer Select“C:\Data\ne_10m_admin_0_countries.zip“.
Step 2:Go to layer>>Save as>>Select format as “ESRI shape file”>>Select folder location and file name>>Set
CRS=”North_America _Albers_Equals_Area_Conic EPSG: 102008.

Step 3:Click on OK
Step 4:Project>>Properties>>Select “North_America_Albert_Equal_Area_Conic EPSG: 102008”>>Apply.

Note: If image is not in rounded form then Click on new Generated file as “dll”>>Zoom to Layer.
Step 5:Select Layer>>Add Layer>>Add Raster Layer>>Select “mini Sacale_(standard)_R17.tif”
➢ The Layer appears on a different location than the location where the Great Britain is shown on the
Map.
25
Principle of Geographical Information System B.N.N. College
OUTPUT:

26
Principle of Geographical Information System B.N.N. College
PRACTICAL 6
Aim: Georeferencing Topo Sheets and Scanned Maps.
Step 1:Go to Layers -> Add Layer -> Add vector Layer. Select “F:\Pract_1\1D\IND_adm.zip”.

Step 2:Go to Plugin>>Manage and Install Plugins.

➢ Ensure that is checked, if not install Georeferencer GDAL plugin.


Step 3:Go to Raster>>Georefrencer.>>After that a new Georeferencer window will open.
Step 4:On that window go to file>>Open Raster>>Select file “1870_southern-india_3975_3071_600.jpg“from
the project data folder.

Step 6:Go to Settings>>Transformation Settings>>In that Transformation Settings window.


Step 7:Select Transformation type>>Thin Plate Spline>>Re-sampling Method>>Nearest Neighbour.
Target TRS>>Everest 1830 datum: EPSG 4044>>Select Output Raster Name and Location.
Check the Load in QGIS When Done Option>>click ok.

27
Principle of Geographical Information System B.N.N. College
Step 8:In Georeferencer window Go to Edit>>Add Points.

Step 9:Click on raster to add control point and select “From Map Canvas” Button.
Select the set of control points.

Step 10:Go to setting>>transformation setting.

Press Run.

28
Principle of Geographical Information System B.N.N. College
Step 11:In Georeferencing window go to>>file>>Start Georeferencing.

➢ The canvas area will now have the scanned map of targeted referenced with control points.
Step 12:Select the newly added layer in Layer Panel Right click and go to property>>Set Transparency level
of raster layer to appropriate level.

➢ The Scanned Image map coincides with the existing map.

29
Principle of Geographical Information System B.N.N. College
B: Georeferencing Aerial Imagery.
➢ Install pluging OpenStreetMap.
Step 1:Go to Web Map>>OpenLayerPluging>>OpenStreetMap>>OpenStreetMap.
Step 2:Go to Project>>Properties -> set CRS to EPGS 3857.
Step 3:Go to view -> Panel -> select OSM place search.

➢ Search Gateway of India in OSM Palace search.

30
Principle of Geographical Information System B.N.N. College
➢ Zoom in appropriate Level After that map will be look like this.

Step 4: Go to Raster>>Georefrencer
➢ A new Georefrencer window will open
Step 5:File>>Open Raster>>Select file “Gateway_imagery.tif” From Project Data Folder

31
Principle of Geographical Information System B.N.N. College
Step 6:Go to Edit>>Add Point
➢ Select control points from Map(Indicated in red color).
Step 7:Go to setting>>Transformation Settings.

Step 8: Go to file>>Start Georeferencing or press the Start button.

OUTPUT:

32
Principle of Geographical Information System B.N.N. College
C: Digitizing Map Data.
➢ Spatialite is an open database format similar to ESRI's geodatabase format. Spatialite database is
contained within a single file on your hard drive and can contain diferent types of spatial (point, line,
polygon) as well as non-spatial layers. This makes is much easier to move it around instead of a bunch
of shapefiles.
Digitizing Map Data:
Step 1:Go to Layer>>Add Raster>>Select “Christchurch Topo50 map.tif” from project Folder.

➢ QGIS offers a simple solution to make raster load much faster by using Image Pyramids.
Step 2:Right-click the Christchurch Topo50 map.tif layer and 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.


Go to Settings -> Options.... -> Select the Digitizing tab in the Options dialog.
Set the Default snap mode to vertex and segment.

33
Principle of Geographical Information System B.N.N. College
Go to Layer → Create Layer → Add Spatialite Layer.
Select the name and location for Shapfile database eg: “lines”.
Name the Layer as “LinesHai”.
Set Geometry type as “Line”.
Set CRS EPSG:4326 – WGS 84.

Add “Name” and “Class” fields using “Add to Fields List”.


Once the layer is loaded, click the Toggle Editing button to put the layer in editing mode.

Click the Add feature button. Click on the map canvas to add a new vertex. Add new
vertices along the road feature. Once you have digitized a road segment, right-click to end the feature.

➢ Select appropriate style to see the digitized road feature clearly.

34
Principle of Geographical Information System B.N.N. College
➢ After creating new shapfile for polygon.
Step 4:Select ployGon layer in Layer Panel and click on Toggle Editing button and then Add Polygon Feature
button on Tool bar.

Step 5:Add gardens to the region by adding polygon.

➢ The Layer will appear on map canvas.

➢ Using the above procedure a point feature can also be digitized.

35
Principle of Geographical Information System B.N.N. College
PRACTICAL 7
Aim: Managing Data Table and Spatial data sets.
A: Table joins
➢ Start new project
Step 1:Layer >>Add Layer >>Add new Vector Layer GIS\Practical
7\Data\A\tl_2018_06_tract\tl_2018_06_tract.dbf

Step 2:Layer >>Add Layer >> Delimited Text Layer


GIS\PGIS\Data\Pract_7\A\ACS_17_5YR_B01003\ACS_17_5YR_B01003_with_ann

36
Principle of Geographical Information System B.N.N. College
Step 3:Go to Processing >> ToolBox >>Expand Vector general >> Join Attribute by Field value

➢ After performing joins the new Field added in the Layers


Panel
Step 4:For more clear Output ,Select joined Layer From Layers Panel Right click and Open Attribute Table

37
Principle of Geographical Information System B.N.N. College
B: Spatial joins
Step 1:Go to Layer -> Add Layer -> Add Vector Layer -> Select “F:\data\B\nybb_19a\nybb.shp” and
“F:\data\B\OEM_NursingHomes_001.zip”.

➢ Go to attribute table and observe the data. Table before performing Join

Step 2:Go to Vector -> Data Management Tools -> Join Attributes by Location.

38
Principle of Geographical Information System B.N.N. College
Step 3:Click on join file -> go to Open Attribute Table.Attribute table after join.

Step 4:Use the Identify Feature Button to select a region to view join data on map Layer.

OUTPUT:

39
Principle of Geographical Information System B.N.N. College
C:Points in polygon analysis.
Step 1:Go to Layer -> Add Layer -> Add Delimited Text Layer Select “signif.txt”

Step 2:Go to Layer -> Add Layer -> Add vector layer -> select “F:\data\C\ne_10m_admin_0_countries.zip”.

40
Principle of Geographical Information System B.N.N. College
Step 3:Go to vector -> Analysis Tool -> Count Points In Polygon.

Step 4:Click on Run.

Step 5:Use the select Feature button to check country wise counting of Earthquakes.

➢ Also a new column is added to attribute table “NumPoints” indicating number of earth quake points in
each country.

41
Principle of Geographical Information System B.N.N. College
D:Performing spatial queries.
Step 1:Layer>>Add Layer>>Add Vector Layer and load
“F:\pgis\pract7\D\ne_10m_populated_places_simple.zip” and
“F:\pgis\pract7\D\ ne_10m_rivers_lake_centerlines.zip”.

Step 2:Open project Properties>>Set CRS “World_Azimuthal_Equidistant EPSG 54032” .The map will be re-
projected as

Step 2:Go to Vector>>Geoprocessing Tool>>Buffer. Repeat the step to create River Buffer.

42
Principle of Geographical Information System B.N.N. College
Step 3:Create a buffer for River.

Step 4:Go to Vector -> Research Tool -> Select By Location.

➢ This will highlight only those rivers containing a populated place within 2 KM.

43
Principle of Geographical Information System B.N.N. College
PRACTICAL 8
Aim: Advanced GIS Operations 1.
A: Nearest Neighbor Analysis.
Step 1:Layer>>Add Layer>>Add Vector Layer Select“C:\data\A\ ne_10m_populated_places_simple.zip “.
Step 2:Go to Layer ->Add Delimeted Text Layer>> C:\Users\gmssa\Desktop\Pract_8\A\ signif
Step 3:Vector>>Analysis Tool>>Distance Matrix>>Click On Ok.

➢ Add Matrix into the Layer Panel


Step 4:Add Layer>>Delimeted Text Layer>>Select Matrix.csv

Step 5:Then Click on ok.


➢ If u want to check then go to Matrix and Select open attribute table.
Step 6:Go to signif Properties>>Select Join>>Click on + button.

44
Principle of Geographical Information System B.N.N. College
Step 7:Click on OK.
Step 8:Then if u want to check then go to signif attribute table.
Step 9:Then Save as signif file as “EarthPalace.shp”
Step 10:Then go to EarthPlaces Properties>>Click on Query Builder>>Goto Provider Specific Filter>>And
Type "COUNTRY"='Mexico'>>Then Click on Test>>OK
Step 11:Then go to “ne_10m_Populated_Palaces” Properties>>Click on Query Builder>>Goto Provider
Specific Filter>>And Type "adm0name"='Mexico'>>Then Click on Test>>OK

Step 12:Install MMQGIS Plugin>>Go to MMQGIS>>Create>>Hub Line.

Step 13:Click on OK.

45
Principle of Geographical Information System B.N.N. College
B: Sampling Raster Data using points and Polygons.
Step 1:Go to layer>> add Raster Layer>> Select the C://Desktop/pract8/B/us.tmax_nohads_II_float.tif >>
click on ok.

Step 2:Once the layer is loaded>>select the Identify tools and click anywhere on the layer.
Step 3:Go to layer>> Add Delimited Text Layer>> Select “2013_Gaz_ua_national.txt” file.

Step 4:Install the plugin “Point Sampling Tools”.


Step 5:Open the plugin>>Analysis >>Point sampling Tools.
Step 6:In the sampling tool dialog >> Save the file as “urban.shp”.

46
Principle of Geographical Information System B.N.N. College
Step 7:You will see a new Layer “urban” >> use the identify tools to click on any point to see attribute.

Step 8:Go to Layer>> Add vector Layer>> Select the ”tl_2013_us_county.zip”.


Then save as “tl_2013_us_county.zip” having name “countries” >> then change CRS with “EPSG:4326
WGS84” projection.

Step 9:Enable the “Zonal Statistics plugin” this is the core plugin so it is already installed see using plugins to
know how to enable core plugins.
Go to Raster>> Zonal Statistics >> Zonal Statistics.
Step 10:Select “us.tmax_nohads_ll_float” as raster layer and “countries” as the polygon layer containing the
zones. Enter ” ZS_ “ as output column prefix>> click on ok>> then it will take some time.

47
Principle of Geographical Information System B.N.N. College
Step 11:Select the countries layer .>> use the identify tools and click on any country polygon. You will see 3
new attributes added to the layer “ZS_count, ZS_mean and ZS_sum” .

Step 12:Go to properties of “countries “ layer >>style >> Graduated style >>select “ZS_mean” as column
Color Ramp >>and mode of your choice >>then click on classify to create the class>> click on ok.

48
Principle of Geographical Information System B.N.N. College
C: Interpolating Point Data.
Step 1:Add vector layer>> select the “Shapefile.zip” .After that the dialog box appear >> select
“Arlington_Sounding_2007.shp” and “ Boundadry2004_550.shp”>>click on ok.

Step 2:Un check the “Boundadry2004_550.shp”.

Step 3:Then click on zoom icon >>select the small area on the screen. As you zoom the closure >> you will
see the points.

Step 4:Select the identify tools >> and click on any point you will see the identify result panel.

Note: Make sure you have the interpolation plugin install.


49
Principle of Geographical Information System B.N.N. College
Step 5:If enable>> then go to Raster >> interpolation>>interpolation. In the interpolation dialog>> select
“Arlington_Soundings_2007” as the vector layer in “input panel” >> select “ELEVATION” as the
interpolation attribute>> click on add .
Change the cells size X and cells size Y as value 5. This value is the size of each pixel in the output grid.
Then name the output file as “elevation_tin.tif” >> click on ok.

Step 6:Right click on “elevation_tin” >> select zoom to layer.

Step 4:Raster >>extraction >> clipper.

50
Principle of Geographical Information System B.N.N. College
➢ New raster “clipped3” will be loaded in the layer panel.

Step 5:go to “clipped3” properties >> style >> select randor type as singleband pseudoColor >> generate new
color map panel>>select “spectralColor” ramp>> check the invert box >> click on classify.

Step 6:Go to Transparency tab into the “clipped3” property window.>> you want the remove black pixel from
the output so enter 0 as the additional no data value.>> click on ok.
Step 5:Go to Raster >> extraction>> contour.
In the contour dialog .

51
Principle of Geographical Information System B.N.N. College
Step 6:Click on ok.
Step 7:Right click on “contour” layer >> properties >> label.

Step 8:Click on ok.


You will see the each contour line will be appropriately labeled with the elevation along the lines.

52

You might also like