All pages
Powered by GitBook
1 of 5

Loading...

Loading...

Loading...

Loading...

Loading...

Vector Simple Guide

This is a simple user guide for those with no previous knowledge of geographic information systems (GIS).

This guide will introduce users to downloading OS OpenDataâ„¢, creating simple maps with Quantum GIS (QGIS), and exporting the map as a PDF or JPEG file.

The aim of this exercise is to produce a map of Southampton at a scale of 1:20 000.

OS VectorMap® District (Vector) format is updated twice a year and is appropriate for maps of scale 1:15 000-1:30 000. If a greater level of detail is required we recommend OS VectorMap Local.

For more information on OS VectorMap District go to the product's overview and technical specification pages.

The topics covered in this guide include:

  • Downloading OS OpenData

  • Opening OS OpenData in QGIS

  • Styling vector data

  • Opening and saving maps in Composer

Opening and saving maps in Composer

Once you are happy with the scale and position of your map, click Project > New Print Composer.

  • A window will open asking for an ID/Title, however it is not required. Click OK.

  • A new window will open showing a blank page. To insert the map from QGIS click on ‘Add new map’ (see below).

Left click and then drag a rectangle to select the dimension of the added map. Once added the position of the map within the frame can be adjusted by selecting ‘Move item content’ (see above).

  • Click on ‘Item Properties’ on the task bar on the right. The specific scale can be selected here, and if you scroll down there are several other options including ‘Position and Size’. Here the dimensions of the map on the page can be adjusted in millimetres. Careful, as when altering the position and size the scale will also change.

  • Once you are happy with the image you can export the map as an image or a PDF by selecting ‘Export as image’ or ‘Export as PDF’ respectively (see below). And save within an appropriate folder.

  • Your final JPEG image should looks similar to this:

New Print Composer menu item in the File menu
New Print Composer menu item in the File menu
Compose title dialog box
New Print Composer menu item in the File meny
Add and insert new map buttons highlighted in the toolbar
Add new Map in the QGIS toolbar
Item properties menu in the composer window show,000 scale anding 20 0.00 degrees of map rotation
Item properties menu in the composer window
Export as image (left) and export as PDF (right) buttons shown in the toolbar.
Export options in the toolbar
JPEG image of a map Southampton
Exported JPEG image of a map Southampton

Downloading OS OpenData

  • Firstly OS VectorMap District (Vector) format needs to be downloaded from the OS Data Hub

  • Scroll to OS VectorMap District, ensure that the data type is Vector. Select grid reference square using the two letter reference list. Southampton lies in the SU grid reference square, so SU has been selected from the reference list.

OS VectorMap District in ESRI Shapefile supply format

Here is a larger image of the National Grid Reference squares:

National Grid Reference squares covering Great Britain
  • Tick the box for Download (as seen in download page image). Scroll down to the bottom of the page and click Next.

  • Fill in the details required and you will receive an email with a link to download the data as a .zip file. Save to a designated folder. Once the download is complete, extract the file.

Now you should have a data folder with the all the components as SHX, SHP, PRJ and DRB files.

  • As the download doesn’t come with Styled Layer Descriptors (SLDs), these need to be downloaded from the Ordnance Survey GitHub: https://github.com/OrdnanceSurvey/OS-VectorMap-District-stylesheets

On the webpage click ‘Download ZIP’.

  • Save the file. Once downloaded, extract the file and this will create a folder which contains both ESRI Shapefile stylesheets and GML stylesheets. Later we will be using the ESRI Shapefile stylesheets.

OS VectorMap District screenshot showing ESRI Shapefile supply product and SU national grid reference selected
Image of Great Britain National Grid Reference squares

Styling vector data

For each layer present in the data the colours have been assigned randomly. To make the map legible the Styled Layer Descriptors can be applied to each layer.

To do this first right click on the ‘SU_Woodland’ layer and select ‘Properties’.

  • This will open a new window. Make sure the ‘Style’ tab on the left is selected.

Layer properties window
  • Click ‘Load Style’ and a new window will open, navigate to the downloaded stylesheet folders

OS-VectorMap-District-stylesheets-master > ESRI Shapefile stylesheets > QGIS stylesheets (QML) > Full Colour style and select the Woodland QML file and click ‘Open’.

  • Repeat this for each layer selecting the respective QML file for each layer.

  • For maximum legibility rearrange the order of the layers to match the image below:

layers window
  • By clicking on the box next to the layer name the layer can be included or removed from the map.

  • The resultant map should look similar to this:

Map created from selecting the layers from the layers window above
  • The map is most functional for scales 1:15 000-1:30 000. For this tutorial we want a map of an area of Southampton at a scale of 1:20 000. Use the ‘Pan tool’, ‘Zoom in’ and ‘Zoom out’ to position the map over Southampton at an appropriate scale, or alternatively set the scale of the map by typing in the scale bar, which is at the bottom of the screen.

A map at 1:20,000 scale

• The map should now look similar to this:

Styled map showing Southampton at 1:20,000 scale
Layer properties window showing available styles with Load Style button highlighted
Left hand side layers window showing all layers selected except for PublicAmenity, HeritageSite, and Administrative Boundary
Map displaying selected layers in the main map window
A map at 1:20,000 scale zoomed in showing a crossing over the River Itchen
Styled map showing Southampton at 1:20,000 scale

Opening OS OpenData in QGIS

  1. Open QGIS from Start > All Programs > QGIS Brighton > QGIS Desktop 2.6.1

  2. To add the OS VectorMap. Select ‘Add vector layer’ from the application toolbar

  3. Click ‘Browse’ and navigate to the data folder OSVectorMapDistrict (ESRI Shape File)SU > data.

  4. Click on the drop down menu next to File name and select ESRI shapefiles (*.shp, *.SHP).

  5. Select all the shape files and click ‘Open’. Now you should have a map that looks similar to this:

  • Once open you can move about and investigate the map using some of these tools:

Pan tool Zoom in/Zoom out

  1. To restore the image to its original view, right click on one of the vector layers and click ‘Zoom to layer’.

Map data shown in the main window
Map navigation tools shown in the toolbar
Zoom to layer option in the layer context menu
Map data shown in the main window
Map navigation tools shown in the toolbar
Zoom to layer option shown in the layer context menu
OS Data HubOrdnanceSurvey
Logo