<div class="gmail_quote">On Wed, Jun 24, 2009 at 1:40 PM, Frankie Roberto <span dir="ltr"><<a href="mailto:frankie@frankieroberto.com">frankie@frankieroberto.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Do relations solve the problem at all? If a track is part of a route relation, then could a renderer use that as a means of aggregating the tracks together?</blockquote>

<div> </div>
<div>My hunch is that relations probably don't actually help much, unless you could rely on them being done consistently and accurately.</div>
<div> </div>
<div>The way to do it would be to </div>
<div>1) break every way up into short sections, probably by identifying adjacent nodes and creating extra nodes where required on the fly</div>
<div>2) ignore short ways that have nodes in common with other ways (ie crossovers)</div>
<div>3) count up ways that are near-parallel and have closeby starts. </div>
<div> </div>
<div>That wouldn't be particularly quick, and might be prohibitively slow. It'd certainly be a bit fiddly to write, and not something for a beginner-renderer (unless they've got a decade of hacking databases behind them). It'd be a lot easier for the tagger to do, and then any renderer could use the information.</div>

<div> </div>
<div>Richard</div></div>