<div class="gmail_quote">On Thu, Aug 25, 2011 at 7:31 PM, Bryce Nesbitt <span dir="ltr"><<a href="mailto:bryce2@obviously.com">bryce2@obviously.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 08/25/2011 03:27 PM, Frederik Ramm wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Another problem which you don't seem to solve is the relationship of imported and already existing data; it seems that in your particular case you evaluated the situation by hand before importing. This is often one of the more complicated things to do with imports, and it is important to stress that even if you have your code right you still have to do this analysis. We must not give people the impression that importing was easy if only you have the right tool.<br>

</blockquote></div>
If the target data has a consistent key, the tool can prepare a preliminary diff.<br>
For example I used initial search:<br>
    node[radar_transponder=NEXRAD]<br>
    node[operator=City CarShare]<br>
<br>
Which brought in all the existing nodes to merge and compare. I was easily able to see what existing data needed preservation.<br>
<br>
At the initial import time the conflation key can be changed:<br>
    node[source=osmfetch:noaa:<u></u>nexrad]<br>
    node[source=osmfetch:ccs]<br>
<br>
Unfortunately xapi is pretty weak at search, as you can only specify one key.  But one can override the osmfetch class to have a programmatic filter.<br>
Some day maybe xapi will support rich search:<br>
<br>
        *[radar_transponder=NEXRAD][<u></u>operator=NOAA][country=us] |<br>
         [man_made=beacon][type=NEXRAD]<br>
<br>
And one can target a melange of hand mapped keys more readily.</blockquote><div><br></div><div>JXAPI allows one or more predicates of any sort (tag or bounding box/polygon). If I remember my code correctly they are all AND'd together (if you want OR use the | to do multiple values/keys per tag).</div>
</div>