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

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 '18, 02:48

swiftDroid's gravatar image

swiftDroid
21337
accept rate: 0%

edited 10 Jan '18, 19:43

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


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 '18, 09:18

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

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 '18, 03:36) swiftDroid
1

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 '18, 11:27) SomeoneElse ♦

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:

×252
×68
×60

question asked: 09 Jan '18, 02:48

question was seen: 10,697 times

last updated: 21 Oct '19, 13:26

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