logo separator

[mkgmap-dev] Patch v2 for routing problems in r2448 and higher - java.lang.AssertionError: too many points

From Felix Hartmann extremecarver at gmail.com on Tue Feb 5 10:12:05 GMT 2013

With this patch, on some countries (e.g. Colombia) I encounter the 
following error:
java.lang.AssertionError: too many points
         at 
uk.me.parabola.mkgmap.build.MapBuilder$LineAddFilter.doFilter(MapBuilder.java:1100)
         at 
uk.me.parabola.mkgmap.build.LayerFilterChain.doFilter(LayerFilterChain.java:57)
         at 
uk.me.parabola.mkgmap.build.LayerFilterChain.addElement(LayerFilterChain.java:66)
         at 
uk.me.parabola.mkgmap.filters.LineSplitterFilter.doFilter(LineSplitterFilter.java:100)
         at 
uk.me.parabola.mkgmap.build.LayerFilterChain.doFilter(LayerFilterChain.java:57)
         at 
uk.me.parabola.mkgmap.build.LayerFilterChain.startFilter(LayerFilterChain.java:75)
         at 
uk.me.parabola.mkgmap.build.MapBuilder.processLines(MapBuilder.java:984)
         at 
uk.me.parabola.mkgmap.build.MapBuilder.makeSubdivision(MapBuilder.java:712)
         at 
uk.me.parabola.mkgmap.build.MapBuilder.makeMapAreas(MapBuilder.java:647)
         at 
uk.me.parabola.mkgmap.build.MapBuilder.makeMap(MapBuilder.java:201)
         at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:97)
         at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:61)
         at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:201)
         at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:198)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown 
Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown 
Source)
         at java.lang.Thread.run(Unknown Source)


Without the pach, it compiles fine.
On 04.02.2013 21:00, GerdP wrote:
> Hi,
>
> attached is a patch that adds a new filter and a simple check to avoid the
> routine problems.
> 1) StyledConverter: try to avoid adding consecutive equal coords
> 2) LinePreparerFilter: do the same calcs as LinePreparer and reject lines
> that would be rejected later by LinePreparer
> 3) LineSplitterFilter: don't create small final part which is likely to be
> discarded
>
> fix_routing_v2.patch
> <http://gis.19327.n5.nabble.com/file/n5748091/fix_routing_v2.patch>
>
> It solved the problems reported by NetCheck  with my test data but it is
> still
> possible that invalid lines are passed to MapBuilder.ShapeAddFilter due to
> the
> bogus addElement function.
> I am not 100% sure if these invalid shapes can cause routing errors, but I
> doubt it.
>
> Ciao,
> Gerd
>
>
>
> --
> View this message in context: http://gis.19327.n5.nabble.com/Patch-v2-for-routing-problems-in-r2448-and-higher-tp5748091.html
> Sent from the Mkgmap Development mailing list archive at Nabble.com.
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

-- 
keep on biking and discovering new trails

Felix
openmtbmap.org & www.velomap.org



More information about the mkgmap-dev mailing list