Skip to content

Commit a1bdad6

Browse files
committed
Update view_ways_with_info.sql
1 parent bcc6b13 commit a1bdad6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

view_ways_with_info.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CREATE OR REPLACE VIEW routing.ways_with_info AS
66
SELECT ways.gid,
77
ways.source,
88
ways.target,
9-
ST_Length(ways.the_geom, true) length,
9+
st_length(ways.the_geom::geography, true) AS length,
1010
ways.the_geom,
1111
way_info.osm_id,
1212
way_info.public,
@@ -37,3 +37,5 @@ CREATE OR REPLACE VIEW routing.ways_with_info AS
3737

3838
ALTER TABLE routing.ways_with_info
3939
OWNER TO postgres;
40+
GRANT ALL ON TABLE routing.ways_with_info TO postgres;
41+
GRANT SELECT ON TABLE routing.ways_with_info TO readonly;

0 commit comments

Comments
 (0)