M3 Exercise1 Producing Final Map
M3 Exercise1 Producing Final Map
Intended Audience:
NRIDA YCEs
GIS Nodal Officers (State)
GIS Analysts (State)
Introduction to GIS and Load Georeferencing and Creating GIS Maps and Functions in QGIS Working with Google
your CSV Data in Qgis Create Layers Reports Earth
Module 3 – Creating GIS Maps and Reports
Learning Objectives
Introduction to GIS and Georeferencing and Creating GIS Maps and Functions in QGIS Working with Google
Installation of QGIS Create Layers Reports Earth
Module 3 – Exercise 1
In M1 Exercise 1, we have just created a shapefile from the CSV file and we have applied symbology.
In this exercise, we will learn to:
A. Perform spatial query to create a subset data of facility for a particular block
B. Overlay a block boundary to clearly represent the limit of the block
C. Generate a map, printable on A3 Paper size in the JPEG file format
D. Generate a report on the available bedded hospitals per block
The file is redistributable and can be shared with the
block administrative agencies. This map will be useful
to proposed a road at block level or village level. The
final output map will look something like below
consisting of North Arrow, Scale Bar and Legend.
Data Resources you will require:
Note: There are some other tools also that we can use to subset the layer. We will explore some of them in
our subsequent exercises.
6. In the ’Select by location’ dialog box,
a. Select ‘FacilityDetailsForCitizen’ in the ’Select features
from’
b. Check ’Intersect’ as the geometric predicate. After the process is finished, user will see some highlighted
c. Set ’Block_Boundary’ in ’By comparing to the features facilities from ”FacilityDetailsForCitizen” layer , which falls
from’. within the “Block_Boundary” polygon .
d. Keep Default value in ‘Modify current selection by’.
e. Click Run.
In the Save Vector Layer as... dialog,
7. User can save only highlighted
a. Select ESRI Shapefile as the format.
features by right clicking on the
”FacilityDetailsForCitizen” layer > b. Save the output “Adimaly_Facilities.shp” to the resource directory.
Export > click on Save Features As.. c. ‘Save only selected features’ should be checked.
d. Keep ‘Add saved file to map’ checked to add file in the canvas >
OK
A new layer
“Adimaly_Facilities” is added
to the Layers panel with
features falling within the
“Block_Boundary” polygon
8. Copy the Symbology: We will now use a copy and
paste method to symbolize each point according to the Now we can simply paste the symbology to
“Facility S” value. Right Click on the Source Layer (Adimaly Facilities) layer as shown in the image
(FacilityDetailsForCitizen)> Styles > Copy Style > click on below.
Symbology to copy the symbology.
Note: Copy and Paste method only work when the
layers attribute fields and values are same.
9. We can now remove the ”FacilityDetailsForCitizen” 10. Export the map: ‘Print Layout’ can be used to create
layer by right clicking on the layer and then clicking on maps.
Remove Layer… to remove the current Layer. Go to Project > New Print Layout.
11. User will be prompted to enter a title 12. We will change the default A4 paper size to A3 ,
for the layout. user can leave it empty or Right Click on the white portion on the paper > Page Properties..
provide a name for future reference and Change the size A4 to A3 in the item property panel and notice change in the
click Ok. paper size. Click on Zoom full button to display the full extent of the Layout .
13. We now have to bring the QGIS Canvas data with symbology to the layout.
Select > Add Map
After clicking on the Add Map, hold the left mouse button and drag a rectangle (From Upper left corner to Lower Right Corner
then release mouse button) where you want to insert the map.
Notice the rectangle window
will be rendered with all the
layers from the main canvas.
This window may not be
covering the full extent of block
boundary.
Use Select/Move
item and Move Content options
to pan the map in the window
and center it in the composer.
We can also click on Zoom
full button to display the full
extent of the Layout and
adjust the zoom level for the
map.
Click on the ’Item
Properties’ tab and
enter 175000 as
the Scale value.
14. Now we are going to add some standard map elements like North Arrow, Legend and Scale Bar to the map.
Click Add Item > Add North Arrow
You can also choose from the standard tool bar.
Click on the layout where you want the North Arrow to appear.
15. Click on the layout where you want the scalebar to appear. In the ’Item Properties’ tab > In
the Segments panel > change the ’Fixed width’ to 20 units and adjust the segments to your liking.
16. Click on Add Item > Add Label -to add title of the 17. To add legend, click on Add Item > Add Legend, then click on
map, you can increase the size of the font by clicking on the map and draw a box where the legend should be and adjust
the font here we are using 15 size. the box.
In the ‘Item Property’ tab, Uncheck ‘Auto update’ , select
‘Google map’ to remove from the legend.
18. After putting all the elements, user can now export map as an Image, User will be prompted a WMS Layer message
PDF or SVG. For this Exercise, Click Layout > Export as Image to save > close this
map in Jpeg format.
This is the exported Jpeg image
of the block.
Bedded hospitals per block
Next, we will look at filtering only the bedded hospitals per block.. This can be produced easily in excel if we
have the Block ID or Block Name against each facility. Unfortunately, block information is not available in
the facility shapefile.
However, using the ‘spatial join’, we can transfer block Id and Block Name from one layer (Block Boundary) to
another (FacilityDetailsForCitizen) based on their spatial relationship.
Congratulations!
You have now completed
Module 3.