如何在osmnx中导入多种基础架构类型?

如何在osmnx中导入多种基础架构类型?,第1张

如何在osmnx中导入多种基础架构类型?

将管道|用作立交or *** 作符,例如:

import osmnx as oxox.config(use_cache=True, log_console=True)place = 'Berkeley, California, USA'cf = '["highway"~"motorway|motorway_link"]'G = ox.graph_from_place(place, network_type='drive', custom_filter=cf)print(len(G)) #36cf = '["highway"~"primary"]'G = ox.graph_from_place(place, network_type='drive', custom_filter=cf)print(len(G)) #11cf = '["highway"~"motorway|motorway_link|primary"]'G = ox.graph_from_place(place, network_type='drive', custom_filter=cf)print(len(G)) #47


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5645468.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-16
下一篇2022-12-16

发表评论

登录后才能评论

评论列表(0条)

    保存