
As of 2470 I run into the following error. If I downgrade to 2468 my map compiles fine again without this error. (I first thought this is due to the remove_short_arcs_v4.patch, but actually I run into it with any mkgmap version >=2470) java.lang.UnsupportedOperationException at uk.me.parabola.mkgmap.osmstyle.eval.AbstractOp.value(AbstractOp.java:110) at uk.me.parabola.mkgmap.osmstyle.eval.EqualsOp.eval(EqualsOp.java:44) at uk.me.parabola.mkgmap.osmstyle.eval.AndOp.eval(AndOp.java:34) at uk.me.parabola.mkgmap.osmstyle.eval.AndOp.eval(AndOp.java:34) at uk.me.parabola.mkgmap.osmstyle.eval.AndOp.eval(AndOp.java:34) at uk.me.parabola.mkgmap.osmstyle.eval.AndOp.eval(AndOp.java:34) at uk.me.parabola.mkgmap.osmstyle.eval.AndOp.eval(AndOp.java:34) at uk.me.parabola.mkgmap.osmstyle.eval.AndOp.eval(AndOp.java:34) at uk.me.parabola.mkgmap.osmstyle.eval.AndOp.eval(AndOp.java:34) at uk.me.parabola.mkgmap.osmstyle.ActionRule.resolveType(ActionRule.java:59) at uk.me.parabola.mkgmap.osmstyle.RuleSet.resolveType(RuleSet.java:68) at uk.me.parabola.mkgmap.osmstyle.StyledConverter.convertWay(StyledConverter.java:216) at uk.me.parabola.mkgmap.reader.osm.ElementSaver.convert(ElementSaver.java:237) at uk.me.parabola.mkgmap.reader.osm.bin.OsmBinMapDataSource.load(OsmBinMapDataSource.java:75) at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:144) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56) 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)

On 03/02/13 20:44, Felix Hartmann wrote:
As of 2470 I run into the following error. If I downgrade to 2468 my map compiles fine again without this error. (I first thought this is due to the remove_short_arcs_v4.patch, but actually I run into it with any mkgmap version >=2470)
I believe that this is probably an error in the style. Of course, it is also a bug in mkgmap as it should have detected it and given a usable error message. However I can't tell what is happening without the style and input file that causes the error. ..Steve

Okay, got it. It was caused by the following typo: & key=!* (which should of course be key!=* - but previous mkgmap versions didn't break (though I don't know what they made out of that line either). An error message with the offending line number, would be quite time saving.... (but in general such errors appear, after you introduce them, so it's easier to find then if it happens on version change, and you need to go through trial and error style portion deletions until you find it). On 03.02.2013 23:01, Steve Ratcliffe wrote:
On 03/02/13 20:44, Felix Hartmann wrote:
As of 2470 I run into the following error. If I downgrade to 2468 my map compiles fine again without this error. (I first thought this is due to the remove_short_arcs_v4.patch, but actually I run into it with any mkgmap version >=2470)
I believe that this is probably an error in the style. Of course, it is also a bug in mkgmap as it should have detected it and given a usable error message.
However I can't tell what is happening without the style and input file that causes the error.
..Steve
-- keep on biking and discovering new trails Felix openmtbmap.org & www.velomap.org

Hi Felix
Okay, got it. It was caused by the following typo: & key=!*
OK thanks for tracking it down.
(which should of course be key!=* - but previous mkgmap versions didn't break (though I don't know what they made out of that line either).
Yea, it is kind of a valid but meaningless statement: highway = NOT '*' which I should probably disallow. I will write a fix for this when I get back home later today. ..Steve

I have some problem with new mkgmap and fix it in style: - key1=value & !key2=value2 + key1=value & !(key2=value2) Hi Felix
Okay, got it. It was caused by the following typo: & key=!*
OK thanks for tracking it down.
(which should of course be key!=* - but previous mkgmap versions didn't break (though I don't know what they made out of that line either).
Yea, it is kind of a valid but meaningless statement: highway = NOT '*' which I should probably disallow. I will write a fix for this when I get back home later today. ..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (3)
-
Felix Hartmann
-
Maks Vasilev
-
Steve Ratcliffe