[OSM-talk] API anomalies (was: Potlatch and merging ways)

Tom Hughes tom at compton.nu
Tue Jul 3 22:58:56 BST 2007


In message <4f89ccfc4e.tom at loxley.compton.nu>
          Tom Hughes <tom at compton.nu> wrote:

> In message <87oditb52l.fsf at julius-net.net>
>           Matthias Julius <lists at julius-net.net> wrote:
> 
> > I created a test way (4850696).  Then I checked its history.
> > 
> > This is the last way element of
> > http://www.openstreetmap.org/api/0.4/way/4850696/history
> > 
> > <way id="4850696" visible="true" timestamp="2007-07-03T21:06:09+01:00">
> >   <seg id="27418663"/>
> >   <seg id="27418720"/>
> >   <seg id="27418721"/>
> >   <seg id="27418722"/>
> >   <tag k="created_by" v="Potlatch alpha"/>
> > </way>
> > 
> > And this is from the output of
> > http://www.openstreetmap.org/api/0.4/way/4850696/
> > 
> > <way id="4850696" visible="true" timestamp="2007-07-03T21:06:09+01:00">
> >   <seg id="27418663"/>
> >   <tag k="created_by" v="Potlatch alpha"/>
> > </way>
> > 
> > Shouldn't that be the same?  How is that possible?
> 
> It's completely wrong. So that's yet more database corruption for me
> to try and cleanup...

The way does still reference those segments, but they refer to
deleted nodes so are not being included in the returned data.

It shouldn't have been possible to delete those nodes, and
the API wouldn't have allowed it, but I had noticed that they
were still appearing and had guessed that Potlatch was behind
it but I haven't tracked down the exact cause yet.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/




More information about the talk mailing list