Why not ask your question on the new OpenStreetMap Community Forum?

Does anyone have a sample/tutorial command call on how I can import diffs from planet osm using osm2pgsql?

I know you use the osm2pgsql -c --slim ...other stuff to import osm data to the database initially.
Do you use the -a (append) to import the diffs?

The help documents are rather sparse on this topic.

Thank you


asked 22 Jan '14, 15:06

Fisherman12i's gravatar image

accept rate: 0%

You can update your osm data using osm2pgsql by doing the following:

osm2pgsql --append [my customized arguments] changes.osc.gz

permanent link

answered 22 Jan '14, 17:04

Fisherman12i's gravatar image

accept rate: 0%

There's some info on this switch2osm page (go down to "updating") and also in the wiki here. The last time I set this up (with no prior experience) I was able to follow a combination of those two. That was on Ubuntu though - I've no idea if anyone's ever tried Windows.

permanent link

answered 22 Jan '14, 16:05

SomeoneElse's gravatar image

SomeoneElse ♦
accept rate: 16%

so when you pull the replication files say from here: http://planet.osm.ch/replication/. You would point to the state.txt file using osmosis?

(22 Jan '14, 16:21) Fisherman12i
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: 22 Jan '14, 15:06

question was seen: 9,049 times

last updated: 22 Jan '14, 17:04

powered by OSQA