NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the 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

bz3616
1223
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 ♦
44.7k13326701
accept rate: 18%

edited 22 Jul '17, 20:01

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273

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:

×263
×252

question asked: 22 Jul '17, 17:28

question was seen: 2,270 times

last updated: 22 Jul '17, 20:01

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