【发布时间】:2021-05-21 16:32:45
【问题描述】:
我刚刚更新到更新版本的 OSMnx (0.16),我的一个脚本不再工作。
G = ox.graph_from_point(yx,
dist = 5000,
dist_type = 'bbox',
infrastructure = 'way["railway"]',
network_type = 'none',
custom_filter = '["service"!~"yard|siding"]["railway"~"%s"],
truncate_by_edge = True,
retain_all = True
)
这旨在拉动所有地铁,但不包括所有侧线。但是,infrastructure 参数在最新版本中不再可用。
显然,我需要将infrastructure 信息合并到自定义查询中,但是我不知道该怎么做。我不确定客户过滤器的正确语法应该是什么。
任何想法都会有很大帮助!
【问题讨论】:
标签: openstreetmap osmnx overpass-api