Comment sections in etl run script

This commit is contained in:
Tom Russell 2018-10-21 20:47:31 +01:00
parent 2237cb8b35
commit d72dd90351

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/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"} : ${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"} : ${2?"Usage: $0 ./path/to/addressbase/dir ./path/to/mastermap/dir ./path/to/boundary"}
@ -12,12 +12,20 @@ mastermap_dir=$2
boundary_file=$3 boundary_file=$3
script_dir=${0%/*} script_dir=${0%/*}
#
# Process
#
# extract both datasets # extract both datasets
$script_dir/extract_addressbase.sh $addressbase_dir $script_dir/extract_addressbase.sh $addressbase_dir
$script_dir/extract_mastermap.sh $mastermap_dir $script_dir/extract_mastermap.sh $mastermap_dir
# filter mastermap ('building' polygons and any others referenced by addressbase) # filter mastermap ('building' polygons and any others referenced by addressbase)
$script_dir/filter_transform_mastermap_for_loading.sh $addressbase_dir $mastermap_dir $script_dir/filter_transform_mastermap_for_loading.sh $addressbase_dir $mastermap_dir
#
# Load
#
# load all building outlines # load all building outlines
$script_dir/load_geometries.sh $mastermap_dir $script_dir/load_geometries.sh $mastermap_dir
# index geometries (should be faster after loading) # index geometries (should be faster after loading)