add etldoc to layer_landuse

This commit is contained in:
ImreSamu
2016-11-10 02:12:39 +01:00
parent 9e27faf9e3
commit 5580f42458
3 changed files with 59 additions and 0 deletions

19
gen_etl_graph_landuse.sh Executable file
View File

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