<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 5, 2018 at 7:56 PM, Aruna S <span dir="ltr"><<a href="mailto:safincrazy@gmail.com" target="_blank">safincrazy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Ramya!</div><div class="gmail_extra"><br></div><div class="gmail_extra">Hi, ok. So, do you have ideas around extracting the relations I've sent as an example (<a href="https://www.openstreetmap.org/edit#map=16/24.4812/79.8781" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)" target="_blank">https://www.openstreetmap.org<wbr>/edit#map=16/24.4812/79.8781</a>) - for example, if I wanted to extract all relations that make up the Sutlej river, would I have to manually find each each relation ID and use the above query, or is there a simpler way to extract all the relations and multipolygons that compose this river? </div></div></blockquote><div><br></div><div>Ideally, all riverbanks that are part of the river are also added into the relevant river relation, but i think this mapping is currently incomplete.</div><div><br></div><div>A programmatic way to try to do this in turf could be:</div><div><ul><li>Extract the way/centerline of the river needed</li><li>Convert the line into a polygon by creating a buffer around it (20m should work)</li><li>Find all water polygon/relations that intersect with the buffered centerlines</li></ul><div><br></div></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>______________________________<wbr>_________________<br>
Talk-in mailing list<br>
<a href="mailto:Talk-in@openstreetmap.org">Talk-in@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/talk-in" rel="noreferrer" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/talk-in</a><br>
<br></blockquote></div><br></div></div>