-->

subdividing edges based on a maximum length

2019-08-20 14:37发布

问题:

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.



标签: osmnx