[osmosis-dev] Osmosis and retrieving relations+ways+nodes

Rudi Alberda rudi.alberda at knowlogy.nl
Tue Nov 23 09:16:10 GMT 2010


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]), 
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?

Thanks in advance,
Rudi

-- 
----------------------------------------------------------------------
Rudi Alberda                                                  Knowlogy
rudi.alberda at knowlogy.nl           Helperpark 290 C, 9723 ZA Groningen
Tel. +31 6 44168743                                    www.knowlogy.nl
----------------------------------------------------------------------




More information about the osmosis-dev mailing list