Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
As the Code-Point data is supplied in separate .csv files by two-digit grid references, they will require some processing in order to proceed.
The Great Britain .csv files should be combined with the CSV header file, and the Northern Ireland .csv file should be combined with the CSV header file.
See CSV header file for more details and download information.
Before processing the data, create the following folders:
Northern Ireland – move the BT.csv file into this folder.
Great Britain – contains all remaining .csv files for Great Britain (120 in total).
Add the CSV header file (code-point-column-headers.csv) into both folders and precede the name with: aa_
The following is an example of one way to combine all the individual .csv files into a single file by using a .bat batch file.
The .csv file that is created comes to approximately 150 MB, and 1.7 million records. If this is opened in Microsoft Excel, only the first million records can be seen as the software cannot display more than this number of records.
To use the batch function:
Copy the following text and paste it into a new Notepad document: *.csv outputfile.csv
Save the Notepad document with the file extension .bat (for example, combine_csv.bat) in the Great Britain folder containing the 120 Great Britain .csv files.
Close the .bat file and navigate to the Great Britain folder, where it was saved. Double-click on the .bat file and an MS-DOS window will appear. Once the process is complete, the MS-DOS screen will close automatically.
A new CSV file with the name outputfile.csv has now been created within the Great Britain folder.
Repeat this process with the Northern Ireland data.
You will now have two output files ready for uploading into geospatial software (such as QGIS).
Metadata, which is ISO 19115 UK GEMINI 2 compliant, can be found at :https://data.gov.uk/dataset/86d1f24d-dda6-49cf-921f-5e6c2417f879/code-point
Metadata .xml files can be found at: http://www.ordnancesurvey.co.uk/oswebsite/xml/products/
Code-Point is only available as national cover of Great Britain and Northern Ireland. The product is supplied in two formats (CSV and GeoPackage) as an online download from the OS Data Hub. Alternatively, you can request a DVD of the product in CSV format only from OS Orders.
The GeoPackage format of the product is not available as a DVD supply option.
Updates are supplied quarterly (February, May, August and November) and provided as a complete resupply. Any postcode that is deleted between supplies will not be included.
Code-Point covers postcodes for Great Britain and Northern Ireland. In CSV format, postcodes are divided into postcode areas and supplied as 121 files. GeoPackage format is a self-contained database.
The approximate file sizes of the respective data formats are as follows:
CSV: 198MB
GeoPackage: 290MB
Code-Point is a data product and does not include software for analysis but can be used with a variety of programs. Code-Point can be loaded into a GIS (geographical information system) for display and analysis of the data. Consult your GIS documentation to establish actual system requirements.
Ordnance Survey measures the data in its products in one or more of the ways set out in the below.
Data measure | Definition | Sub-measure | Definition |
---|---|---|---|
* When testing the data according to the dataset specification against the ‘real world’ or reference dataset.
Completeness
Presence and absence of features against the specified data content1
Omission
Features representing objects that conform to the specified data content but are not present in the data.
Commission
Features representing objects that do not conform to the specified data content but are present in the data.
Logical consistency
Degree of adherence to logical rules of data structure, attribution and relationships
Conceptual consistency
How closely the data follows the conceptual rules (or model).
Domain consistency
How closely the data values in the dataset match the range of values in the dataset specification.
Format consistency
The physical structure (syntax): how closely the data stored and delivered fits the database schema and agreed supply formats.
Topological consistency
The explicit topological references between features (connectivity) – according to specification.
Positional accuracy
Accuracy of the position of features
Absolute accuracy
How closely the coordinates of a point in the dataset agree with the coordinates of the same point on the ground (in the British National Grid reference system).
Relative accuracy
Positional consistency of a data point or feature in relation to other local data points or features within the same or another reference dataset.
Geometric fidelity
The ‘trueness’ of features to the shapes and alignments of the objects they represent* .
Temporal accuracy
Accuracy of temporal attributes and temporal relationships of features
Temporal consistency
How well-ordered events are recorded in the dataset (life cycles).
Temporal validity (currency)
Validity of data with respect to time: the amount of real-world change that has been incorporated in the dataset that is scheduled for capture under current specifications.
Thematic accuracy (attribute accuracy)
Classification of features and their attributes
Classification correctness
How accurately the attributes within the dataset record the information about objects*.
This getting started guide provides instructions for using Code-Point in different software applications. Users with limited technical knowledge will be able to follow this guide.
Code-Point locates over 1.7 million postcode units for Great Britain and Northern Ireland, each having a notional geographical location. Postcodes are an alphanumeric abbreviated form of an address. Postcode units are unique references and identify an average of 15 addresses. In some cases, where an address receives a substantial amount of mail, a postcode will apply to only one address and is defined as a large-user postcode. The maximum number of addresses in a postcode is 100.
This getting started guide focuses on using the product in comma-separated values (CSV) format. For guidance on using the product in GeoPackage format, please see the Getting started with GeoPackage guide.
There are two folders in the root directory: Doc and Data. The Doc folder contains the following files:
CD_INFO.TXT – Note about the data on this DVD.
Codelist.xls – Lookup table of GSS Codes.
NHS_Codelist.xls – Lookup table of Health GSS Codes.
metadata.txt – Number of postcode units in each postcode area.
Readfirst.txt – Summary of copyright, licence and data format information.
DISCCARE.TXT – Contains information on the care of DVDs The Data folder contains the following sub-folder:
CSV: 121 Postcode area files in CSV format
There are two folders in the root directory: Doc and Data The Doc folder contains the following files:
Codelist.xls – Lookup table of GSS Codes.
metadata.txt – Number of postcode units in each postcode area.
NHS_Codelist.xls – Lookup table of Health GSS Codes.
Readfirst.txt – Summary of copyright, licence and data format information The Data folder contains the following file:
UK_CODEPOINT.gpkg – One postcode area file in GeoPackage format
The structure of Code-Point supplied in CSV is described in the product Technical specification included below.
The structure of Code-Point supplied in GeoPackage is described in the product Technical specification included below.
The header file, required for use with the CSV format, can be downloaded from the Code-Point Product page on the OS website.
This header file contains two rows of data:
Header codes
Header descriptive names
Glossary term | Definition |
---|---|
addressed premise
A permanent or non-permanent building structure with an address being a potential delivery point for Royal Mail. Examples of an addressed premise would be a house, a flat within a block of flats, a caravan site, a bollard to which several houseboats may be moored, or an organisation occupying the whole building.
building
A physical, walled structure connected to foundations that has, or will have, a roof. This definition includes buildings surveyed at foundation stage.
CPLC (Code-Point location coordinate)
A National Grid reference for each postcode unit. It is a two-dimensional coordinated point to a resolution of 1 metre. Coordinates are attributed from Gridlink using an accuracy hierarchy.
Country code
The code used by the Office of National Statistics to indicate the country in which the Code-Point georeference lies. This has replaced the PAF update date field.
Country Code
England E92000001 Scotland S92000003 Wales W92000004 N Ireland N92000002
Comma-separated values (CSV)
The CSV file format is commonly used to exchange data between different applications, for example, Microsoft Excel and Access. Being text files, CSV files can also be viewed in Notepad.
delivery point
A Royal Mail-defined point to which mail is delivered. This may be a property (private address), organisation, mailbox or even, very rarely, the name of an individual. These categories are derived from the Programmers’ Guide from Royal Mail. This is distinct from the addressed premise because there may be more than one organisation at an address.
Gridlink
Gridlink is the name given to a joined-up Government initiative involving Royal Mail, the Office for National Statistics, National Records of Scotland (NRS), Land & Property Services and Ordnance Survey. All these organisations are involved in the georeferencing of postcodes and the relating of postcodes to administrative and National Health Service areas and so on.
inward code or incode
See postcode.
matched address
An address, resulting from a match between the OS MasterMap Topography Layer data and PAF, which has been allocated a coordinate position. The match may be a result of either manual or automatic matching, the latter encompassing both full and ‘fuzzy logic’ matching.
National Grid reference (NGref)
The National Grid provides a unique reference system that can be applied to all Ordnance Survey maps of Great Britain. The map of Great Britain is covered by 100 km by 100 km grid squares, with the origin lying to the west of the Isles of Scilly. When a National Grid reference is quoted, the easting (left to right direction) is always given before the northing (upwards direction). A National Grid reference (to 1 metre) will identify the spatial position of the CPLC.
non-geographic postcodes
Special non-geographic postcodes are allocated to single organisations who receive an exceptionally large amount of mail. These are included in Code-Point Open.
outward code or outcode
See postcode.
Postcode Address File (PAF)
PAF now contains the postal addresses and postcodes of approximately 28 million delivery points in Great Britain.
Postal Address Location Feed (PALF)
The PAL Feed is provided to Ordnance Survey from GeoPlace, who have geocoded the PAF feed from Royal Mail, using source coordinates from Local Authorities in England, Wales & Scotland and Ordnance Survey.
positional quality indicator (PQI)
The positional quality indicator is a flag used to indicate the positional accuracy of the coordinates allocated to each postcode record. There are seven PQI values for the positional quality of CPLCs.
postal address
A postal address is a delivery point that is currently receiving mail. There may be many delivery points within an individual building structure as shown in OS MasterMap Topography Layer data.
postcode
An abbreviated form of address made up of combinations of between six and eight alphanumeric characters. A postcode may cover between 1 and 100 addresses. The average number of addresses per postcode is 15.
postcode area
An area given a unique alphabetic coding by Royal Mail to facilitate the delivering of mail. The area is identified by one or two alpha characters at the start of the full postcode, the letters being derived from a town, city or district falling within the postcode area. There are, at present, 120 postcode areas in Great Britain, for example, SO for Southampton, MK for Milton Keynes, B for Birmingham or W for London West. The postcode area code constitutes the first part of the outward code.
postcode district
A sub-area of the postcode area, specified by the character sub-string within the first half of a full postcode, which may be numeric, alphabetic or alphanumeric; for example, 42 from MK42 6GH or 1A from W1A 4WW. There are approximately 2 986 postcode districts in Great Britain. Note: There are certain non-geographic districts. In these instances, a district code is allocated to cover all large users in the postcode area.
postcode sector
A sub-area of a postcode district, whose area is identified by the number third from the end of a full postcode. There are approximately 11 200 postcode sectors in Great Britain. An example of a postcode sector code is 3, from GU12 3DH.
postcode unit
A sub-area of a postcode sector, indicated by the two letters of the inward postcode, which identifies one or more small-user postcode delivery points or an individual large-user postcode. There are approximately 1.7 million postcode units in the UK.