OS OpenData masterclass 2013 – Cartographic Design workshop

1 Quantum GIS

1 Quantum GIS Quantum GIS (QGIS) is a user-friendly Open Source Geographic Information System (GIS,) licensed under the GNU General Public License. QGIS is an official project of the Open Source Geospatial Foundation (OSGeo). It runs on Linux, Unix, Mac OSX, Windows and Android and supports numerous vector, raster, and database formats and functionalities. 2 OS OpenData The latest release is QGIS 2.0.1 (Dufour). 3 OS VectorMap District QGIS provides a continuously growing number of capabilities provided by core functions and plugins. You can visualise, 4 Create a backdrop style manage, edit, analyse data, and compose printable .

Step 1: Open a QGIS project You can view the user guide at http://qgis.org/en/documentation/manuals.html

Step 2: Styling point data

Step 3: Styling line data

Step 4: Styling polygon data

Step 5: Labelling

Step 6: The brief

Cartographic Design workshop | 2

2 OS OpenData

1 Quantum GIS OS OpenData™ offers a wide range of digital map products that you can freely view or download, for use in both personal and commercial applications.

2 OS OpenData There are over 10 quality assured, continuously updated products, from postcodes and boundaries to digital maps, providing a one-stop shop to start using OS OpenData products. 3 OS VectorMap District OS OpenData can be used with other open datasets available on data.gov.uk and from other sources to enhance your existing 4 Create a backdrop map style data or applications.

Step 1: Open a QGIS project OS OpenData can be found at http://www.ordnancesurvey.co.uk/business-and-government/products/opendata-products.html Step 2: Styling point data

Step 3: Styling line data

Step 4: Styling polygon data

Step 5: Labelling

Step 6: The brief

Cartographic Design workshop | 3

3 OS VectorMap District

1 Quantum GIS OS VectorMap District lets you overlay your own information on a map. It can be customised by selecting and styling features in different ways. OS VectorMap District contains only the most important information to give you a clear, uncluttered backdrop map. 2 OS OpenData OS VectorMap District is a mapping dataset designed for providing contextual mapping output on paper, PCs, hand-held 3 OS VectorMap District devices or the Internet. The vector format of the product consists of layers to enable you to customise and style output to suit your needs. 4 Create a backdrop map style The product is available in three formats: Step 1: Open a QGIS project • as a tiled national vector dataset in Esri® Shapefile format; • as a tiled national raster dataset in Tagged Image File Format (TIFF); and • as a tiled national set of vector data in Markup Language (GML). Step 2: Styling point data The product can be used as mapping in its own right or can be used to provide a flexible geographic context reference for Step 3: Styling line data customers’ overlay information.

Step 4: Styling polygon data More information can be found at http://www.ordnancesurvey.co.uk/business-and-government/products/vectormap-district.html

Step 5: Labelling 3.1 What you need to use OS VectorMap District

Step 6: The brief OS VectorMap District vector data is supplied in Shapefile format and will require specialist software for data translation and manipulation.

OS VectorMap District GML Simple Features data may require specialist software for data translation and manipulation (data opens in open source software).

OS VectorMap District raster data is supplied in GeoTIFF and can be viewed using imaging software.

GeoTIFF provides geographical placing of data in a geographical information system (GIS) without the need for additional TIFF Worldfiles in TFW and TAB formats.

Cartographic Design workshop | 4

4 Create a backdrop map style

1 Quantum GIS These notes have been compiled for use with version 2.0.1 ‘Dufour’ of QGIS. We will be using OS VectorMap District and data obtained from data.gov.uk 2 OS OpenData OS VectorMap District layers – Building, Land, NamedPlace, RailwayStation, RailwayTrack, Road, SurfaceWater_Area, SurfaceWater_Line, Woodland 3 OS VectorMap District data.gov.uk – GP_Locations 4 Create a backdrop map style 4.1 Exercise

Step 1: Open a QGIS project For this exercise, OS VectorMap data has already been ordered through the OS OpenData website and loaded to your machine and added to a QGIS project. Step 2: Styling point data The GP_Locations data has also been downloaded from data.gov.uk and added to the same QGIS project. Step 3: Styling line data All the data has been cut into a manageable chunk covering an area within South East London.

Step 4: Styling polygon data Step 1: Open a QGIS project • If you do not already have QGIS opened load it from either the desktop icon or from the start menu. Step 5: Labelling • To open an existing project select the Open Project button .

Step 6: The brief • Navigate to Desktop\Carto Workshop\Carto_Workshop.qgs and press OK. Step 2: Styling point data Let’s begin by familiarising ourselves with some of the useful tools found within QGIS.

• Now set the scale of your document to ‘1:15000’ by entering it into the scale box found in the bottom right hand side of your editor window.

Cartographic Design workshop | 5

1 Quantum GIS Let’s restyle the point symbol currently used to style the railway stations.

Layers 2 OS OpenData • Double (left) click on the layer RailwayStation found in your window on the left hand side of your editor window.

3 OS VectorMap District

4 Create a backdrop map style

Step 1: Open a QGIS project

Step 2: Styling point data

Step 3: Styling line data

Step 4: Styling polygon data • Navigate to the Style tab within the Layer Properties window.

Step 5: Labelling

Step 6: The brief

• Highlight the Simple marker element of the Marker currently being used to depict your railway stations.

Cartographic Design workshop | 6

1 Quantum GIS • Keep the Symbol layer type set to Simple marker and select the ‘circle’ symbol.

2 OS OpenData

3 OS VectorMap District

4 Create a backdrop map style

Step 1: Open a QGIS project

Step 2: Styling point data • Next double click on the Fill colour box.

Step 3: Styling line data • Change the RGB colour to R200 G0 B3 and OK. Step 4: Styling polygon data

Step 5: Labelling

Step 6: The brief

• Keep the border colour as black. • Change the size of your marker to 3.0 and its outline width to 0.4.

You can change the unit of measurement from Millimeter to Map unit if you prefer by clicking on the dropdown.

Cartographic Design workshop | 7

1 Quantum GIS • You also have the option within your Layer Properties to change the angle and offset (X and Y) of your symbol. This can be done by changing the values within the relevant boxes. 2 OS OpenData

• You can also change the Symbol layer type by clicking on the dropdown. 3 OS VectorMap District

4 Create a backdrop map style

Step 1: Open a QGIS project

Step 2: Styling point data

Step 3: Styling line data

Step 4: Styling polygon data

Step 5: Labelling

Step 6: The brief

Ellipse marker – selection of ellipse markers. Font marker – allows you to select a representation for your symbol using a font character. If you have created your own font you will need to load this to your PC font library in order for QGIS to recognise it. Simple marker – simple selection of shape markers. SVG marker – allows you to select an SVG image from a QGIS library or navigate to one of your own. Vector marker – allows you to style using fields within your data’s attributes. For instance you could depict and set the direction of a flow arrow using its attribution. • Press OK. • At this point it’s worth saving your workspace. Select Project>Save As and navigate to Desktop\Carto Workshop. Save your workspace as Carto_Workshop_step2.qgs and click Save.

Cartographic Design workshop | 8

1 Quantum GIS Step 3: Styling line data

2 OS OpenData • Double (left) click on the layer Road. • Navigate to the Style tab and change the drop down to ‘Categorized’. This will allow us to style the line data within this layer by an attribute. 3 OS VectorMap District

4 Create a backdrop map style

Step 1: Open a QGIS project

Step 2: Styling point data

Step 3: Styling line data

Step 4: Styling polygon data

Step 5: Labelling

Step 6: The brief • Change the Column drop down to ‘classifica’. This is the line data’s classification and is the attribute by which we wish to style the data.

Cartographic Design workshop | 9

1 Quantum GIS • Click on the Classify button. You should now have thirteen symbol representations each with a different Value/Label.

2 OS OpenData

3 OS VectorMap District

4 Create a backdrop map style

Step 1: Open a QGIS project

Step 2: Styling point data

Step 3: Styling line data

Step 4: Styling polygon data

Step 5: Labelling • Double click on the symbol that currently represents A Road.

Step 6: The brief

Cartographic Design workshop | 10

1 Quantum GIS • A Symbol selector window should now have appeared.

We are going to show A roads using a road casing and a road fill. This means we require two lines to represent this style – a 2 OS OpenData line on top of a line.

3 OS VectorMap District • To do this press the Add symbol layer button .

4 Create a backdrop map style NOTE: you must make sure you have the Line element of your Symbol layer highlighted before doing this.

Step 1: Open a QGIS project

Step 2: Styling point data

Step 3: Styling line data

Step 4: Styling polygon data

Step 5: Labelling

Step 6: The brief

We now have two lines to style.

• Change the top line properties to match that of those in the Symbol selector box below. • The colour is R255 G170 B255.

Cartographic Design workshop | 11

1 Quantum GIS

2 OS OpenData

3 OS VectorMap District

4 Create a backdrop map style

Step 1: Open a QGIS project

Step 2: Styling point data

Step 3: Styling line data • Change the bottom line properties to match that of those in the Symbol selector box below. • The colour is R70 G70 B70. Step 4: Styling polygon data

Step 5: Labelling

Step 6: The brief

• From this box you can also add an Offset to your line or change the Pen style.

• The Pen style dropdown allows you to change your line to a predefined dashed line or apply no pen style. If you check the use custom dash pattern box you can customise your own dash pattern using the button.

Cartographic Design workshop | 12

1 Quantum GIS • You can also change the Join style and Cap style for your line data using the dropdowns.

2 OS OpenData

3 OS VectorMap District The Join style is where a straight line changes direction (turns a corner) and a Cap style is the end of an open line.

• For our road style we used a simple line style however, you may wish to style your line using a marker predefined along the 4 Create a backdrop map style line extent. To do this change the Symbol layer type dropdown to Marker line. From here you can set the marker style and marker placement. Step 1: Open a QGIS project

Step 2: Styling point data

Step 3: Styling line data

Step 4: Styling polygon data

Step 5: Labelling

Step 6: The brief

• Press OK on the Symbol selector window. • Press Apply on the Layer Properties window.

We now need to ensure that when our road layer draws the two lines that make it up draw in the correct order. That is, we want our road casing to draw first and our road fill to draw last.

• Within your Layer properties window press the Advanced button. • From the dropdown menu that appears select Symbol levels…

Cartographic Design workshop | 13

1 Quantum GIS • To enable the use of symbol levels check the Enable symbol levels box. • In order to see all the layer values making up your style you will need to expand the Symbol Levels box. You can do this by hovering the mouse cursor over the edge or corner of the box and drag it out by holding the left mouse button. 2 OS OpenData

3 OS VectorMap District

4 Create a backdrop map style

Step 1: Open a QGIS project

Step 2: Styling point data

Step 3: Styling line data

Step 4: Styling polygon data

Step 5: Labelling

Step 6: The brief

Layer 0 will draw first, then layer 1, then layer 2 and so on… • For your A Road, the road casing should be layer 0 and the road fill layer 1. • When you come to style the rest of your road data you have two choices. You can either style all your roads the same or you can style them based on their classification. If you style them the same you will only need to think about the order in which the elements that make up your styles draw, that is, road casing first and road fill second. If you style your roads differently you will need to consider the order in which your roads draw as well. This will help with the visualisation of junctions too. NOTE: as a rule of thumb the lowest number (0) will draw first and the highest number last. • Press OK. • Save your workspace. Select Project>Save As and navigate to Desktop\Carto Workshop. Save your workspace as Carto_Workshop_step3.qgs and click Save.

Cartographic Design workshop | 14

1 Quantum GIS Step 4: Styling polygon data

• Double (left) click on the layer Building. 2 OS OpenData • Navigate to the Style tab within the Layer Properties window and highlight the Simple fill element of the fill currently being used to depict Buildings. 3 OS VectorMap District

4 Create a backdrop map style

Step 1: Open a QGIS project

Step 2: Styling point data

Step 3: Styling line data

Step 4: Styling polygon data

Step 5: Labelling • Change the Building fills properties to match that of those in the Layer Properties box below. • The fill colour is R251 G224 B191. Step 6: The brief • The border colour is R80 G80 B80.

Cartographic Design workshop | 15

1 Quantum GIS • Using the Fill style dropdown you can change your Fill style to a number of preset patterns.

2 OS OpenData

3 OS VectorMap District

4 Create a backdrop map style

Step 1: Open a QGIS project • Using the Border style dropdown you can change the Border style of your polygon to a number of preset styles.

Step 2: Styling point data

Step 3: Styling line data

Step 4: Styling polygon data • You can also add a transparency to your polygon by adjusting the Layer transparency slider.

Step 5: Labelling • We have set our Symbol layer type to ‘Simple fill’, however, you do have the option to change this using the dropdown.

Step 6: The brief

Centroid fill – adds a marker to the centre point of your polygon.

Line pattern fill – adds a line pattern fill to your polygon where you can control the angle and width of your lines as well as the distance in between.

Point pattern fill – adds a point fill to your polygon where you can control the style of the point as well as the distance and displacement between each point.

SVG fill – adds a set point pattern fill using a SVG of your choice. You can control the width of the pattern as well as the rotation of the SVG representing your pattern fill.

Cartographic Design workshop | 16

1 Quantum GIS Simple fill – adds a simple fill to your polygon.

2 OS OpenData Outline: Marker line – allows you to style your polygon using an outline made up of a marker of your choice. Outline: Simple line – allows you to style your polygon using only an outline. 3 OS VectorMap District • Press OK. 4 Create a backdrop map style • Save your workspace. Select Project>Save As and navigate to Desktop\Carto Workshop. Save your workspace as Step 1: Open a QGIS project Carto_Workshop_step4.qgs and click Save. Step 5: Labelling Step 2: Styling point data Next we are going to add some road names to our Roads layer. Step 3: Styling line data • Either highlight the layer Road within your layers window and press the Layer labelling options button found on your Step 4: Styling polygon data labelling toolbar; or • Double click on the Road layer and navigate to the Labels tab within the Layer Properties window. Step 5: Labelling

Step 6: The brief

• Check the Label this layer with box.

• Change the dropdown box to name. This means, we will be labelling our Road layer using its name attribute.

Cartographic Design workshop | 17

1 Quantum GIS • Next ensure you have the Text option highlighted.

2 OS OpenData

3 OS VectorMap District

4 Create a backdrop map style Within the Text style section change your font to Arial, font style to Bold and size to 8.0.

Step 1: Open a QGIS project • Change the text fill colour to R20 G20 B20.

Step 2: Styling point data

Step 3: Styling line data

Step 4: Styling polygon data

Step 5: Labelling

Step 6: The brief

• Select the Bufferoption . This will allow us to add a mask or halo to our text.

• Within the Text buffer section ensure you have theDraw text buffer checked .

• Change your buffer size to 1.0.

• Check the Colour buffer’s fill box and change your buffer colour to white R( 255 G255 B255).

Cartographic Design workshop | 18

1 Quantum GIS • Let’s add a 15% transparency to our buffer by either sliding the slider bar to 15% or by changing the value in the box.

2 OS OpenData

3 OS VectorMap District • Change the Pen join style to ‘Bevel’ and the Blend mode to ‘Normal’.

4 Create a backdrop map style • Select the Placement option . This will allow us to play with how our text is positioned.

Step 1: Open a QGIS project • Within the Placement section set the text to place ‘Curved’ and to be positioned ‘On line’.

Step 2: Styling point data

Step 3: Styling line data

Step 4: Styling polygon data

Step 5: Labelling

Step 6: The brief

If you select ‘Above line’ or ‘Below line’ you can set the distance your label displays from your line data. • Use the priority slider to set whether your labels have a higher priority over another set of labels. Setting a label with a high priority means when it clashes with text of a lower priority the text with the higher priority will hold precedence. • Give these labels a high priority.

• Select the Rendering option .

Here you have the option to label every part of your multi part feature, merge connected lines to avoid duplicate labels or limit the number of features labelled to a number of your choice.

Cartographic Design workshop | 19

1 Quantum GIS • Our road data is made up of multi-part features and we do not want to label every one of these parts. Within the Feature options select the Merge connected lines to avoid duplicate labels. 2 OS OpenData

3 OS VectorMap District

4 Create a backdrop map style • Press OK. Step 1: Open a QGIS project • Save your workspace. Select Project>Save As and navigate to Desktop\Carto Workshop. Save your workspace as Carto_Workshop_step5.qgs and click Save. Step 2: Styling point data

Step 3: Styling line data

Step 4: Styling polygon data

Step 5: Labelling

Step 6: The brief

Cartographic Design workshop | 20

1 Quantum GIS Step 6: The brief

Bromley Council would like to make finding a GP surgery for their residents easier and have asked us to produce a map clearly 2 OS OpenData showing the locations of these surgeries. We would like you create this map.

3 OS VectorMap District Bromley Council would like the map made using OpenData and intend to display it on their website.

4 Create a backdrop map style Using the data we had for the previous exercises, we would now like you to restyle the map, adopting our Carto Design principles into your design. Step 1: Open a QGIS project When creating your map it is important you think about a number of things. For instance: • Who is the intended user? Step 2: Styling point data • What features on the map are the most important to the user? • What information is needed to make the map successful? Step 3: Styling line data • How should this information be displayed?

Step 4: Styling polygon data When you have finished your map do not forget to save. Select Project>Save As and navigate to Desktop\Carto Workshop. Save your workspace as Carto_Workshop_yourname.qgs and click Save. Step 5: Labelling

Step 6: The brief

Cartographic Design workshop | 21 General information General enquiries Textphone www.ordnancesurvey.co.uk/contactus +44 (0)8456 05 05 05 +44 (0)23 8005 6146

This document has been screened in accordance with the requirements set out in ’s Equality Scheme. If you have difficulty reading this information in its current format and would like to find out how to access it in a different format (Braille, large print, computer disk or in another language), please contact us on: +44 (0)8456 05 05 05.

Ordnance Survey and the OS Symbol are registered trademarks of Ordnance Survey, the national mapping authority of Great Britain.

Ordnance Survey © Crown copyright D11184 1113