Hi,
I’m working on a routing tool with Valhalla for forestry truck routing in forests.
I got some external data in .shp-format with specific attributes related to forestry trucks and useable routes (f.e carrying capacity of a way and suitabilty for trucks) that just contains ways in forests.
Since I want to use Valhalla I figured that I have to integrate my data to the OSM data I’m using as base data in Valhalla.
My problem at the moment isn’t about converting .shp to .osm or .osm to .shp, rather its about how to correctly integrate external data into the hierachy of OSM data? Its just line features I want to add to existing road networks in the OSM data I use.
I was thinking to just connect the vertices of my external data with the OSM datas vertices but I dont think thats feasible in the end because its missing all the OSM-related attributes and structures, which are relevant both for general OSM data and the Valhalla routing engine.
As an example:
I got the orange polylines which show forestry ways via external data (some of them which are not mapped yet by OSM contributors) and the pink-ish polylines, which are just OSM track data. I think I can just use OSM data where its overlapping with the external data and add some custom attributes.
However, as you can see there are some areas with external data that are not part of OSM yet. Thats what I want to connect with the existing OSM data. I’m just not sure how to add extra data to the hierachy of OSM data so f.e. it keeps on using an existing way from my external data that was connected to the OSM data if theres no OSM data existing anymore.
Let me know if this question is better suited in the Valhalla GitLab Issues. I was just thinking that its more of a problem on how to join the datasets correctly rather than Valhalla-related.
Thanks in advance!
2 posts - 2 participants
Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/merging-external-shp-data-with-osm-osm-pbf-data-to-use-in-valhalla/103572