
This code takes a list of postcodes and outputs a pile of
shapefiles representing postcode regions.

For licensing read the file comments at the top, but basically:
  makeShape.py (BSD license)
  voronoi.py (derived from Bell Labs code)
  mapnik-postcodes.xml (PD, do with as you please)
  mangleNPEData.sh (PD, do with as you please)

Dependencies:
  python
  mapnik (with Projection python bindings)
  pyshapelib (and therefore shapelib)

To generate a map first get a list of postcodes with lon/lats.
Suggested sources:
   http://www.npemap.org.uk/
   http://www.freethepostcode.org/

Make the data into a suitable form for input into makeShape.py
See: 'python makeShape.py -h' for details.

(If you got your data from NPE maps site you can run it through
the mangleNPEData.sh script)

Run makeShape.py on your data. You will now have a pile of
postcode shapefiles in your directory.

You can then use mapnik, or any other tool of your choice, to
visualise the data. I used the generate_tiles script from OSM
to make google style tiles for overlay on a slippy map. The
mapnik-postcodes.xml mapnik map description file can be used
in conjunction with this.
