Skip to content

Commit 6d43f55

Browse files
committed
Update view_ways_info.sql
1 parent a1bdad6 commit 6d43f55

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

view_ways_info.sql

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
-- View: ways_info
2-
-- This view contains additional business information for way lines in the network
1+
-- View: routing.way_info
32

4-
-- DROP VIEW ways_info;
3+
-- DROP VIEW routing.way_info;
54

5+
CREATE OR REPLACE VIEW routing.way_info AS
66
SELECT planet_osm_line.osm_id,
77
CASE
88
WHEN NOT (planet_osm_line.access = ANY (ARRAY['no'::text, 'private'::text, 'agriculture'::text, 'forestry'::text, 'dicouraged'::text])) THEN false
@@ -68,4 +68,9 @@
6868
planet_osm_line.incline,
6969
planet_osm_line.smoothness,
7070
planet_osm_line.sloped_curb
71-
FROM planet_osm_line;
71+
FROM osm.planet_osm_line;
72+
73+
ALTER TABLE routing.way_info
74+
OWNER TO osm;
75+
GRANT ALL ON TABLE routing.way_info TO osm;
76+
GRANT SELECT ON TABLE routing.way_info TO readonly;

0 commit comments

Comments
 (0)