From 7c97aba9501781f5b63cfd573e484a3d5dc348a7 Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Wed, 30 May 2018 14:31:23 +0100 Subject: [PATCH] Script comments for OS data extract --- etl/extract_addressbase.py | 10 ++++++++++ etl/extract_mastermap.py | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 etl/extract_addressbase.py create mode 100644 etl/extract_mastermap.py diff --git a/etl/extract_addressbase.py b/etl/extract_addressbase.py new file mode 100644 index 00000000..63ce53eb --- /dev/null +++ b/etl/extract_addressbase.py @@ -0,0 +1,10 @@ +"""Extract address points from CSV in *.zip + +Relevant CSV columns:: +0 - UPRN +1 - TOID (may not match given version of OS MasterMap) +16 - OSGB Easting +17 - OSGB Northing +18 - Latitude +19 - Longitude +""" diff --git a/etl/extract_mastermap.py b/etl/extract_mastermap.py new file mode 100644 index 00000000..c9ac70de --- /dev/null +++ b/etl/extract_mastermap.py @@ -0,0 +1,7 @@ +"""Extract buildings from *.gml.gz + +Features where:: + descriptiveGroup = '(1:Building)' + +Use `fid` as source ID, aka TOID. +"""