有没有办法保存在 OSMnx 中生成的等时线图?
Is there a way of saving the isochrone maps generated in OSMnx?
我想将等时线图的输出保存为 shapefile。
我正在按照此处的示例进行操作:
https://geoffboeing.com/2017/08/isochrone-maps-osmnx-python/
并尝试了这里的论点:
https://osmnx.readthedocs.io/en/stable/osmnx.html#module-osmnx
但是无法保存。
例如ox.save_load.save_graph_shapefile
我得到:
AttributeError: 'list' object has no attribute 'edges'
对于 ox.save_load.save_gdf_shapefile
,我得到:
AttributeError: 'list' object has no attribute 'edges'
以前有人做过吗?
你没有提供代码片段或 MWE,所以我会猜测你到目前为止做了什么,并提供如何继续的建议。在此列表中 this notebook, which it seems you're working off of, a list of polygon isochrones is generated. You can just create a geopandas geoseries 的单元格 8 中,然后将其作为 shapefile 保存到磁盘。
我想将等时线图的输出保存为 shapefile。
我正在按照此处的示例进行操作:
https://geoffboeing.com/2017/08/isochrone-maps-osmnx-python/
并尝试了这里的论点:
https://osmnx.readthedocs.io/en/stable/osmnx.html#module-osmnx
但是无法保存。
例如ox.save_load.save_graph_shapefile
我得到:
AttributeError: 'list' object has no attribute 'edges'
对于 ox.save_load.save_gdf_shapefile
,我得到:
AttributeError: 'list' object has no attribute 'edges'
以前有人做过吗?
你没有提供代码片段或 MWE,所以我会猜测你到目前为止做了什么,并提供如何继续的建议。在此列表中 this notebook, which it seems you're working off of, a list of polygon isochrones is generated. You can just create a geopandas geoseries 的单元格 8 中,然后将其作为 shapefile 保存到磁盘。