remove sh/gen_*.sh - later I will move this to a separate tool

This commit is contained in:
ImreSamu 2016-11-11 20:21:43 +01:00
parent c1c811a115
commit 5c1e9a2f58
2 changed files with 0 additions and 68 deletions

View File

@ -1,23 +0,0 @@
# Work in progress ...
#
# generate ETL graph from all layers
# start from the root :
# ./sh/gen_doc.sh
#
# outut -> ./doc/
mkdir -p ./doc/
rm -f ./doc/*
for f in ./layers/*
do
echo "Processing : $f"
layer_id=$(echo "$f" | rev | cut -d"/" -f1 | rev )
echo "layer_id = $layer_id"
./sh/gen_etl_graph.sh $layer_id
done

View File

@ -1,45 +0,0 @@
# Work in progress ...
#
# generate ETL graph from a single layer
# start from the root
# parameter1: "layer name"
# ./sh/gen_etl_graph.sh waterway
#
# outut -> ./doc/
ID=$1
## ID=waterway
mkdir -p ./doc
layer_dir=./layers/${ID}/
DOT=./doc/dot_${ID}.dot
echo "digraph G
{
rankdir=LR;
" > $DOT
if [ -f ${layer_dir}/mapping.yaml ]; then
echo "processing imposm3 mapping file ${layer_dir}/mapping.yaml "
cat ${layer_dir}/mapping.yaml | grep "# etldoc:" | sed 's/# etldoc://g' >>$DOT
fi
for f in ${layer_dir}*.sql
do
echo "Processing : $f"
cat $f | grep "\-\- etldoc:" | sed 's/-- etldoc://g' >>$DOT
done
echo "
}
" >> $DOT
##cat $DOT
dot -Tpng $DOT > ./doc/etl_layer_${ID}.png
dot -Tsvg $DOT > ./doc/etl_layer_${ID}.svg