Skip to content

add from polygon method to OSMRoadNetwork#121

Merged
nreinicke merged 2 commits intomainfrom
ndr/osm_network_build_method
Dec 14, 2022
Merged

add from polygon method to OSMRoadNetwork#121
nreinicke merged 2 commits intomainfrom
ndr/osm_network_build_method

Conversation

@nreinicke
Copy link
Copy Markdown
Collaborator

In order to make building a new road network easier on the user, this adds a new from_polygon class method to the OSMRoadNetwork that uses osmnx and shapely on the backend to build a road network.

Copy link
Copy Markdown
Collaborator

@robfitzgerald robfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i love the idea of making it easier, even built-in, to build a road network. that said, i don't love the idea of osmnx being a required dependency. if you can set this up where osmnx (and shapely) are optional dependencies (at the build level) and we do a check at the script level for the existence of the osmnx package (and throw if missing), then i think that would be the right move.

osmnx is like a framework-sized dependency, and getting it installed alongside other dependencies is difficult. i feel the same way about geopandas. i think it would be great to not require either of these.

Comment thread nrel/hive/model/roadnetwork/osm/osm_builders.py
Comment thread nrel/hive/model/roadnetwork/roadnetwork.py
Copy link
Copy Markdown
Collaborator

@robfitzgerald robfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧈

@nreinicke nreinicke merged commit a0de4ec into main Dec 14, 2022
@nreinicke nreinicke deleted the ndr/osm_network_build_method branch December 14, 2022 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants