OS Locator

From OpenStreetMap Wiki
(Redirected from Using OS Locator files)
Jump to: navigation, search

OS Locator (OSL) is one of the datasets released as part of the Ordnance Survey Opendata releases in the UK. It is a file with a list of road names and positions for the UK. Although the file does not give road geometry, it does give a rough location for every street. This is good enough to use as check list / comparison dataset, in tools for Quality Assurance of OpenStreetMap and for measuring completeness.

Contents

Comparison tools

There are several tools for comparing OS Locator streets data with OpenStreetMap.

Interpreting the differences

You should never just change street names in OpenStreetMap to match OS Locator names. That's really not the idea at all! By doing this, you could be using information with errors and overwriting information which has been properly surveyed by people out on-the-ground. Even if the surveyed OSM data looks like an error, you should assume that data is correct unless you can get there on the ground to check.

It is also quite widely regarded as unhelpful to copy streetnames from OS Locator for places you have never visited. Meanwhile some people are doing this in some areas. If you do this you should definitely use the source tag (and probably on the elements themselves) :

source:name=OS_OpenData_Locator

If this tag is used on elements (as opposed to changesets) then mappers should be bold and remove the source tag or replace it, when they have surveyed and verified the street name.

Discussion: Vclaw's diary, chriscf’s diary,discussion on talk-gb , and no doubt many other places (TODO: link here)


TODO: More general notes on interpreting the differences and corrective actions to take with editors.

Create GPX file of OSL data

Useful for:

Prerequisites

This method has been tested using Ubuntu 9.04. It requires the following:

Get OS Locator data

Process OS Locator data for your area

grep "Bath and North East Somerset" OS_Locator2010_1_Open.txt > BANES.txt

Convert Data into Useful GPX file

=CONCATENATE(LEFT(O1,2), " ", MOD(C1,100000)," ",MOD(D1,100000))
# Format: Import (Excel-modified) OS Locator street name centres
# Author: D Dixon
#   Date: 8 April 2010
#

DESCRIPTION  Import (Excel-modified) OS Locator street name centres
EXTENSION    txt

#
# FILE LAYOUT DEFINITIIONS:
#
FIELD_DELIMITER TAB
RECORD_DELIMITER NEWLINE
BADCHARS 
DATUM OSGB36

#
# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:


IFIELD DESCRIPTION, "", "%s" # Street name
IFIELD SHORTNAME, "", "%s" # Street ref 
IFIELD IGNORE,"","%s"
IFIELD IGNORE,"","%s"
IFIELD IGNORE,"","%s"
IFIELD IGNORE,"","%s"
IFIELD IGNORE,"","%s"
IFIELD IGNORE,"","%s"
IFIELD IGNORE,"","%s"
IFIELD IGNORE,"","%s"
IFIELD IGNORE,"","%s"
IFIELD IGNORE,"","%s"
IFIELD IGNORE,"","%s"
IFIELD IGNORE,"","%s"
IFIELD IGNORE,"","%s"
IFIELD IGNORE,"","%s"
IFIELD MAP_EN_BNG,"","%s %5d %5d"   # OS Grid reference
gpsbabel -w -i xcsv,style="OSGB.style" -f "BANES.tab" -o gpx -F "BANES.gpx"

Cut down data to Bath City area only

Currently, BANES.gpx has all the roads in the Bath and North East Somerset area. I only care about the roads actually within Bath, so we need to cut down the GPX file and extract only those roads which are within the city. This is done using the polygon filter in gpsbabel.

51.4249453       -2.4529905999999997
51.337054699999996       -2.4529905999999997
51.337054699999996       -2.2772094
51.4249453      -2.2772094
51.4249453       -2.4529905999999997
gpsbabel -w -i gpx -f BANES.gpx -x polygon,file=BATH.bb -o gpx -F Bath_Streets.gpx

You now have a GPX file which can be loaded into JOSM or Google Earth.

Personal tools
Namespaces
Variants
Actions
site
Toolbox