Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
2. Attribute table of any shapefile
Practical 2
Aim :- Georeferencing
Steps
1. Go to Layers menu → Add Layer → Add vector layer. Load the Maharashtra
districts shapefile.
2. Click “Open Raster” to open the raster image of Maharashtra map.
3. Click “Add Point” to add the control points. While adding control points
do not enter the coordinates manually , but click on “From map canvas”
to select the points from the shape file.
4. Add minimum four points. These control points can be saved as .GCP file
for loading in future.
5. Click transformation settings to set the parameters and provide location
and file name to save the output file.
6. Click “Start Georeferencing” to georeference the raster.
7. Open the georeferenced raster in the QGIS.
8. Put the maharashtra districts shapefile on top of the image and set the
layer transparency to view the image below.
Output
Practical 4
B] Raster clipping
1) Add Raster image from the Raster clipping folder.
2) Add the ward shape file from Raster Clipping folder.
3) Go to Raster menu→ Extraction → Clipping
4) Select the raster image as input.
5) Select No data Value as zero
6) Provide filename and location for saving the output.
7) Select option Mask Layer and select the ward shapefile.
8) Check “Load into QGIS GIS when done” checkbox
Output
1. Snapshot of clipped raster image.
C] Raster styling and Raster calculator
1) Select both the raster images from the Raster Calculator practical folder.
2) Right click the images → Properties → Symbology→ Render type as
SingleBand Pseudocolor. Click Classify and then OK.
3) Go to Raster menu → Raster Calculator. Subtract 2000 year raster from 1990
raster.
4) Provide filename and location for saving output . Press OK
Output
1. Snapshot of output layer as the difference of two images.
Practical 5
Aim :-
A ) Making A Map
Steps :
Output
B ) Importing .csv file
Steps :
Output
C) Installing Plugins
Steps :
Output:
Snapshot of any one plugin visible in menu that you have installed
Practical 7
Aim :-
A) Geoprocessing Tools
Steps
Install mmqgis plugin and also enable processing plugin from plugins menu.
Output
B) Spatial Query
Steps :
Output :
Snapshot of following queries with some area zoomed in for feature selected
as output
Practical 8
Aim :-
A) Basic Statistics
Steps
Output :
Practical 9
Steps :
Output :
Practical 10
Steps:
1. Go to Layer ‣ Add Vector Layer. Browse to the downloaded zip file
tl_2013_06_tract.zip and select it. Select the
tl_2013_06_tract.shp layer and click OK.
2. Open the CSV file ca_tracts_pop.csv in a text editor.
3. Note that field called GEO.id2 in the CSV matches with GEOID
from attribute table of shapefile. You will also note that the D001
column has population value for each of the census tract.
4. To import the CSV file to QGIS. Go to Layer ‣ Add Delimited Text
Layer.
5. Select CSV file. Select File format as CSV (comma separated
values). Select the No geometry (attribute only table) option. Click
OK.
6. Select the tl_2013_06_tract layer. Right-click on it and select
Properties.
7. In the Layer Properties dialog, select the Joins tab. Click on the +
button at the bottom to create a new table join.
8. In the Add vector join dialog, select ca_tracts_pop as the Join
layer. Next we have to select the field with unique ids in both the
shapefile and the CSV. Select GEO.id2 and GEOID as the Join field
and Target field respectively. Click OK.
9. ca_tracts_pop_D001 field added to each feature in the attribute
table of tract shp file. Style the layer using graduated classification
with population criteria.
Output :
B] Aim : Spatial Joins
Steps :
Output:
C] Aim : - Points in Polygon
Steps :
1. Open Layer ‣ Add Delimited Text Layer and browse to the downloaded
signif.txt file. c
hoose Tab as the File format. Click OK
2. Go to Layer ‣ Add Vector Layer. Select the
ne_10m_admin_0_countries.shp
3. Click on Vector ‣ Analysis Tools ‣ Point in Polygon
4. Select the polygon layer and point layer respectively. Name the output
layer as e arthquake_per_coutry.shp and Click OK.
5. In the attribute table, you will notice a new field named PNTCNT. This is
the count of number of points from the earthquakes layer that fall within
each polygon.
6. In the attribute table os new output layer, you will notice a new field
named PNTCNT. This is the count of number of points from the
earthquakes layer that fall within each polygon.
Output:-
Steps:-
1. Open Layer ‣ Add Layer ‣ Add Delimited Text Layer and browse to the
downloaded signif.txt file. c
hoose Tab as the File format. Click OK.
2. Go to Layer ‣ Add Layer ‣ Add Vector Layer. open the Populated Places
layer.
3. Go to Vector ‣ Analysis Tools ‣ Distance Matrix.
4. Select signif as the Input point layer and the populated places
ne_10m_populated_places_simpleas the target layer.
5. Select a unique field as I_D. Use only the nearest(k) target points, and
enter 1. Click OK.
6. Go to Layer ‣ Add Layer ‣ Add Delimited Text Layer.... Load the the output
csv file of above operation with No geometry option.
7. Create a table Join between output csv and signif csv
8. Select few points from earthquakes. Go to MMQGIS ‣ Create ‣ Hub Lines.
Input the parameters and Click OK.
Output :
a) Snapshot of Hublines
Steps :
Output :
Steps :
Output :