subdividing edges based on a maximum length

无人久伴 提交于 2019-12-13 03:49:45

问题


Is there any way in osmnx or networkx to subdivide/resample/split street edges based on a maximum length?

I'm doing shortest path routing based on addresses, but my maps often don't have enough node resolution to put a node close enough to each address. Subdividing edges would allow me to insert more nodes.


回答1:


Check out this OSMnx PR which includes some discussion of subdividing edges into 50 meter chunks.

In particular, you can use OSMnx's redistribute_vertices function which borrows logic from this stackoverflow QA.



来源:https://stackoverflow.com/questions/55496889/subdividing-edges-based-on-a-maximum-length

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!