routing icon indicating copy to clipboard operation
routing copied to clipboard

Bug in MaxDistanceSplitter

Open mattrjackson opened this issue 4 years ago • 1 comments

Hi, I just wanted to report a small issue that happens only in the rarest of cases. In my case, I ran across a road that was exactly 5 km (the max edge length), and the splitter created 3 segments, with 1 segment of length zero .

In line 67: if (data.Distance < _maxDistance)

should, I believe, be:

if (data.Distance <= _maxDistance)

mattrjackson avatar Mar 23 '20 18:03 mattrjackson

Just noting that I was unable to make a contracted db after making this change (on a planet sized pbf filtered for rail data), the exception I received was

Edge detected that's too long in ...

juliusfriedman avatar Apr 06 '20 12:04 juliusfriedman