I've just managed to compile & install the new openstreetmap-cgimap (issue).

But it needs a PostGIS database with apidb scheme. How can I import a .osm.pbf dump (or better: the coastline dump) into an apidb-compatible database?

The osmosis examples only explain how to export from a local PostgreSQL rails port database.

asked 28 Jan, 20:41

baerbock's gravatar image

baerbock
11112
accept rate: 0%


See https://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.47#--write-apidb_.28--wd.29 - also if you need to create the initial apidb schema, either you'll have to do a "rake db:migrate" in a local openstreetmap-website installation or you use one of the scripts in https://github.com/openstreetmap/osmosis/tree/master/package/script/contrib .

permanent link

answered 29 Jan, 00:38

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
70.0k806321096
accept rate: 24%

Your answer
toggle preview

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:

×216
×120
×11

question asked: 28 Jan, 20:41

question was seen: 398 times

last updated: 29 Jan, 00:38

powered by OSQA