[OSM-talk] Osmxapi returns old data

Lars Aronsson lars at aronsson.se
Fri Mar 14 20:39:48 GMT 2008


80n wrote:

> Lars
> Can you point to a couple of specific instances please so that I can
> investigate further?

If you try this very narrow region,

 wget 'http://www.informationfreeway.org/api/0.5/way[bbox=14.4,58.05,14.6,58.1][note=FIXME previously unwayed segment]' -O mymap.osm

You will get a 3280 bytes in mymap.osm, containing a few small 
untagged ways:

  <way id='8173415' timestamp='2005-06-23T02:14:27Z'>
  <way id='8173417' timestamp='2005-06-23T02:14:30Z'>
  <way id='8173419' timestamp='2005-06-23T02:15:30Z'>
  <way id='8212509' timestamp='2006-02-24T18:11:40Z'>
  <way id='8212516' timestamp='2006-02-24T18:12:58Z'>
  <way id='8212518' timestamp='2006-02-24T18:14:36Z'>
  <way id='8212522' timestamp='2006-02-24T18:14:41Z'>
  <way id='8212526' timestamp='2006-02-24T18:15:07Z'>

Swedes will know this area as the ruins of Brahehus, near lake 
Vättern and motorway E4.  I mapped this place with line segments 
in my first year of OSM, as shown by the timestamps above.  Then 
Osmarender was introduced and the need to tag ways, and then 
someone added "FIXME" tags to old line segments. So just two weeks 
ago I edited these ways, combining them into larger units, adding 
the appropriate tags and removing the "note=FIXME" tags.

When you open mymap.osm with JOSM, you will notice that all ways 
are 2 nodes (a single line segment) and they are not connected, 
but sprinkled out.  If you download fresh data from OSM (without 
changing the zoom), you will notice that all FIXME tags are gone, 
and the ways are larger connected units.

The last way in the list above, having id=8212526, still exists, 
but now is now a 4 node way (highway=motorway_link).  It was 
tagged "fixme" in the planet.osm dump of 080227, but not in 080305 
or 080312.

At first I thought that 2-node ways that I had removed were 
lingering in osmxapi, but that doesn't seem to be the case.  I 
guess the neighboring ways 8212523-8212525 were correctly removed.  
But the way that remained after my combination and tagging, 
8212526, apparently wasn't modified in osmxapi.



-- 
  Lars Aronsson (lars at aronsson.se)
  Aronsson Datateknik - http://aronsson.se




More information about the talk mailing list