<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>Harald,</div><div><br></div><div>      That's great info and very helpful. </div><div><br></div><div>Thanks, </div><div>Bernie. </div><div><br></div><div><br></div><div><div style="font-size:9px;color:#575757">Sent from Samsung Mobile</div></div><br><br>-------- Original message --------<br>From: Harald Kliems <kliems@gmail.com> <br>Date:12/03/2013  7:04 PM  (GMT-04:00) <br>To: berniejconnors <berniejconnors@gmail.com> <br>Cc: talk-ca@openstreetmap.org <br>Subject: Re: [Talk-ca] Problem with overpasses in NB?? <br><br><div dir="ltr">Okay, so I've done some digging. Unfortunately, the Overpass API does not have a function to identify intersecting ways with a shared node. The only way to find those would be do do an Overpass query for all the bridges and then use javascript to identify the ways that share nodes. I lack the skills to do the latter. <div>
<br></div><div>Identifying bridges which lack the layer tag, however, is easy: <a href="http://overpass-turbo.eu/s/1FZ">http://overpass-turbo.eu/s/1FZ</a></div><div><br></div><div>Once all the missing layer tags will have been added, we can then use keepright's (<a href="http://keepright.ipax.at/">http://keepright.ipax.at/</a>) layer conflicts function. Based on the description of that function it actually seems like it should already be able to find the problematic junctions:</div>
<div><br></div><div>"<span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">Connected ways should be on the same layer. Crossings on intermediate nodes of ways on different layers are obviously wrong. Junctions on end-nodes of ways on different layers are also deprecated, but common practice. So you may ignore this part of the check and switch them off separately. Please note that bridges are set to layer +1, and tunnels to -1, anything else to layer 0 implicitly if no layer tag is present."</span></div>
<div><font color="#000000" face="Times New Roman" size="3"><br></font></div><div><font color="#000000" face="Times New Roman" size="3"> Harald.<br></font><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 9:21 AM, berniejconnors <span dir="ltr"><<a href="mailto:berniejconnors@gmail.com" target="_blank">berniejconnors@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div>Here is another sample of the problem since Richard corrected my other example ;-)</div>
<div><br></div><div><span style="font-family:Calibri,sans-serif;font-size:15px"><a href="http://osm.org/go/cgOZhazjT?m" style="color:blue;text-decoration:underline" target="_blank">http://osm.org/go/cgOZhazjT?m</a>=</span></div>
<div><span style="font-family:Calibri,sans-serif;font-size:15px"><br></span></div><div><span style="font-family:Calibri,sans-serif;font-size:15px">As I see it there are 2 problems with these bridges:</span></div><div><span style="font-family:Calibri,sans-serif;font-size:15px">1) they intersect with the roads that pass beneath them</span></div>
<div><span style="font-family:Calibri,sans-serif;font-size:15px">2) the layer value is not set so the default value of layer=0 (ground) is assumed. Typically a bridge should have layer=1.</span></div><div><span style="font-family:Calibri,sans-serif;font-size:15px"><br>
</span></div><div><span style="font-family:Calibri,sans-serif;font-size:15px">I would like to have an overpass api query that selects bridges that meet either of these conditions.</span></div><div><span style="font-family:Calibri,sans-serif;font-size:15px"><br>
</span></div><div><span style="font-family:Calibri,sans-serif;font-size:15px">Thanks,</span></div><div><span style="font-family:Calibri,sans-serif;font-size:15px">Bernie. </span></div></div><div><br></div><div><br></div><div>
<div style="font-size:9px;color:rgb(87,87,87)">Sent from Samsung Mobile</div></div></div><br>_______________________________________________<br>
Talk-ca mailing list<br>
<a href="mailto:Talk-ca@openstreetmap.org">Talk-ca@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/talk-ca" target="_blank">https://lists.openstreetmap.org/listinfo/talk-ca</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Please use encrypted communication whenever possible!<br>Key-ID: 0x34cb93972f186565
</div></div></div>
</body>