<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, 6 Jul 2016 at 12:34 Jochen Topf <<a href="mailto:jochen@remote.org">jochen@remote.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Di, Jul 05, 2016 at 11:26:50 +0000, Humphries, Grant wrote:<br>
> I have an OSM extract from which I am trying to use Osmosis to import into PostGIS only railways that are a part of a transit network that is defined by relations.  There is a super relation for this network and all of the ways that I need are members of that relation's child or grandchild relations.  Is there a way with Osmosis that I can name just the parent relation and get all of the child members as well?  In this case there are many children so it would be much more efficient if I could do this.<br>
<br>
Not sure about osmosis, but "osmium getid -r ..." does this.<br>
See <a href="http://osmcode.org/osmium/" rel="noreferrer" target="_blank">http://osmcode.org/osmium/</a><br>
and <a href="http://docs.osmcode.org/osmium/master/osmium-getid.html" rel="noreferrer" target="_blank">http://docs.osmcode.org/osmium/master/osmium-getid.html</a> .<br></blockquote><div><br></div><div>Nice!</div><div><br></div><div>I don't think Osmosis can do this.  It does have some recursive inclusion logic in the bounding-xxx tasks (completeWays and completeRelations options), but that can't be triggered by requesting a single relation by id.  And those options are very slow because they use temporary storage.</div><div><br></div></div></div>