On Sat, Mar 15, 2008 at 1:43 AM, 80n <[EMAIL PROTECTED]> wrote:

>
> On Sat, Mar 15, 2008 at 12:46 AM, Jon Burgess <[EMAIL PROTECTED]>
> wrote:
>
> >
> > On Sat, 2008-03-15 at 00:30 +0000, 80n wrote:
> > > Lars
> > > Thanks for this info, its been very useful.
> > >
> > > Some edits, that were made during the period when the incremental
> > > feeds were down, have not been resynchronized correctly.
> > >
> > > The problem is due to a difference in the timestamp format between the
> > > planet dump and the incremental feeds.
> > >
> > > I'll fix the resync script and re-run it.
> > >
> > > 80n
> >
> > I thought they both used the same format:-
> >
> > $ gzip -dc /home/www/tile/direct/planet/planet-080312.osm.gz | grep
> > timestamp | head -n 3
> >  <node id="2" lat="50.1360074" lon="8.3023717"
> > timestamp="2007-10-04T18:28:37Z">
> >  <node id="4" lat="51.5220733" lon="-0.1458135"
> > timestamp="2007-01-29T08:48:14Z"/>
> >  <node id="11" lat="4.0840331" lon="73.5129514"
> > timestamp="2006-11-04T18:15:03Z">
> >
> > $ bzip2 -dc daily-20080307-20080308.osc.bz2 | grep timestamp | head -n 3
> >    <node id="122329" timestamp="2008-03-07T07:33:53Z" user="mbuege"
> > lat="53.5374636" lon="10.0309499"/>
> >    <node id="122330" timestamp="2008-03-07T07:43:48Z" user="mbuege"
> > lat="53.5369426" lon="10.0339214"/>
> >    <node id="122331" timestamp="2008-03-07T07:27:15Z" user="mbuege"
> > lat="53.5389492" lon="10.0325114"/>
> >
> > I can see the order of the attributes is different and the diffs contain
> > the user, but the timestamp looks the same format to me. Or do you mean
> > the timestamp in the filename?
> >
>
> Yeah, the problem is that there _used_ to be a difference, but now there
> isn't.  My script was expecting them to be different.
>

On further inspection, what I said above is complete rubbish.  The timestamp
format difference is between the the planet dump and the API not Osmosis:

Planet dump:
 <node id="2" lat="50.1360074" lon="8.3023717"
timestamp="2007-10-04T18:28:37Z">

API:
<node id="2" lat="50.1360074" lon="8.3023717"
timestamp="2007-10-04T19:28:37+01:00">

My code, which is pants, wrongly assumes that Osmosis was using a timestamp
like the API produces, when in fact its the same as the planet dump.

Maybe I'll be able to fix it properly now I know what I'm talking about.

80n







>
>
> >
> >        Jon
> >
> >
> >
>
_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk

Reply via email to