Re: [Talk-ca] Problem with overpasses in NB??

2013-12-03 Thread Harald Kliems
Yeah, I've been looking into that. I'm no Overpass pro either, though, but
should be able to come up with something. Bug me again in a couple days if
I don't :-)

 Harald.




On Mon, Dec 2, 2013 at 9:07 PM, Connors, Bernie (SNB) bernie.conn...@snb.ca
 wrote:

 Richard,

   What I would like to do is run a query with the Overpass API that
 would identify the locations of this error so we can all judge how large an
 issue this is.  Unfortunately I have never written an Overpass API query
 and I would like some assistance.  Recently this query (
 http://goo.gl/AYJ0Nt) that identifies errors in Motorway links was shared
 on Talk-CA and I modified the bounding box to run it against New Brunswick.
  Can somebody help me out with a query that identifies unnecessary
 intersections in bridges?

 TIA,
 Bernie.
 --
 Bernie Connors, P.Eng
 New maryland, NB
 bernie.conn...@unb.ca
 
 From: Richard Weait [rich...@weait.com]
 Sent: December 2, 2013 4:50 PM
 To: Connors, Bernie (SNB)
 Cc: Talk-CA OpenStreetMap
 Subject: Re: [Talk-ca] Problem with overpasses in NB??

 On Mon, Dec 2, 2013 at 1:24 PM, Connors, Bernie (SNB)
 bernie.conn...@snb.ca wrote:
  Here is an example - http://osm.org/go/cgZ854R_8--
 
  The problem is that there is an intersection node between
  McKinnon Road and Route 8 but there is an overpass bridge at this
 location.

 That does look like an error, I've fixed that one.  The history on the
 involved objects is short, and suggests that it is an import.  Do you
 want to contact the mapper and ask about the matter?
 ___
 Talk-ca mailing list
 Talk-ca@openstreetmap.org
 https://lists.openstreetmap.org/listinfo/talk-ca




-- 
Please use encrypted communication whenever possible!
Key-ID: 0x34cb93972f186565
___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Problem with overpasses in NB??

2013-12-03 Thread berniejconnors
Here is another sample of the problem since Richard corrected my other example 
;-)

http://osm.org/go/cgOZhazjT?m=

As I see it there are 2 problems with these bridges:
1) they intersect with the roads that pass beneath them
2) the layer value is not set so the default value of layer=0 (ground) is 
assumed. Typically a bridge should have layer=1.

I would like to have an overpass api query that selects bridges that meet 
either of these conditions.

Thanks,
Bernie. 


Sent from Samsung Mobile___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Problem with overpasses in NB??

2013-12-03 Thread Tom Taylor
I think I saw an instance of the same problem when adding road names in 
Quebec Province recently.


Tom Taylor

On 03/12/2013 9:21 AM, berniejconnors wrote:

Here is another sample of the problem since Richard corrected my other example 
;-)

http://osm.org/go/cgOZhazjT?m=

As I see it there are 2 problems with these bridges:
1) they intersect with the roads that pass beneath them
2) the layer value is not set so the default value of layer=0 (ground) is 
assumed. Typically a bridge should have layer=1.

I would like to have an overpass api query that selects bridges that meet 
either of these conditions.

Thanks,
Bernie.


Sent from Samsung Mobile



___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca



___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Problem with overpasses in NB??

2013-12-03 Thread Harald Kliems
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.

Identifying bridges which lack the layer tag, however, is easy:
http://overpass-turbo.eu/s/1FZ

Once all the missing layer tags will have been added, we can then use
keepright's (http://keepright.ipax.at/) layer conflicts function. Based on
the description of that function it actually seems like it should already
be able to find the problematic junctions:

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.

 Harald.


On Tue, Dec 3, 2013 at 9:21 AM, berniejconnors berniejconn...@gmail.comwrote:

 Here is another sample of the problem since Richard corrected my other
 example ;-)

 http://osm.org/go/cgOZhazjT?m=

 As I see it there are 2 problems with these bridges:
 1) they intersect with the roads that pass beneath them
 2) the layer value is not set so the default value of layer=0 (ground) is
 assumed. Typically a bridge should have layer=1.

 I would like to have an overpass api query that selects bridges that meet
 either of these conditions.

 Thanks,
 Bernie.


 Sent from Samsung Mobile

 ___
 Talk-ca mailing list
 Talk-ca@openstreetmap.org
 https://lists.openstreetmap.org/listinfo/talk-ca




-- 
Please use encrypted communication whenever possible!
Key-ID: 0x34cb93972f186565
___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Problem with overpasses in NB??

2013-12-03 Thread berniejconnors
Harald,

      That's great info and very helpful. 

Thanks, 
Bernie. 


Sent from Samsung Mobile

 Original message 
From: Harald Kliems kli...@gmail.com 
Date:12/03/2013  7:04 PM  (GMT-04:00) 
To: berniejconnors berniejconn...@gmail.com 
Cc: talk-ca@openstreetmap.org 
Subject: Re: [Talk-ca] Problem with overpasses in NB?? 

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. 

Identifying bridges which lack the layer tag, however, is easy: 
http://overpass-turbo.eu/s/1FZ

Once all the missing layer tags will have been added, we can then use 
keepright's (http://keepright.ipax.at/) layer conflicts function. Based on the 
description of that function it actually seems like it should already be able 
to find the problematic junctions:

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.

 Harald.


On Tue, Dec 3, 2013 at 9:21 AM, berniejconnors berniejconn...@gmail.com wrote:
Here is another sample of the problem since Richard corrected my other example 
;-)

http://osm.org/go/cgOZhazjT?m=

As I see it there are 2 problems with these bridges:
1) they intersect with the roads that pass beneath them
2) the layer value is not set so the default value of layer=0 (ground) is 
assumed. Typically a bridge should have layer=1.

I would like to have an overpass api query that selects bridges that meet 
either of these conditions.

Thanks,
Bernie. 


Sent from Samsung Mobile

___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca




-- 
Please use encrypted communication whenever possible!
Key-ID: 0x34cb93972f186565___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca


[Talk-ca] Problem with overpasses in NB??

2013-12-02 Thread Connors, Bernie (SNB)
Here is an example - http://osm.org/go/cgZ854R_8--

The problem is that there is an intersection node between 
McKinnon Road and Route 8 but there is an overpass bridge at this location.  I 
presume there is not supposed to be an intersection  where roads cross at a 
bridge.  In Potlatch2 both ways are at the default layer=ground - one way needs 
to be adjusted to indicate the grade separation.  I noticed this at several 
other locations and made the corrections.  But I am wondering if this problem 
originates with the Canvec data or if a mapper has created these intersections? 
 Can somebody provide some additional insight?  Is this also a problem in other 
provinces?

Thanks,
Bernie.
--
Bernie Connors
New Maryland, NB
bernie.conn...@unb.ca

___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Problem with overpasses in NB??

2013-12-02 Thread Richard Weait
On Mon, Dec 2, 2013 at 1:24 PM, Connors, Bernie (SNB)
bernie.conn...@snb.ca wrote:
 Here is an example - http://osm.org/go/cgZ854R_8--

 The problem is that there is an intersection node between
 McKinnon Road and Route 8 but there is an overpass bridge at this location.

That does look like an error, I've fixed that one.  The history on the
involved objects is short, and suggests that it is an import.  Do you
want to contact the mapper and ask about the matter?

___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Problem with overpasses in NB??

2013-12-02 Thread Daniel Begin
Provinces provide roads to NRCan that simply package it for GeoBase and
Canvec. I might be wrong but I am on the impression that some provinces (not
all) create vertices at intersections (2D) and do not consider the elevation
(3D). When converting to OSM, duplicated vertices (one on each road) are
merged in one node.

That might explain what you found
Same thing for double spaces in name

Daniel

-Original Message-
From: Richard Weait [mailto:rich...@weait.com] 
Sent: December-02-13 15:51
To: Connors, Bernie (SNB)
Cc: Talk-CA OpenStreetMap
Subject: Re: [Talk-ca] Problem with overpasses in NB??

On Mon, Dec 2, 2013 at 1:24 PM, Connors, Bernie (SNB)
bernie.conn...@snb.ca wrote:
 Here is an example - http://osm.org/go/cgZ854R_8--

 The problem is that there is an intersection node 
 between McKinnon Road and Route 8 but there is an overpass bridge at this
location.

That does look like an error, I've fixed that one.  The history on the
involved objects is short, and suggests that it is an import.  Do you want
to contact the mapper and ask about the matter?

___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca


___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Problem with overpasses in NB??

2013-12-02 Thread Paul Norman
 From: Daniel Begin [mailto:jfd...@hotmail.com]
 Sent: Monday, December 02, 2013 1:34 PM
 To: 'Richard Weait'; 'Connors, Bernie (SNB)'
 Cc: 'Talk-CA OpenStreetMap'
 Subject: Re: [Talk-ca] Problem with overpasses in NB??
 
 Provinces provide roads to NRCan that simply package it for GeoBase and
 Canvec. I might be wrong but I am on the impression that some provinces
 (not all) create vertices at intersections (2D) and do not consider the
 elevation (3D). When converting to OSM, duplicated vertices (one on each
 road) are merged in one node.

The problem is often one of formats. Shapefiles are often used to 
interchange this data, but shapefiles do not have topology. A common 
toolchain used for getting data from an ESRI-based server to shapefiles
results in files that say that wherever two features cross they join. 

This is the type of mistake that someone doing an import needs to catch
and fix before uploading. The fastest fix I've found in JOSM is to merge the

two bridge ways, merge the two under-bridge ways, and delete the node where
they intersect.


___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Problem with overpasses in NB??

2013-12-02 Thread Connors, Bernie (SNB)
Richard,

  What I would like to do is run a query with the Overpass API that would 
identify the locations of this error so we can all judge how large an issue 
this is.  Unfortunately I have never written an Overpass API query and I would 
like some assistance.  Recently this query (http://goo.gl/AYJ0Nt) that 
identifies errors in Motorway links was shared on Talk-CA and I modified the 
bounding box to run it against New Brunswick.  Can somebody help me out with a 
query that identifies unnecessary intersections in bridges?

TIA,
Bernie.
--
Bernie Connors, P.Eng
New maryland, NB
bernie.conn...@unb.ca

From: Richard Weait [rich...@weait.com]
Sent: December 2, 2013 4:50 PM
To: Connors, Bernie (SNB)
Cc: Talk-CA OpenStreetMap
Subject: Re: [Talk-ca] Problem with overpasses in NB??

On Mon, Dec 2, 2013 at 1:24 PM, Connors, Bernie (SNB)
bernie.conn...@snb.ca wrote:
 Here is an example - http://osm.org/go/cgZ854R_8--

 The problem is that there is an intersection node between
 McKinnon Road and Route 8 but there is an overpass bridge at this location.

That does look like an error, I've fixed that one.  The history on the
involved objects is short, and suggests that it is an import.  Do you
want to contact the mapper and ask about the matter?
___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca