QGIS/C2/Creating-a-Map/English-timed

From Script | Spoken-Tutorial
Revision as of 11:14, 15 September 2020 by PoojaMoolya (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Time Narration
00:01 Welcome to this tutorial on Creating a Map in QGIS.
00:07 In this tutorial, we will learn to, Create a map using Print Composer.
00:14 Add map elements in the Print composer.
00:18 Export the map.
00:20 To record this tutorial, I am using

Ubuntu Linux OS version 16.04.

00:28 QGIS version 2.18
00:32 To follow this tutorial you should be familiar with QGIS interface.
00:39 For the prerequisite tutorials please visit our website.
00:44 Download the folder given in the Code files link, located below the player.
00:50 Extract the contents of the downloaded zip file and save it in a folder.
00:57 Here is my Code files folder.
01:00 Double-click to open the folder.
01:03 In this folder you will find shape files for India and world map.
01:09 Locate indiaboundary.shp file.
01:14 To open this file in QGIS, right-click on the file.
01:19 The context menu opens.
01:22 Select the option, Open with QGIS Desktop.
01:27 The map opens directly in QGIS interface.
01:32 If you don’t see the option Open with QGIS Desktop, first open QGIS interface.
01:41 Here I have opened QGIS interface.
01:45 Click on Add Vector Layer tool on the left tool bar.
01:50 Add Vector Layer dialog-box opens.
01:54 In the box, click on Browse button next to Dataset text box.
02:00 A dialog-box opens.
02:03 Navigate to Code files folder on the Desktop.
02:07 Select the file, indiaboundary.shp file.

Click on Open button.

02:15 In the Add Vector Layer dialog-box, click on Open button.
02:20 Boundary map of India appears on the canvas.
02:24 Now let us add the shape file representing few cities of India.
02:30 Again, click on Add Vector Layer tool on the toolbar.
02:36 Add Vector Layer dialog-box opens.
02:40 In the box click on Browse button.
02:44 A dialog-box opens.
02:47 Navigate to Code files folder on the Desktop.
02:51 Select the file places.shp.

Click on Open button.

02:58 In the Add Vector Layer dialog-box, click on Open button.
03:03 Cities are shown as point features on the map.
03:07 Let us label these cities.
03:10 Right click on Places layer in the Layers panel.
03:15 From the context menu, click on Properties option.
03:20 In the Layer Properties dialog-box select the labels tab.
03:25 In the drop-down located at the top, select Show labels for this layer option.
03:32 In Label with drop-down, select name from the given options.
03:38 In the Text tab, we have options to choose
fonts
03:46 style
03:49 size
03:51 color etc.
03:57 Click on Apply button and OK button.
04:02 On the canvas, India map with some cites and labels is displayed.
04:08 This map file can be exported to image format for the purpose of printing or publishing .
04:15 QGIS has a tool called Print Composer.
04:19 It allows you to create maps in the format that is easy to read.
04:24 Click on Project menu on the menu bar and select New Print Composer.
04:31 Composer title dialog-box opens.
04:35 You will be prompted to enter a title for the composer.
04:40 Type India-Map as title.
04:44 Click on OK button.
04:47 Print composer window opens.
04:50 Print Composer provides you with a blank canvas.
04:54 On the right-side beside the canvas, you will find two panels.
04:59 The upper panel and the lower panel.
05:03 To enable the panels, click on View menu.


05:08 From the menu scroll down and select Panels.
05:13 The sub-menu shows the list of panels.

Here some panels are already selected.

05:21 Click on the panel name to select it.
05:24 The panel appears on the right side of the canvas.
05:28 All Print Composer tools are available in menus and as icons on the toolbars.
05:37 The tool bars are present on the left as well as on the top of the Composer window.
05:45 For more information, please see additional material provided along with this tutorial.
05:52 Now let us start to assemble our map.
05:56 In the Print Composer window, click on Zoom full button on the tool bar.
06:03 This will display the layout to its full extent.
06:07 Now we have to bring the map view that we see in the QGIS Canvas to the Composer.
06:14 Click on Add new map tool on the tool bar.
06:19 Move the cursor on the composer window.
06:23 The cursor is now seen as plus (+) symbol.
06:27 This shows that Add Map button is active.
06:31 Click and drag the left-mouse button to draw a rectangle on the Composer window.
06:37 Leave margins along the edges.
06:40 You will see that the rectangle window will be rendered with the map from the main QGIS canvas.
06:48 The rendered map may not be covering the full window.
06:43 Click on Move item content tool on the left tool bar.
06:59 Using left mouse button, move the map in the window and centre it.
07:05 Leave space along the top for the title.
07:09 Now we will add a grid and zebra border to the main map.
07:14 In Item Properties Panel, scroll down to Grids section.
07:19 Click on small black-triangle next to Grids to view the expanded menu.
07:25 Click the Green plus (+), Add a new grid button.
07:30 Now all the features in the grid section are enabled.
07:35 If required, there is an option to change CRS.

I will leave it as such.

07:43 Select the Interval values as 10 degrees in both X and Y direction using drop-down arrows.
07:51 Scroll down to the Grid frame section and select a Frame style.

I will select Zebra.

07:59 There are options to change frame size, thickness, color, etc.
08:07 Select the options that suits your requirement.
08:12 Scroll down and check the Draw Coordinates check-box.
08:17 Adjust the Distance to map frame till the coordinates are legible.
08:23 Click on the upward or downward arrow to move the labels.
08:30 Select the Coordinate precision as 1.
08:34 This will display the coordinates upto the first decimal.
08:38 Next, we will add a North Arrow to the map.
08:43 The Print Composer comes with a good collection of map related images.
08:49 Click on Add image icon on the tool bar.
08:54 Bring the cursor to the map composer window.
08:58 Holding your left mouse button, click and draw a small rectangle on the top-right corner of the map canvas.
09:07 Under Item Properties tab in the right panel, expand the Search directories section.
09:14 Select by clicking on the north arrow image of your liking.
09:20 The image appears in the box in the map Composer window.
09:25 Click on the map Composer window.
09:28 You will see the North Arrow image on the top-right corner of the map.
09:34 Now we will add a scale bar to the map.
09:38 Click on Add new scalebar tool on the tool bar.
09:43 Click on the map where you want the scalebar to appear.
09:47 I will add the scale bar at the bottom-left corner.
09:52 In the right panel under Segments section, you can adjust the number of segments and their size.
10:00 We will now add the title for our map.
10:04 Click on Add new Label tool from the left tool bar.
10:09 Bring the cursor to the map composer window.
10:13 Holding your left mouse button, draw a box at the top-center of the map.
10:19 On the right panel you will see Item Properties tab for Label.
10:24 Under Main Properties, in the text box, type Map of India.
10:31 In the Appearance section, click on Font tab.
10:36 Select Font dialog-box opens, select suitable Font, Font style and Size.
10:49 Click on OK button.
10:52 Change the font color, margins and alignment as per your preference.
11:03 After you have finished making changes, click in the composer window to view the changes.
11:10 The label with selected font and size appears on the map in the Composer window.
11:17 Next let us add an Inset map.
11:21 Switch to the main QGIS window.
11:24 Click on the Zoom In button on the tool bar.
111:28 Bring the cursor to the map, zoom the area around Mumbai.
11:34 Draw a rectangle around Mumbai to zoom to the area.
11:39 We are now ready to add the map inset.
11:43 Switch to Print Composer window.
11:46 Click on Add new map tool on the tool bar.
11:51 Draw a rectangle at the top left corner of the Composer window.
11:57 Select Move item Content tool from the tool bar.
12:02 Place the cursor on the inset map.
12:05 Move the map in the inset to the location of your preference.
12:10 You will have 2 map objects in the Print Composer, Main map and inset map.
12:17 In the Item Properties panel, scroll down to the Frame section and check the box next to it.
12:26 Change the color and thickness of the frame border for the inset map,
12:36 Change the background color for the inset map, so that it is easy to distinguish against the map background.
12:45 Explore other map elements such as Legends, shapes, arrows etc.
12:53 Once you have finished making required changes, you can save or export the map.
12:59 Click on Composer menu on the menu bar.
13:03 Here we have options to export the map as Image, PDF or SVG.
13:12 Let us export the map as an image.

Select Export as Image option.

13:20 Save composition as dialog-box opens.

give an appropriate file name , location and format.

13:29 I will choose PNG format.

Click on Save button.

13:35 Image export options dialog-box opens.
13:39 Choose appropriate resolution, page-width and height.
13:44 I will set page width as 800 pixels.
13:49 Click on Save button.
13:52 Here is the map saved as an image file.
13:56 This map can now be printed or published.
14:01 Let's summarize,

In this tutorial we have learnt to,

14:06 Create maps using Print Composer, Add map elements in the Composer, Export the map.
14:16 Assignment

Using the world dataset given in the Code files link, create a map of Asia Continent.

14:25 Create an inset map of India.

Add a map legend.

14:31 Your completed assignment should look as shown here.
14:36 The video at the following link summarises the spoken tutorial project. Please download and watch it.
14:44 The spoken tutorial project team conducts workshops and gives certificates on passing online tests.

For more details please write to us.

14:54 Please post your timed queries on this forum.
14:58 The Spoken Tutorial Project is funded by NMEICT, MHRD Government of India.

More information on this mission is available at the following link.

15:09 This tutorial is contributed by Prajwal.M from NIT Surathkal and Snehalatha from IIT Bombay.

Thank you for watching.

Contributors and Content Editors

PoojaMoolya