Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在将一些工作保存到 shapefile 时遇到问题。
我对我正在处理的区域进行了交叉点清理,完全按照本教程中的描述 ,它工作得非常好。
现在我想将交叉点的输出节点导出到 shapefile,以便在 Qgis 上进一步使用它。
我尝试了以下方法:
ox.save_graph_shapefile(G_proj, filename='network-shape17')
但是我只得到了清理之前的节点和边,而不是清理过的节点,我想拥有。
我希望有人可以帮助我将清理后的交点作为 shapefile。
正如您在文档中看到的那样,该clean_intersections函数返回已清理交点的 geopandas GeoSeries,而不是更改图形本身的拓扑(尽管请注意此PR会添加此类功能)。因此,您可以使用geopandas将返回的结果本地保存到磁盘。
clean_intersections