-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add networkx conversion from momepy street network? #80
Comments
This would certainly be useful. I would probably also be keen to replace networkx with cityseer as an engine for some of our functions internally.
I suppose so.
That doesn't matter much imho. GeoDataFrame is the primary structure so having I/O with that is probably better than going via Graph. cc @jGaboardi |
Added a Example added at momepy_to_cityseer.ipynb. |
How different is |
@martinfleis
I'm wondering about adding a conversion function for a
momepy
street networkGeoDataFrame
tocityseer
compatiblenetworkx
MultiGraph
.Here is an initial sketch of what this might look like: momepy_to_cityseer
This would mainly be intended for people who want to:
networkX
(e.g. shortest path sidestepping issue)momepy
) using the street network as a backboneI'm curious what your thoughts are on things to take into account so that this is useful, e.g.
momepy
GeoDataFrame
tocityseer
then back tomomepy
? If so, the edge ids would need to be chained through. The drawback to a round-trip is that network cleaning or decomposition can't be done without losing the association.GeoDataFrame
or would there be cases where it is better to go from amomepy
formattednetworkx
Graph
?There are probably other things but that's all that comes to mind for now...
The text was updated successfully, but these errors were encountered: