From a10e4bf5c6b19ea5e83ddcdeb7ba08528367780f Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Thu, 4 Oct 2018 19:01:40 +0100 Subject: [PATCH] Update run_all etl script --- etl/run_all.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etl/run_all.sh b/etl/run_all.sh index cef9aa9f..7445e022 100755 --- a/etl/run_all.sh +++ b/etl/run_all.sh @@ -14,13 +14,15 @@ script_dir=${0%/*} # extract both datasets $script_dir/extract_addressbase.sh $addressbase_dir -$script_dir/extract_mastermap.sh $mastermap_dir $boundary_file +$script_dir/extract_mastermap.sh $mastermap_dir # filter mastermap ('building' polygons and any others referenced by addressbase) $script_dir/filter_transform_mastermap_for_loading.sh $addressbase_dir $mastermap_dir + # load all building outlines $script_dir/load_geometries.sh $mastermap_dir # index geometries (should be faster after loading) psql < $script_dir/../migrations/002.index-geometries.up.sql +$script_dir/drop_outside_limit.sh $boundary_file # create a building record per outline $script_dir/create_building_records.sh # add UPRNs where they match