How to edit a local pbf and update the source
Hello all,
I have a local OSRM server where I do some traffic simulations for studies, and I need to change some maxspeeds on the map.
What I am trying to do:
- Download a pbf from geofrabrik
- use osmosis to cut a small chunk where I want to edit
edit.
-
- edit the chunk with JOSM
JOSM And now I am stucked on how I merge the edits with the original pbf. I tried use osmosis to calculate diff, but if I use:
osmosis --read-xml file="sudeste-latest-osm_02.osm" --read-pbf file="sudeste-latest.osm.pbf" --derive-change --write-xml-change file="changeset.osc"
When I apply the diffs to the original "sudeste-latest" with:
osmosis --read-xml-change file="changeset.osc" --read-pbf file="sudeste-latest.osm.pbf" --apply-change --write-pbf file="sudeste-new.osm.pbf"
The output file contains only the chunk that I updated.
If I calculated the diffs with:
osmosis --read-pbf file="sudeste-latest.osm.pbf" --read-xml file="sudeste-latest-osm_02.osm" --derive-change --write-xml-change file="changeset.osc"
When I apply the osc, none of my changes was applied. What I'm doing wrong?
Thank you!