logo separator

[mkgmap-dev] Commit: r3289: Style filter arguments can now be quoted.

From GerdP gpetermann_muenchen at hotmail.com on Tue Jun 3 18:10:41 BST 2014

Hi Bernd,

the problem is your include phone.
It contains a few lines like this:
cs:phone=* & mkgmap:country=IRL
{set cs:phone='${cs:phone|subst:^00~>+|subst:[-
()]~>|subst:^0~>+353|subst:^+3530~>+353}'}

If you change them so that the action block doesn't span two lines
it seems to work. I don't know if this should be fixed in the code.

Gerd



Bernd Weigelt wrote
> Am Dienstag, 3. Juni 2014, 13:20:14 schrieb svn commit:
>> Version mkgmap-r3289 was committed by steve on Tue, 03 Jun 2014
>> 
>> Style filter arguments can now be quoted.
>> 
>> For backward compatibility you don't have to quote arguments that contain
>> spaces or symbols but its a good idea to do so from now on. The
>> documentation has been updated to follow this guideline.
>> 
>> You can now use a pipe symbol in a regular expression which there
>> was no way of doing before.
>> 
>> Eg:  ${name|subst:"(Dr|Doctor|Dokter) ~>Doktor "}
>> _______________________________________________
>> mkgmap-dev mailing list
>> 

> mkgmap-dev at .org

>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> 
> Got this error with r3290, 
> Maybe it is something wrong in my style after this commit, but i  can't
> find 
> it. 
> 
> Any hints?
> 
> Bernd
> 
> 
> II: Now building bikemap
> Time started: Tue Jun 03 17:21:13 CEST 2014
> java.lang.IllegalStateException: No match found
>         at java.util.regex.Matcher.group(Matcher.java:485)
>         at 
> uk.me.parabola.mkgmap.osmstyle.actions.ValueBuilder.addFilter(ValueBuilder.java:195)
>         at 
> uk.me.parabola.mkgmap.osmstyle.actions.ValueBuilder.addTagValue(ValueBuilder.java:179)
>         at 
> uk.me.parabola.mkgmap.osmstyle.actions.ValueBuilder.compile(ValueBuilder.java:140)
>         at 
> uk.me.parabola.mkgmap.osmstyle.actions.ValueBuilder.
> <init>
> (ValueBuilder.java:52)
>         at 
> uk.me.parabola.mkgmap.osmstyle.actions.ValueBuilder.
> <init>
> (ValueBuilder.java:47)
>         at 
> uk.me.parabola.mkgmap.osmstyle.actions.ValueBuildedAction.add(ValueBuildedAction.java:30)
>         at 
> uk.me.parabola.mkgmap.osmstyle.actions.AddTagAction.
> <init>
> (AddTagAction.java:47)
>         at 
> uk.me.parabola.mkgmap.osmstyle.actions.ActionReader.readTagValue(ActionReader.java:169)
>         at 
> uk.me.parabola.mkgmap.osmstyle.actions.ActionReader.readActions(ActionReader.java:60)
>         at 
> uk.me.parabola.mkgmap.osmstyle.RuleFileReader.loadFile(RuleFileReader.java:117)
>         at 
> uk.me.parabola.mkgmap.osmstyle.RuleFileReader.checkCommand(RuleFileReader.java:192)
>         at 
> uk.me.parabola.mkgmap.osmstyle.RuleFileReader.loadFile(RuleFileReader.java:109)
>         at 
> uk.me.parabola.mkgmap.osmstyle.RuleFileReader.load(RuleFileReader.java:86)
>         at 
> uk.me.parabola.mkgmap.osmstyle.StyleImpl.readRules(StyleImpl.java:302)
>         at uk.me.parabola.mkgmap.osmstyle.StyleImpl.
> <init>
> (StyleImpl.java:160)
>         at 
> uk.me.parabola.mkgmap.osmstyle.StyleImpl.readStyle(StyleImpl.java:554)                                                                      
>         at 
> uk.me.parabola.mkgmap.reader.osm.RelationStyleHook.init(RelationStyleHook.java:38)                                                          
>         at 
> uk.me.parabola.mkgmap.reader.osm.OsmMapDataSource.pluginChain(OsmMapDataSource.java:185)
>         at 
> uk.me.parabola.mkgmap.reader.osm.OsmMapDataSource.setupHandler(OsmMapDataSource.java:153)
>         at 
> uk.me.parabola.mkgmap.reader.osm.o5m.O5mBinMapDataSource.load(O5mBinMapDataSource.java:43)
>         at 
> uk.me.parabola.mkgmap.reader.osm.OsmMapDataSource.load(OsmMapDataSource.java:127)
>         at
> uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:167)
>         at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:63)
>         at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:253)
>         at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:249)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:744)
> 
> _______________________________________________
> mkgmap-dev mailing list

> mkgmap-dev at .org

> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev





--
View this message in context: http://gis.19327.n5.nabble.com/Commit-r3289-Style-filter-arguments-can-now-be-quoted-tp5807832p5807850.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.


More information about the mkgmap-dev mailing list