<div dir="ltr">On Tue, Aug 12, 2008 at 4:41 PM, Karl Newman <span dir="ltr"><<a href="mailto:siliconfiend@gmail.com">siliconfiend@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><div class="Ih2E3d">On Tue, Aug 12, 2008 at 6:50 AM, Jochen Topf <span dir="ltr"><<a href="mailto:jochen@remote.org" target="_blank">jochen@remote.org</a>></span> wrote:<br><div class="gmail_quote"><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>
When creating excerpts of OSM data with Osmosis, Osmosis will (depending<br>
on flags) chop of ways, i.e. the output will contain ways with only some<br>
of the nodes in the way. But looking at the XML there is no way to tell<br>
that this has happened. The way still has the same ID and timestamp.<br>
There should be a way of recognizing theses chopped of ways, say by<br>
adding an incomplete="true" attribute or something.<br>
<br>
This question came up on the German mailing list after somebody had used<br>
the excerpt as basis for some automated fixing of data. He (IMHO correctly)<br>
checked the Osmosis excerpt with current data from the API by comparing<br>
the timestamps which were the same. So he assumed nothing had changed<br>
and he could safely edit the data. But because of the excerpt process<br>
the data he based his decision on, was not correct.<br>
<br>
This is part of a larger problem. Say you create an extract with only<br>
some of the tags or a relation with only some members.<br>
<br>
Jochen<br>
<font color="#888888"></font></blockquote></div><br></div>How about osmosis:mangled=yes? Or what about touching the timestamp of the entity?<br></div></blockquote><div><br>I agree that some kind of attribute would be very useful to indicate that the data is not complete in this case.  However, I don't think it should be an osmosis specific one.  So mangled='yes' rather than osmosis:mangled='yes'.<br>
<br>There could well be other data sources that mangle data, and having to check all the different possible namespaces would be infeasible:<br><br>  osmosis:mangled='yes'<br>  osmxapi:truncated='1'<br>  someOtherSource:complete='no'<br>
  etc<br><br>The core osm xml schema needs a documented attribute that can be used to indicate that the data is incomplete.<br><br>This can be done immediately as there is no need for any changes to the API, by definition it currently always returns complete data.  However it would be nice if some future version of the API were to block any uploads that had a complete='no' attribute on any element.<br>
<br>(For the sake of clarity, I'm talking about an XML attribute here, not some additional <tag> entry like <tag k='osmosis:mangled' v='yes'/> which wouldn't help as it would just end up in someone's database :S ).<br>
<br>80n<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><br>Karl<br></div>
<br>_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
<br></blockquote></div><br></div>