[osmosis-dev] Osmosis and retrieving relations+ways+nodes
Brett Henderson
brett at bretth.com
Wed Nov 24 08:42:14 GMT 2010
Hi Rudi,
On Tue, Nov 23, 2010 at 8:16 PM, Rudi Alberda <rudi.alberda at knowlogy.nl>wrote:
> Hello everyone,
>
> 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:
> http://xapi.openstreetmap.org/api/0.6/relation[bbox=6.50,52.62,7.00,52.84]<http://xapi.openstreetmap.org/api/0.6/relation%5Bbbox=6.50,52.62,7.00,52.84%5D>),
> I get a list of all the relations that match the criteria, but also the ways
> and nodes that these relations reference.
>
> 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.
>
> Is there a way to accomplish this, or am I going about this the wrong way?
>
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.
But perhaps there is some trick I'm unaware of ...
Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20101124/83c1ff32/attachment.html>
More information about the osmosis-dev
mailing list