This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Importing modified OSM elements on top of OSM database extract

0

I've got a dataset of custom ids / tags mapped to OSM way ids. I wish I could import them, but this currently not possible.

How can I add this data, which is in .osm format, to a osm pbf database export e.g. from Geofabrik?

If this is impossible and as I'm going to import the osm pbf file anyway: Can I "overwrite" features by doing a osm2psql import of custom data on top of a prior OSM import?

asked 05 Jul '18, 19:27

norcross's gravatar image

norcross
26335
accept rate: 0%

edited 05 Jul '18, 19:32


One Answer:

0

You could use the osmium program (C++) or osmosis (Java) to merge both files into one. Or you could use the --append mode of osm2pgsql to load your data after you've loaded the OSM data.

answered 05 Jul '18, 22:30

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .