From d72dd903519e154b5ae01a55dcd017ed3029a971 Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Sun, 21 Oct 2018 20:47:31 +0100 Subject: [PATCH] Comment sections in etl run script --- etl/run_all.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/etl/run_all.sh b/etl/run_all.sh index 7445e022..76cc9d00 100755 --- a/etl/run_all.sh +++ b/etl/run_all.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # -# Filter and transform for loading +# Extract, transform and load building outlines and property records # : ${1?"Usage: $0 ./path/to/addressbase/dir ./path/to/mastermap/dir ./path/to/boundary"} : ${2?"Usage: $0 ./path/to/addressbase/dir ./path/to/mastermap/dir ./path/to/boundary"} @@ -12,12 +12,20 @@ mastermap_dir=$2 boundary_file=$3 script_dir=${0%/*} +# +# Process +# + # extract both datasets $script_dir/extract_addressbase.sh $addressbase_dir $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 +# + # load all building outlines $script_dir/load_geometries.sh $mastermap_dir # index geometries (should be faster after loading)