Dear OpenStreetMap group of Switzerland,I have the following workflow in the mind:1. Finding shortest paths using Open Source Routing Machine in canton Bern using osm.pbf file of Switzerland.2. Now I would like to edit some of the roads as not passable (i.e. either access=no or maxspeed=0) for vehicle routing. Since I have the IDs of the roads, I will do this edit automatically in shapefile of the roads layer from openstreetmap.3. Using the edited shapefile of the roads, I would like to create again the switzerland.osm.pbf file. My question is, which software I should use to create osm.pbf file from edited shapefile or shapefiles? I hope to hear from you soon. Thank you, Tsolmon
I suppose this is not to actually edit Openstreetmap, but some kind of experiment or research?
I think you can possibly edit the data in a .pbf file using Osmium, it may involve coding. Regards, Yves
Le 29 janvier 2023 21:30:08 GMT+01:00, Tsolmongerel Orkhonselenge otsolmon@yahoo.com a écrit :
Dear OpenStreetMap group of Switzerland,I have the following workflow in the mind:1. Finding shortest paths using Open Source Routing Machine in canton Bern using osm.pbf file of Switzerland.2. Now I would like to edit some of the roads as not passable (i.e. either access=no or maxspeed=0) for vehicle routing. Since I have the IDs of the roads, I will do this edit automatically in shapefile of the roads layer from openstreetmap.3. Using the edited shapefile of the roads, I would like to create again the switzerland.osm.pbf file. My question is, which software I should use to create osm.pbf file from edited shapefile or shapefiles? I hope to hear from you soon. Thank you, Tsolmon
Hello,
Le 29.01.23 à 21:30, Tsolmongerel Orkhonselenge a écrit :
I would like to edit some of the roads as not passable (i.e. either access=no or maxspeed=0) for vehicle routing.
note that none of those tag doesn't describe a not-passable road for vehicle routing. I say this because this data could one day be useful to osm so we might as well use the right tags to facilitate reuse.
vehicle=no or motor_vehicle=no would be a less bad choice (but that describe a sign) if the way is impassable because it is too narrow, highway=path if it is because of the presence of holes/pebbles smoothness=very_horrible
which software I should use to create osm.pbf file from edited shapefile or shapefiles?
my answer may not be what you want, but I will do so: - upload it to osm, wait 1 minute and retrieve the diff and if you want to keep the edit private, create a diff (increse version number, copy previous tag and add your own - run any tool that can update a pbf from a diff for ex osmosis
Regards, Marc
Reminds me of the wrong usage of highway=footway. This is a VERY widespread issue, where people keep thinking that "small path with no vehicles allowed" = "footpath". Nope. It's just a path with no persmission for vehices. Otherwise it would need a blue signalisation for pedestrians.
Am Montag, 30. Januar 2023 um 19:35:33 MEZ hat Marc M. marc_marc_irc@hotmail.com Folgendes geschrieben:
Hello,
Le 29.01.23 à 21:30, Tsolmongerel Orkhonselenge a écrit :
I would like to edit some of the roads as not passable (i.e. either access=no or maxspeed=0) for vehicle routing.
note that none of those tag doesn't describe a not-passable road for vehicle routing. I say this because this data could one day be useful to osm so we might as well use the right tags to facilitate reuse.
vehicle=no or motor_vehicle=no would be a less bad choice (but that describe a sign) if the way is impassable because it is too narrow, highway=path if it is because of the presence of holes/pebbles smoothness=very_horrible
which software I should use to create osm.pbf file from edited shapefile or shapefiles?
my answer may not be what you want, but I will do so: - upload it to osm, wait 1 minute and retrieve the diff and if you want to keep the edit private, create a diff (increse version number, copy previous tag and add your own - run any tool that can update a pbf from a diff for ex osmosis
Regards, Marc _______________________________________________ talk-ch mailing list talk-ch@openstreetmap.ch http://lists.openstreetmap.ch/mailman/listinfo/talk-ch
Le 29.01.23 à 21:30, Tsolmongerel Orkhonselenge a écrit :
in canton Bern using osm.pbf file of Switzerland.
https://download.openstreetmap.fr/extracts/europe/switzerland/bern.osm.pbf this may help to reduce the size :)