Hi Rudi,<br><br><div class="gmail_quote">On Tue, Nov 23, 2010 at 8:16 PM, Rudi Alberda <span dir="ltr"><<a href="mailto:rudi.alberda@knowlogy.nl">rudi.alberda@knowlogy.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello everyone,<br>
<br>
I'm wondering if it is possible to retrieve relations with osmosis in the same way as it can be done through the XAPI. When I query data through the XAPI, based on relations (for example: <a href="http://xapi.openstreetmap.org/api/0.6/relation%5Bbbox=6.50,52.62,7.00,52.84%5D" target="_blank">http://xapi.openstreetmap.org/api/0.6/relation[bbox=6.50,52.62,7.00,52.84]</a>), I get a list of all the relations that match the criteria, but also the ways and nodes that these relations reference.<br>
<br>
When I try to do the same with osmosis (using --tag-filter accept-relations), I only get the relations, but not the referenced ways/nodes. I could add a --tag-filter accept-ways (and nodes), but that would include all the ways/nodes, not just the ones that the relations reference, making the resulting dataset too large.<br>
<br>
Is there a way to accomplish this, or am I going about this the wrong way?<br></blockquote><div><br>I'm not aware of any way to do this because it requires random access to
the entire dataset, something Osmosis isn't ideally suited for. Osmosis is best suited to data processing tasks that be achieved in a single pass across the dataset.<br>
<br>
But perhaps there is some trick I'm unaware of ...<br><br>Brett<br></div></div><br>