This is a known bug that was fixed some time ago.  It has left some bad index records - I need to run an index rebuild sometime to purge any remaining errors.<br><br>The bug was due to incorrect handling when a node in a way was moved but the way itself was not edited.  A subsequent change to the tags on the way would update one of the indexes incorrectly.<br>
<br><br><div class="gmail_quote">2008/7/10 Ulf Lamping <<a href="mailto:ulf.lamping@googlemail.com">ulf.lamping@googlemail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi!<br><br>I did some queries using the osmxapi which is usually working fine.<br><br>Howewer, with some queries the returned data in data.osm is not as I would expect it - for example the returned data doesn't contain the requested stuff at all, but some other data!<br>

<br><br>For example, I would read the query:<br><br><a href="http://osmxapi.hypercube.telascience.org/api/0.5/way%5Bamenity=wastewater_plant%5D" target="_blank">http://osmxapi.hypercube.telascience.org/api/0.5/way[amenity=wastewater_plant]</a><br>

<br>as: "Give me all ways (and the corresponding nodes), with the key amenity and the value wastewater_plant.<br><br>But it returns *no* amenity, but a single way (well, area with id='23063596') with man_made=wastewater_plant and the corresponding nodes.<br>

<br>When I'm doing a download in JOSM, I get the same data, so the OSM database seems consistent - only the returned set of data from osmxapi is not exactly what was asked for!<br><br><br>I've changed this way some days ago from amenity to man_made, so maybe the update mechanism of osmxapi of this way somehow went wrong?<br>

<br><br>This behaviour is "stable" and doesn't seem to disappear over the last couple of days. I've seen this problem at some other queries as well, e.g. a query that returned only a set of completely untagged nodes. AFAIK there is no relation involved here.<br>

<br><br>Any ideas what went wrong here and what to do against it? Or do I simply missunderstand something here?<br><br><br>Regards, ULFL<br><br>P.S: I've tried with both Firefox and wget, so this shouldn't be a browser cache issue or alike!<br>

<br>_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev" target="_blank">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev</a><br>
<br></blockquote></div><br>