<div class="gmail_quote">On Sat, Jan 9, 2010 at 9:15 PM, Frederik Ramm <span dir="ltr"><<a href="mailto:frederik@remote.org">frederik@remote.org</a>></span> wrote:<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>
    consider this test case (run with 0.31.3):<br>
<br>
<osm version="0.6"><br>
   <node id="1" version="1" timestamp="2007-10-31T23:48:54Z" uid="1"<br>
user="fred" changeset="1" lat="53" lon="10"/><br>
   <node id="2" version="1" timestamp="2008-09-28T17:44:53Z" uid="1"<br>
user="fred" changeset="1" lat="54" lon="10" /><br>
   <node id="3" version="1" timestamp="2008-09-28T17:44:53Z" uid="1"<br>
user="fred" changeset="1" lat="55" lon="10" /><br>
   <relation id="1"  version="1" timestamp="2005-07-05T02:14:07Z"<br>
uid="1" user="fred" changeset="1"><br>
      <member type="node" role="" ref="1" /><br>
      <member type="node" role="" ref="2" /><br>
   </relation><br>
   <relation id="2"  version="1" timestamp="2005-07-05T02:14:07Z"<br>
uid="1" user="fred" changeset="1"><br>
      <member type="node" role="" ref="3" /><br>
   </relation><br>
</osm><br>
<br>
Cutting out from this a bbox that only contains node #1, such as<br>
<br>
osmosis --rx test.osm --bb left=1 right=90 top=53.5 bottom=52.5 --wx -<br>
<br>
one would expect to find in the output:<br>
<br>
* without extra flags: node #1, relation #1 referring to nodes #1,#2<br>
<br>
   --> pass<br>
<br>
* with clipIncompleteEntities: node #1, relation #1 refering to node #1<br>
<br>
   --> pass<br>
<br>
* with completeRelations: nodes #1,#2, relation #1 referring to both<br>
<br>
   --> fail; instead, you get node #1 only, but relations #1 and #2.<br>
<br>
It seems that completeRelations always acts as "copy all relations from<br>
input to output no matter what" and has no influence on handling nodes<br>
and ways. Re-writing the same example to use ways, and the trying it<br>
with completeWays=true, yields the expected result.<br>
<br>
The Wiki documentation on completeRelations says:<br>
<br>
"Include all available relations which are members of relations which<br>
have at least one member in the bounding polygon."<br>
<br>
This describes neither the behaviour I had expected, nor the behaviour I<br>
have observed. I believe the intended behaviour is really "Include all<br>
available *objects* ..."- no?<br></blockquote><div><br>My expectation is much the same as yours.  I have no idea what's going on there.  I'll check it out when I get time.  If you have the time to patch it to give you the expected behaviour I'd appreciate it.<br>
<br>Thanks for the detailed example, that should make it much easier to debug :-)<br><br>Brett<br></div></div><br>