Skip to content

Transforms the Code-Point Open dataset of UK postcodes into a Register.

Notifications You must be signed in to change notification settings

register-dynamics/code-point-open-transformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code-Point Open Data Transformer

Code-Point Open is a dataset of UK postcodes. This script makes the dataset easier to use by denormalising it, concatenating the files, adding headers, and standardising some of the formatting.

Installation

Ensure you have Python 3.7+ installed on your machine.

pip3 install "git+https://github.com/timwis/code-point-open-transformer#egg=code-point-open-transformer"

Usage

Usage: codepointopen [OPTIONS] PACKAGE_DIR OUTPUT_DIR

  Improve usability of Code-Point Open data and link to lookup files

This script does the following:

  • For each set of regions in the "code list" files, outputs a .csv file to create a register from
  • Merges all the data files into code-point-open.csv
  • Converts all the linked values in the data files to CURIE format
  • Formats the postcode column with a single space between outward and inward parts
  • Adds a geometry column that is a space-separated combination of eastings and northings

About

Transforms the Code-Point Open dataset of UK postcodes into a Register.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published