add etldoc to layer_highway ( v2 )

This commit is contained in:
ImreSamu
2016-11-09 23:55:37 +01:00
parent 7a0ec0e40d
commit cafd338b1b
5 changed files with 4 additions and 47 deletions

21
gen_etl_graph_highway.sh Executable file
View File

@@ -0,0 +1,21 @@
DOT=highway.dot
echo "digraph G
{
rankdir=LR;
" > $DOT
cat ./layers/highway/mapping.yaml | grep "# etldoc:" | sed 's/# etldoc://g' >>$DOT
cat ./layers/highway/types.sql | grep "\-\- etldoc:" | sed 's/-- etldoc://g' >>$DOT
cat ./layers/highway/ne_global_roads.sql | grep "\-\- etldoc:" | sed 's/-- etldoc://g' >>$DOT
cat ./layers/highway/highway.sql | grep "\-\- etldoc:" | sed 's/-- etldoc://g' >>$DOT
echo "
}
" >> $DOT
cat $DOT
dot -Tpng $DOT > layer_highway_etl.png