0% found this document useful (0 votes)
170 views16 pages

5.1 Lesson: Using Map Composer: 5.1.1 Follow Along: The Composer Manager

This document provides instructions for using the QGIS Map Composer to create maps. It discusses adding a map, title, and legend to the basic map composition. It also covers customizing legend items, aligning elements, and exporting the finished map. The goal is to use the Map Composer to create a map of Swellendam, South Africa with all the required settings and components.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
170 views16 pages

5.1 Lesson: Using Map Composer: 5.1.1 Follow Along: The Composer Manager

This document provides instructions for using the QGIS Map Composer to create maps. It discusses adding a map, title, and legend to the basic map composition. It also covers customizing legend items, aligning elements, and exporting the finished map. The goal is to use the Map Composer to create a map of Swellendam, South Africa with all the required settings and components.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

CHAPTER 5

Module: Creating Maps

In this module, you’ll learn how to use the QGIS Map Composer to produce quality maps with
all the requisite map components.

5.1 Lesson: Using Map Composer

Now that you’ve got a map, you need to be able to print it or to export it to a document. The
reason is, a GIS map file is not an image! Rather, it saves the state of the GIS program, with
references to all the layers, their labels, colors, etc. So for someone who doesn’t have the data
or the same GIS program (such as QGIS), the map file will be useless. Luckily, QGIS can
export its map file to a format that anyone’s computer can read, as well as printing out the map
if you have a printer connected. Both exporting and printing is handled via the Map Composer.
The goal for this lesson: To use the QGIS Map Composer to create a basic map with all the
required settings.

5.1.1 Follow along: The Composer Manager

QGIS allows you to create multiple maps using the same map file. For this reason, it has a tool
called the Composer Manager.
• Click on the File → Composer Manager menu entry to open this tool. You’ll see a blank
Composer manager dialog appear.
• Click the Add button and a new composer will be added called Composer 1 (it may be
another number if you have tried using the Composer Manager before now).
• With your new composer selected, click on the Rename button and rename it to
Swellendam.
• Click OK.
• Click the Show button.
(You could also close the dialog and navigate to a composer via the File → Print Composers
menus, as in the image below.)

89
Quantum GIS Training Manual, Release 1.0

Whichever route you take to get there, you will now see the Print Composer window.

5.1.2 Follow along: Basic Map Composition

In this example, the composition was already the way we wanted it. Ensure that yours is as
well.
• Check that the values under General → Composition → Paper and Quality are set to the
following:
• Size: A4 (210x297mm)
• Orientation: Landscape
• Quality: 300dpi
Now you’ve got the page layout the way you wanted it, but this page is still blank. It clearly
lacks a map. Let’s fix that!
• Click on the Add New Map button:

With this tool activated, you’ll be able to place a map on the page.
• Click and drag a box on the blank page:

90 Chapter 5. Module: Creating Maps


Quantum GIS Training Manual, Release 1.0

The map will appear on the page.


• Move the map by clicking and dragging it around:

• Resize it by clicking and dragging the boxes in the corners:

5.1. Lesson: Using Map Composer 91


Quantum GIS Training Manual, Release 1.0

Note: Your map may look a lot different, of course! This depends on how your own project is
set up. But not to worry! These instructions are general, so they will work the same regardless
of what the map itself looks like.

• Be sure to leave margins along the edges, and a space along the top for the title:

92 Chapter 5. Module: Creating Maps


Quantum GIS Training Manual, Release 1.0

• Zoom in and out on the page (but not the map!) by using these buttons:

• Zoom and pan the map in the main QGIS window. You can also pan the map using the
Move item content tool:

When zooming in, the map view will not refresh by itself. This is so that it doesn’t waste
your time redrawing the map while you’re zooming the page to where you want it, but it also
means that if you zoom in or out, the map will be at the wrong resolution and will look ugly or
unreadable.
• Force the map to refresh by clicking this button:

Remember that the size and position you’ve given the map doesn’t need to be final. You can
always come back and change it later if you’re not satisfied. For now, you need to ensure that
you’ve saved your work on this map. Because a Composer in QGIS is part of the main map
file, you’ll need to save your main project. Go to the main QGIS window (the one with the
Layers list and all the other familiar elements you were working with before), and save your
project from there as usual.

5.1. Lesson: Using Map Composer 93


Quantum GIS Training Manual, Release 1.0

5.1.3 Follow along: Adding a Title

Now your map is looking good on the page, but the reader is not being told what’s going on
yet. They need some context, which is what you’ll provide for them by adding map elements.
First, let’s add a title.
• Click on this button:

• Click on the page, and a label will appear:

• Resize it and place it in the top center of the page. It can be resized and moved in the
same way that you resized and moved the map.

94 Chapter 5. Module: Creating Maps


Quantum GIS Training Manual, Release 1.0

But if you tried it, you’ll see that it’s difficult to align the label to be completely centered to the
map! Luckily, there’s a tool for that.
• Click the map to select it.
• Hold in shift on your keyboard and click on the label.
• Look for this tool (but don’t click it yet):

• Click on the downwards arrow next to the button.


• Click Align center:

5.1. Lesson: Using Map Composer 95


Quantum GIS Training Manual, Release 1.0

To make sure that you don’t accidentally move these elements around now that you’ve aligned
them:
• Right-click on both the map and the label.
A small lock icon will appear in the corner to tell you that an element can’t be dragged right
now. You can always right-click on an element again to unlock it, though.
Now the label is centered to the map, but not the contents. To center the contents of the label:
• Select the label by clicking on it.
• Click on the Item tab in the side panel of the Composer window.
• Change the text of the label to “Swellendam”:

96 Chapter 5. Module: Creating Maps


Quantum GIS Training Manual, Release 1.0

• Use this interface to set the font and alignment options:

• Choose a large but sensible font (the example will use the default font with a size of 48),
and keep the color subdued.
In fact, it’s probably best to keep it black as per the default. The key is that the font should
not be distracting, otherwise people who see the page will be looking at the heading instead of
reading the map!
• Set the Horizontal Alignment to Center, so that the heading is properly centered within
the label.

5.1. Lesson: Using Map Composer 97


Quantum GIS Training Manual, Release 1.0

This is progressing nicely, but the label still has an unnecessary frame around it:

Let’s get rid of it.


• Click on the General options slider at the bottom of the Item tab. The Label slider will
slide away and you will see a new interface.

98 Chapter 5. Module: Creating Maps


Quantum GIS Training Manual, Release 1.0

• Click the Show frame checkbox to disable the frame:

Here is our page so far:

5.1. Lesson: Using Map Composer 99


Quantum GIS Training Manual, Release 1.0

5.1.4 Follow along: Adding a Legend

The map reader also needs to be able to see what various things on the map actually mean. In
some cases, like the place names, this is quite obvious. In other cases, it’s more difficult to
guess, like the colors of the farms. Let’s add a new legend.
• Click on this button:

• Click on the page to place the legend, and move it to where you want it:

100 Chapter 5. Module: Creating Maps


Quantum GIS Training Manual, Release 1.0

5.1.5 Follow along: Customizing Legend Items

Not everything on the legend is necessary, so let’s remove some unwanted items.
• In the Item tab, click on the Legend items slider.
• Select the places entry.
• Delete it from the legend by clicking the minus button:

You can also rename items.


• Select a layer from the same list.
• Click the Edit button:

• Rename the layers to Roads and Streets, Surface Water, Urban Areas,
and Farms.
• Click the down arrow next to any item with multiple classes to rename the classes (using
the same method as above).

5.1. Lesson: Using Map Composer 101


Quantum GIS Training Manual, Release 1.0

In the example, the Farms layer’s areas were computed in units that aren’t easy to convert
to land area directly. If your farms are classified by area or some other criteria, you should
rename those classes to something that would make sense to the map reader. In the example,
we renamed the smallest class small area and the largest one large area, with the one
in the middle moderate area and the rest blanked out.
This is the result:

5.1.6 Follow along: Exporting Your Map

Note: Did you remember to save your work often?

Finally the map is ready for export! You’ll see the export buttons near the top left corner of the
Composer window:

The button on the right is the Print button, which interfaces with a printer. Since the printer
options will differ depending on the model of printer that you’re working with, it’s probably
better to consult the printer manual or a general guide to printing for more information on this
topic.
The other three buttons allow you to export the map page to a file. There are three export

102 Chapter 5. Module: Creating Maps


Quantum GIS Training Manual, Release 1.0

formats to choose from:


• Export as Image
• Export as PDF
• Export as SVG
Exporting as an image will give you a selection of various common image formats to choose
from. This is probably the simplest option, but the image it creates is “dead” and difficult to
edit.
The other two options are more common.
If you’re sending the map to a cartographer (who may want to edit the map for publication),
it’s best to export as an SVG. SVG stands for “Scalable Vector Graphic”, and can be imported
to programs like Inkscape or other vector image editing software.
If you need to send the map to a client, it’s most common to use a PDF, because it’s easier to
set up printing options for a PDF. Some cartographers may prefer PDF as well, if they have a
program that allows them to import and edit this format.
For our purposes, we’re going to use PDF.
• Click the Export as PDF button:

• Choose a save location and a file name as usual.


• Click Save.

5.1.7 In conclusion

• Close the Composer window.


• Save your map.
• Find your exported PDF using your operating system’s file manager.
• Open it.
• Bask in its glory.
Congratulations on your first completed QGIS map project!

5.1.8 What’s next?

On the next page, you will be given an assignment to complete. This will allow you to practice
the techniques you have learned so far.

5.1. Lesson: Using Map Composer 103


Quantum GIS Training Manual, Release 1.0

5.2 Assignment 1

Open your existing map project and revise it thoroughly. If you have noticed small errors or
things you’d have liked to fix earlier, do so now.
If you are following this course at a Basic or Intermediate level, try to understand and imple-
ment techniques taught at a higher level.
While customizing your map, keep asking yourself questions. Is this map easy to read and
understand for someone who’s unfamiliar with the data? If I saw this map on the Internet, or
on a poster, or in a magazine, would it capture my attention? Would I want to read this map if
it wasn’t mine?

If you’re doing this course at a Basic or Intermediate level, read up on techniques


from the more advanced sections. If you see something you’d like to do in your map, why not
try to implement it?
If this course is being presented to you, the course presenter may require you to submit a final
version of your map, exported to PDF, for evaluation. If you’re doing this course by yourself,
it’s recommended that you evaluate your own map using the same criteria. Your map will be
evaluated on the overall appearance and symbology of the map itself, as well as the appearance
and layout of the map page and elements. Remember that the emphasis for evaluating the
appearance of maps will always be ease of use. The nicer the map is to look at and the easier it
is to understand at a glance, the better.
Happy customizing! :)

5.2.1 In conclusion

The first four modules have taught you how to create and style a vector map. In the next four
modules, you’ll learn how to use QGIS for a complete GIS analysis. This will include creating
and editing vector data; analyzing vector data; using and analyzing raster data; and using GIS
to solve a problem from start to finish, using both raster and vector data sources.

104 Chapter 5. Module: Creating Maps

You might also like