OpenLR icon indicating copy to clipboard operation
OpenLR copied to clipboard

LineCoding on a single edge fails

Open hcoppen opened this issue 7 years ago • 3 comments

BuildLine() fails with 'First edge does not match first vertex.' if coding is done on a single edge.

hcoppen avatar Jan 12 '18 14:01 hcoppen

@hcoppen Could this be due to the edgeid-bug in Itinero I fixed recently? Can you given me a piece of code to reproduce or does it fail on any edge?

xivk avatar Jan 25 '18 10:01 xivk

As fare as I know it fails on any single edge

hcoppen avatar Jan 29 '18 07:01 hcoppen

I know this is an old issue, but it still seems to throw that error. I was able to encode some single edge openLRs, but others fail.

Fails:

            // sentier de l'esperance ,   2118 Luxembourg        
           var line = coder.BuildLine(new Itinero.LocalGeo.Coordinate(49.61307357599604f, 6.138820052146912f),
               new Itinero.LocalGeo.Coordinate(49.61323346501051f, 6.139544248580933f));

I tried this with the supplied pbf file and with a fresh file downloaded from geofabrik.

Works: This one is nearby and also one edge, but it works: CwRd4CNHXgonBgH2AIIKdRgL

dirkjot avatar Nov 21 '20 01:11 dirkjot