Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions db/deploy/routing_functions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ BEGIN

CREATE INDEX gix_intersection_blade ON intersection USING GIST (blade);

RAISE NOTICE 'Intersections table created';
RAISE NOTICE 'Intersection table created';


-- Create the combination of lines to be split with all points to use for blades.
Expand All @@ -159,6 +159,7 @@ BEGIN
WHERE i.blade NOT IN (e.geom_start, e.geom_end)
GROUP BY e.id, e.osm_id, e.geom
;
RAISE NOTICE 'Blades created';

-- Split lines using blades. Assign new `seq` ID (legacy reasons, try to improve this...)
-- Splitting no longer uses snapping. OpenStreetMap edge data should be properly
Expand All @@ -181,6 +182,8 @@ BEGIN
, *
FROM splits
;
RAISE NOTICE 'Split edges created';


-------------------------------------------------------
-- Combine the Split edges with the un-split edges
Expand Down Expand Up @@ -213,7 +216,7 @@ BEGIN
FROM unsplit_lines
;

RAISE NOTICE 'Edge data in route_edges_output temp table. Persist the output to save it.';
RAISE NOTICE 'Edge data in route_edges_output temp table.';
-- Outputs: `route_edges_output` temp table.
END $$;

Expand Down Expand Up @@ -284,7 +287,7 @@ BEGIN
USING GIST (geom)
;

RAISE NOTICE 'Created table {schema_name}.routing_road_edge with edge data';
RAISE NOTICE 'Created table {schema_name}.routing_road_edge';


ALTER TABLE {schema_name}.routing_road_edge
Expand Down Expand Up @@ -365,6 +368,7 @@ BEGIN
AND e.vertex_id_target IS NULL
;

RAISE NOTICE 'Edge table updated with vertex source/target details.';

ANALYZE {schema_name}.routing_road_edge;
ANALYZE {schema_name}.routing_road_vertex;
Expand Down Expand Up @@ -504,6 +508,7 @@ BEGIN
AND e.vertex_id_target IS NULL
;

RAISE NOTICE 'Edge table updated with vertex source/target details.';

ANALYZE {schema_name}.routing_water_edge;
ANALYZE {schema_name}.routing_water_vertex;
Expand Down
Loading