[osmosis-dev] applying diffs to the new planet
Brett Henderson
brett at bretth.com
Tue Sep 18 12:56:19 BST 2012
On 18 September 2012 21:46, Shaun McDonald <shaun at shaunmcdonald.me.uk>wrote:
>
> On 18 Sep 2012, at 12:39, Brett Henderson <brett at bretth.com> wrote:
>
> On 17 September 2012 02:57, Frederik Ramm <frederik at remote.org> wrote:
>
>> I didn't know that it works without a state file at all!
>>
>
> If no state file is available, it will initialise itself to the latest
> sequence. In other words, on first run it will download the latest state
> file and exit without making any changes.
>
>
> I'm thinking that this is a poor default, and a better default would be to
> use a state file for the current planet file, possibly going as far as
> adding a comment to state that if was auto generated, and include the
> previous plant date as an alternative.
>
It seemed like a good idea at the time :-)
I'm not keen on automatically setting it to planet timestamps. That would
require knowledge of the planet server layout, and assumes that the data is
being downloaded from the planet server. Currently the only URL required
is the URL of the replication files, and that is defined in the config file.
How about aborting with an error message stating that it can't run without
being initialised with a state file? That's a fail safe approach that
avoids silently missing data.
Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20120918/f61b27f3/attachment.html>
More information about the osmosis-dev
mailing list