subdividing edges based on a maximum length

2019-08-20 14:13发布

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.

标签: osmnx
1条回答
何必那么认真
2楼-- · 2019-08-20 15:00

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.

查看更多
登录 后发表回答