Why not ask your question on the new OpenStreetMap Community Forum?

Hello i use osm2pgsql to import data into the tile server database,such as "osm2pgsql --slim -d gis -C 1600 --number-processes 3 mymap.osm.pbf. Now i want export data to osm or bpf file.

Any ideas?

Thanks a lot!

asked 22 Jul '17, 17:28

bz3616's gravatar image

accept rate: 0%

The osm2pgsql schema is not really suitable for a re-export to OSM format (xml or pbf) as depending on how you set things up (essentially you would have had to thought about this before the import and if you had, you wouldn't have used osm2pgsql) you will have lost the necessary information to recreate all objects as they where before the import.

In any case you WILL need to roll your own exporter for this (if you can actually live with the information loss).

permanent link

answered 22 Jul '17, 19:19

SimonPoole's gravatar image

SimonPoole ♦
accept rate: 18%

edited 22 Jul '17, 20:01

Frederik%20Ramm's gravatar image

Frederik Ramm ♦

Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 22 Jul '17, 17:28

question was seen: 1,946 times

last updated: 22 Jul '17, 20:01

powered by OSQA