TSR Housing Map By Tyron and Jacob
- Download Files
File | Link | Location |
---|---|---|
Vector Maps OS (GeoPackage) | www.ordnancesurvey.co.uk/business-government/products/vectormap-district | Extract to Read in ArcGIS |
ONS Postcode Directory | www.ordnancesurvey.co.uk/business-government/products/vectormap-district | Extract to Read in ArcGIS |
Price Paid Data (Downloaded Dec 2020) | https://www.gov.uk/government/statistical-data-sets/price-paid-data-downloads | data/pricing.csv |
MSOA Centroids | https://geoportal.statistics.gov.uk/datasets/b0a6d8a3dc5d4718b3fd62c548d60f81_0 | data/hexes.geojson |
Output Area Boundaries | https://geoportal.statistics.gov.uk/datasets/output-areas-december-2011-boundaries-ew-bgc-1 | data/Maps/OA.shp |
CPI/Wages | https://docs.google.com/spreadsheets/d/1wPqbpLXIHzRKJuseX67vxX1ABxcfoxG-QfNbKrMLXi0/edit#gid=0 | data/cpi.csv |
-
Run MSOA Postcode Table.py
-
Run Main.py
-
Run Data Maker.py
-
Run Hex Maker.py
-
In ARCGIS - Run Repair on the OA...and buildings if you have the memory (I don't). Then run intersect. Put these in the maps folder
-
Run these commands
mapshaper OA_2.shp -o oa.geojson mapshaper-xl 16gb Intersect.shp -proj wgs84 -o intersect.geojson precision=0.0000001
-
Run these commands
tippecanoe --output=oa.mbtiles --coalesce-smallest-as-needed --coalesce-densest-as-needed --coalesce-fraction-as-needed --simplify-only-low-zooms --no-feature-limit --no-tile-size-limit --detect-shared-borders oa.geojson
tippecanoe --output=intersect.mbtiles --coalesce-smallest-as-needed --coalesce-densest-as-needed --coalesce-fraction-as-needed --simplify-only-low-zooms --no-feature-limit --no-tile-size-limit --detect-shared-borders intersect.geojson
tippecanoe --output=hexes.mbtiles --coalesce-smallest-as-needed --coalesce-densest-as-needed --coalesce-fraction-as-needed --simplify-only-low-zooms --no-feature-limit --no-tile-size-limit --detect-shared-borders hexes.geojson
-
Run these commands on backend
ssh [email protected]
docker run -it -v $(pwd):/data -p 8080:80 klokantech/tileserver-gl --silent -c config.json python3 -m http.server (if you're testing)