NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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


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.

permanent link

answered 05 Jul '18, 22:30

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×196
×165

question asked: 05 Jul '18, 19:27

question was seen: 1,185 times

last updated: 05 Jul '18, 22:30

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum