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 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. answered 09 Jan '18, 09:18 SomeoneElse ♦ 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 ♦
|