diff --git a/layers/transportation/etl_diagram.png b/layers/transportation/etl_diagram.png index 2593ca3..6fd3c88 100644 Binary files a/layers/transportation/etl_diagram.png and b/layers/transportation/etl_diagram.png differ diff --git a/layers/transportation/layer.sql b/layers/transportation/layer.sql index 9da7f96..d74ad55 100644 --- a/layers/transportation/layer.sql +++ b/layers/transportation/layer.sql @@ -4,7 +4,7 @@ $$ LANGUAGE SQL IMMUTABLE STRICT; -- etldoc: layer_transportation[shape=record fillcolor=lightpink, style="rounded,filled", --- etldoc: label=" layer_transportation | z4 | z5-z6 | z7 | z8 | z9-z10 | z11 | z12| z13| z14+" ] ; +-- etldoc: label=" layer_transportation | z4 | z5 | z6 | z7 | z8 | z9-z10 | z11 | z12| z13| z14+" ] ; CREATE OR REPLACE FUNCTION layer_transportation(bbox geometry, zoom_level int) RETURNS TABLE(osm_id bigint, geometry geometry, class text, ramp int, oneway int, brunnel TEXT, service TEXT) AS $$ SELECT diff --git a/layers/transportation/merge_highways.sql b/layers/transportation/merge_highways.sql index 138320c..3dd1a4f 100644 --- a/layers/transportation/merge_highways.sql +++ b/layers/transportation/merge_highways.sql @@ -15,8 +15,6 @@ DROP TRIGGER IF EXISTS trigger_refresh ON transportation.updates; -- Because this works well for roads that do not have relations as well --- etldoc: osm_highway_linestring -> osm_transportation_merge_linestring - -- Improve performance of the sql in transportation_name/network_type.sql CREATE INDEX IF NOT EXISTS osm_highway_linestring_highway_idx ON osm_highway_linestring(highway); @@ -26,6 +24,7 @@ CREATE INDEX IF NOT EXISTS osm_highway_linestring_highway_partial_idx ON osm_highway_linestring(highway) WHERE highway IN ('motorway','trunk', 'primary'); + -- etldoc: osm_highway_linestring -> osm_transportation_merge_linestring CREATE MATERIALIZED VIEW osm_transportation_merge_linestring AS ( SELECT (ST_Dump(geometry)).geom AS geometry, diff --git a/layers/transportation_name/etl_diagram.png b/layers/transportation_name/etl_diagram.png index 79a5650..91c2d99 100644 Binary files a/layers/transportation_name/etl_diagram.png and b/layers/transportation_name/etl_diagram.png differ