On Thu, Jul 7, 2011 at 8:51 AM, Andrew Ayre <[email protected]> wrote:

> What happens if I use Osmosis to apply a set of changes that are older
> than the planet file to the planet file? Does Osmosis look at the
> timestamps and ignore them or does it create a mess?
>

In general the import process goes like this:

1. Grab a planet file. Note the date in the filename.
2. Import the planet into your database.
3. Run Osmosis "setup replication interval" task to create a workdir.
4. Look through planet.osm.org to find a minute or hourly replicate state
file that has a timestamp a few hours before the day of your planet file.
5. Download the state file into your workdir from step 3. Rename it to
"state.txt"
6. Start the replication task and wait for your database to catch up. The
state.txt file will contain a timestamp representing the freshness of your
database.

Osmosis (and osm2pgsql I'm sure) will not clobber existing data if it's
already there.


> Is it possible to get the timestamp of the planet file in any compressed
> format without decompressing?


Look at the file name.
_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev

Reply via email to