From b85a2bf86527c8a69871b0117c0a1fcd0d23f5b6 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 10 Mar 2022 09:53:12 +0000 Subject: [PATCH] add sudo cmds --- etl/README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/etl/README.md b/etl/README.md index a451b26e..37bb13c0 100644 --- a/etl/README.md +++ b/etl/README.md @@ -54,17 +54,18 @@ If you didn't download the OS files to the Ubuntu machine where you are setting The scripts should be run in the following order: ```bash +cd ~/colouring-london/etl # extract both datasets -extract_addressbase.sh ./addressbase_dir -extract_mastermap.sh ./mastermap_dir +sudo ./extract_addressbase.sh ./addressbase_dir +sudo ./extract_mastermap.sh ./mastermap_dir # filter mastermap ('building' polygons and any others referenced by addressbase) -filter_transform_mastermap_for_loading.sh ./addressbase_dir ./mastermap_dir +sudo ./filter_transform_mastermap_for_loading.sh ./addressbase_dir ./mastermap_dir # load all building outlines -load_geometries.sh ./mastermap_dir +sudo ./load_geometries.sh ./mastermap_dir # index geometries (should be faster after loading) psql < ../migrations/002.index-geometries.sql # create a building record per outline -create_building_records.sh +sudo ./create_building_records.sh # add UPRNs where they match load_uprns.py ./addressbase_dir # index building records