You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Subnetwork removal broken in master for bike2 #432
E.g. for world wide import the nodes are reduced from 129.561.300 to 4.433.882, also for deactivated oneway-subnetwork removal. Occurs only with the setLowSpeed change introduced in #367 and only for bike2
And one way is directed and the other is undirected. The directed leads to a subnetwork with a single node and in the second step the undirected edge is picked and leads to removing the large area.
Uhm, it is because 0/0 leads to NaN and this causes these strange setting of the two edges: speed is 0 and access is true except for 321469251 from 792 to 783 leading to the single node subnetwork.
Regarding the NaN, see in Bike2.applyWayTags -> factor* partDistance / distance ... so this happens only for distances of 0.
Activity
karussell commentedon Jun 2, 2015
Should we use speed==0 value instead of the access bits? Then no need to keep in-sync and should not be more expensive to fetch, plus saving one bit
karussell commentedon Jun 2, 2015
It looks like this happens only in case of connected nodes with identical lat,lng and a oneway connection:
http://www.openstreetmap.org/node/3282104783
http://www.openstreetmap.org/node/3282104792
karussell commentedon Jun 2, 2015
The problem is indeed a tagging issue here (but of course we should not fail).
There are two ways connecting the two nodes twice:
http://www.openstreetmap.org/way/321469251
http://www.openstreetmap.org/way/321469253
And one way is directed and the other is undirected. The directed leads to a subnetwork with a single node and in the second step the undirected edge is picked and leads to removing the large area.
karussell commentedon Jun 2, 2015
Uhm, it is because 0/0 leads to NaN and this causes these strange setting of the two edges: speed is 0 and access is true except for 321469251 from 792 to 783 leading to the single node subnetwork.
Regarding the NaN, see in Bike2.applyWayTags -> factor* partDistance / distance ... so this happens only for distances of 0.
make several methods more robust and include a fix and test for #432
removing test method which did not show the issue, #432
minor tweak to find out when speed is NaN, related to #432
avoid and report NaN or Infinity distance, related to #432