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

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 '19, 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 '19, 00:38

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

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
×134
×11

question asked: 28 Jan '19, 20:41

question was seen: 1,884 times

last updated: 29 Jan '19, 00:38

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