[英]Creation and visualization of isochrones in the road network from the police station in intervals: 2,5,10,15 min, if the speed of movement is 40km/h
这是我为间隔 2 分钟创建的代码
select ways.the_geom from
(WITH distance_query AS (
SELECT *,
(length / 1000) / (30 / 3600) AS time_in_seconds
FROM ways
)
SELECT * FROM
pgr_drivingDistance('SELECT gid as id,
source, target,
cost FROM ways',
2338,
120)) as route
left outer join ways ways
on ways.gid = route.edge
问题是,当我将秒数(间隔)从 120 更改为 300 时,我总是得到相同的结果,如果有人能帮助我,我将不胜感激!
查询正在寻找点,但在边上加入。
将加入条件改为on ways.gid = route.node
问题未解决?试试以下方法:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.