[OSM-dev] Planet File Sequence Number
Ian Dees
ian.dees at gmail.com
Thu Jul 7 14:58:10 BST 2011
On Thu, Jul 7, 2011 at 8:51 AM, Andrew Ayre <andy at britishideas.com> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20110707/3c97c2b7/attachment.html>
More information about the dev
mailing list