Hello, I have downloaded osm.pbf file. Now I want to convert this pbg file into .osm inorder to import into psql. So I downloaded OSMOSIS and extracted. And now I don't have a clear idea how can I convert this? Please help me. Thanks

asked 09 Jan, 02:48

swiftDroid's gravatar image

accept rate: 0%

edited 10 Jan, 19:43

aseerel4c26's gravatar image

aseerel4c26 ♦

There are a number of different ways to import OSM data into a postgres database, depending on what you want to do with the data (rendering? routing? some sort of data analysis?). Generally speaking, you won't need to expand a .osm.pbf file into a .osm file to import it though - most tools I'd expect would understand pbf files.

If you're creating a rendering server, I'd suggest these instructions, and you won't need to unpack a PBF file to use them.

permanent link

answered 09 Jan, 09:18

SomeoneElse's gravatar image

SomeoneElse ♦
accept rate: 15%

Thanks for the answer. I want to do routing and now I am getting an error when try to import .osm data into PostgreSQL. This is what I get

Error opening /usr/share/osm2pgrouting/mapconfig.xml:No such file or directoryFailed to open / parse config file /usr/share/osm2pgrouting/mapconfig.xml Why is that?

(10 Jan, 03:36) swiftDroid

In order that someone who's familiar with osm2pgrouting (which wouldn't include me) could comment on your error I'd expect that you'd need to post details somewhere of how you got to that stage, not just that a particular file is missing. We don't know what versions of what software you've installed, or even what operating system you're running.

(10 Jan, 11:27) SomeoneElse ♦
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: 09 Jan, 02:48

question was seen: 369 times

last updated: 10 Jan, 19:43

powered by OSQA