[OSM-dev] Osmosis exception

Stéphane Henriod s at henriod.info
Mon Sep 3 16:23:04 BST 2012


Stephan and Brett, thanks a lot for your advice! I somehow managed to get
it working now

Just a quick summary, for those who might encounter the same issues in the
future:

* Use the pre-compiled binaries rather than compiling the source code
* Configure Osmosis with *osmosis --read-replication-interval-init
workingDirectory=$WORKDIR_OSM*
* Create the state file with *wget
http://toolserver.org/~mazder/replicate-sequences/?2012-08-29T10:00:00Z -O
$WORKDIR_OSM/state.txt* (change the date according to when you have
imported the planet file)
* Modify the baseUrl in the configuration.txt file: *baseUrl=
http://planet.openstreetmap.org/redaction-period/minute-replicate*  (this
is only valid during the redaction period)
* Download the diff files with *osmosis --read-replication-interval
workingDirectory=$WORKDIR_OSM --simplify-change  --write-xml-change
$WORKDIR_OSM/changes.osc.gz*
* Update your postgresql database with *osm2pgsql --append --slim -d
database_name -U user_name –S path_to_style_file -H host -P port
$WORKDIR_OSM/changes.osc.gz*

Just one thing I am not sure about: should the state file be downloaded
before we download each diff file? Or only once, before the first diff
download?

Cheers,

Stéphane

--
"Le mot progrès n'aura aucun sens tant qu'il y aura des enfants malheureux"
-- Albert Einstein

"A journey does not need reasons. Before long, it proves to be reason
enough in itself. One thinks that one is going to make a journey, yet soon
it is the journey that makes or unmakes you." -- Nicolas Bouvier

Photos de voyages, photos de montagne: http://www.henriod.info



On Mon, Sep 3, 2012 at 2:56 PM, Stephan Knauss <osm at stephans-server.de>wrote:

> Stéphane Henriod writes:
>
>> This error message talks about a config file
>> $WORKDIR_OSM/configuration.txt
>> but I don't have any at this location... Should I create it myself? And
>> what should it contain?
>>
>
> have osmosis create it and edit it to match your state.txt.
> See the wiki:
> http://wiki.openstreetmap.org/**wiki/Osmosis/DetailedUsage#--**
> read-replication-<http://wiki.openstreetmap.org/wiki/Osmosis/DetailedUsage#--read-replication->
> interval-init_.28--rrii.29
> Stephan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20120903/2eca2723/attachment.html>


More information about the dev mailing list