This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Command for importing diffs with osm2pgsql

1

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

A

asked 22 Jan '14, 15:06

Fisherman12i's gravatar image

Fisherman12i
16222
accept rate: 0%


2 Answers:

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.

answered 22 Jan '14, 16:05

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
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

0

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


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

answered 22 Jan '14, 17:04

Fisherman12i's gravatar image

Fisherman12i
16222
accept rate: 0%

OSZAR »