example graphviz based ETL graph

This commit is contained in:
ImreSamu
2016-11-07 15:37:17 +01:00
parent 1b4b6be3fe
commit 29d33dff3c
5 changed files with 111 additions and 1 deletions

View File

@@ -1,21 +1,43 @@
# etldoc: imposm3 [fillcolor=yellow, style="rounded,filled", shape=diamond ];
# etldoc: osm [fillcolor=lightblue,
# etldoc: style="rounded,filled",
# etldoc: shape=box , label="OpenStreetMap",
# etldoc: url="http://www.openstreetmap.org"];
# etldoc: mapping_yml[label="mapping.yml", shape=note ]
# etldoc: mapping_yml -> imposm3
# etldoc: osm -> imposm3
generalized_tables:
# etldoc: imposm3 -> osm_highway_linestring_gen4
highway_linestring_gen4:
source: highway_linestring_gen3
sql_filter: highway IN ('motorway','trunk') AND NOT is_area
tolerance: 200.0
# etldoc: imposm3 -> osm_highway_linestring_gen3
highway_linestring_gen3:
source: highway_linestring_gen2
sql_filter: highway IN ('motorway','trunk', 'primary') AND NOT is_area
tolerance: 120.0
# etldoc: imposm3 -> osm_highway_linestring_gen2
highway_linestring_gen2:
source: highway_linestring_gen1
sql_filter: highway IN ('motorway','trunk', 'primary', 'secondary') AND NOT is_area
tolerance: 50.0
# etldoc: imposm3 -> osm_highway_linestring_gen1
highway_linestring_gen1:
source: highway_linestring
sql_filter: highway IN ('motorway','trunk', 'primary', 'secondary', 'tertiary') AND NOT is_area
tolerance: 20.0
tables:
# etldoc: imposm3 -> osm_highway_linestring
highway_linestring:
type: linestring
fields:
@@ -85,6 +107,8 @@ tables:
- corridor
- crossing
- pedestrian
# etldoc: imposm3 -> osm_highway_polygon
highway_polygon:
type: polygon
fields: