Open anderslogg opened 2 months ago
Road networks need to be converted into Graphs for analysis. The most common package used to do this is NetworkX, but more recently, more efficient packages have emerged like iGraph. The current RoadNetwork object looks pretty complete to be able to do this but I have some enhancements below:
road_geometry : shapely.geometry.LineString
road_vertices : List[int]
RoadSegment
(like this) might be more suitable that goes on to form a RoadNetwork
(like this)?
Apart from network analysis, routing is another important use case. Car routing is pretty straightforward, but a nice feature for pedestrian routing is the ability to interact with a DEM to impute average inclination. Since the DTCC data model covers DEMs, I think it should be offered as a built-in method.water
and nature
or industrial
). While this might be more of a nice-to-have, I think it might be good to think about interactions between objects and if it can be made easier for the end user.RoadNetwork.to_graph()
.A popular library that leverages NetworkX is OSMnx. It interacts with GeoPandas GeoDataframes and NetworkX Graphs and has some convenient functions that allow users to perform network analysis. I think compatibility with the OSMnx package will make it so much easier for users to work with the street network.
In the unreal engine workflow we need to convert a RoadNetwork to a raster mask to return a Raster
object. Something like a .to_raster_mask()
. Steps below:
road_width/2
. cell_spacing
Autonomous vehicle simulations - OpenDRIVE standard
I guess it should be moved into the
Object
directory.