
Hi, My custom point style gives me this error: Error in style: Error: (points:116): Unrecognised type command '$' SEVERE (Main): java.util.concurrent.ExecutionException: uk.me.parabola.imgfmt.ExitException: Could not open style null java.util.concurrent.ExecutionException: uk.me.parabola.imgfmt.ExitException: Could not open style null at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:205) at java.util.concurrent.FutureTask.get(FutureTask.java:80) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:289) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:123) at uk.me.parabola.mkgmap.main.Main.main(Main.java:100) Caused by: uk.me.parabola.imgfmt.ExitException: Could not open style null at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.createStyler(Osm5MapDataSource.java:126) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:79) at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:147) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:55) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:168) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:167) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:613) Please help. -- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

On Mon, Jun 29, 2009 at 10:06 AM, maning sambale<emmanuel.sambale@gmail.com> wrote:
Hi,
My custom point style gives me this error:
Error in style: Error: (points:116): Unrecognised type command '$' Do this message refer to this line in teh point style file?
115 highway=motorway_junction { name '${ref} ${name}' | '${ref}' | '${name}' } 116 highway=motorway_junction [0x2000 resolution 21]
SEVERE (Main): java.util.concurrent.ExecutionException: uk.me.parabola.imgfmt.ExitException: Could not open style null java.util.concurrent.ExecutionException: uk.me.parabola.imgfmt.ExitException: Could not open style null at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:205) at java.util.concurrent.FutureTask.get(FutureTask.java:80) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:289) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:123) at uk.me.parabola.mkgmap.main.Main.main(Main.java:100) Caused by: uk.me.parabola.imgfmt.ExitException: Could not open style null at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.createStyler(Osm5MapDataSource.java:126) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:79) at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:147) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:55) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:168) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:167) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:613)
Please help.
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

I diabled this line and it seems to work: highway=bus_stop [0x2f08 resolution 23 default_name 'Bus stop] On Mon, Jun 29, 2009 at 10:16 AM, maning sambale<emmanuel.sambale@gmail.com> wrote:
On Mon, Jun 29, 2009 at 10:06 AM, maning sambale<emmanuel.sambale@gmail.com> wrote:
Hi,
My custom point style gives me this error:
Error in style: Error: (points:116): Unrecognised type command '$' Do this message refer to this line in teh point style file?
115 highway=motorway_junction { name '${ref} ${name}' | '${ref}' | '${name}' } 116 highway=motorway_junction [0x2000 resolution 21]
SEVERE (Main): java.util.concurrent.ExecutionException: uk.me.parabola.imgfmt.ExitException: Could not open style null java.util.concurrent.ExecutionException: uk.me.parabola.imgfmt.ExitException: Could not open style null at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:205) at java.util.concurrent.FutureTask.get(FutureTask.java:80) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:289) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:123) at uk.me.parabola.mkgmap.main.Main.main(Main.java:100) Caused by: uk.me.parabola.imgfmt.ExitException: Could not open style null at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.createStyler(Osm5MapDataSource.java:126) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:79) at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:147) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:55) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:168) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:167) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:613)
Please help.
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

On Mon, Jun 29, 2009 at 11:19:09AM +0800, maning sambale wrote:
I diabled this line and it seems to work: highway=bus_stop [0x2f08 resolution 23 default_name 'Bus stop] [...]
Do this message refer to this line in teh point style file?
115 highway=motorway_junction { name '${ref} ${name}' | '${ref}' | '${name}' }
An educated guess: due to the missing closing quote of "'Bus stop" everything up to "name '" was included in the string, and the next token that the parser saw was the $ of ${ref}. If line breaks are not useful in labels, it might be good to have the lexer spit out warnings when it sees a line break within a quoted string. The warning could be suppressed by using some \x0a notation. The lexer could also ignore \ followed by a line break and white space, so that overly long strings can be split over multiple lines. Marko

Doh! Thanks it works OK now. On 6/29/09, Marko Mäkelä <marko.makela@iki.fi> wrote:
On Mon, Jun 29, 2009 at 11:19:09AM +0800, maning sambale wrote:
I diabled this line and it seems to work: highway=bus_stop [0x2f08 resolution 23 default_name 'Bus stop] [...]
Do this message refer to this line in teh point style file?
115 highway=motorway_junction { name '${ref} ${name}' | '${ref}' | '${name}' }
An educated guess: due to the missing closing quote of "'Bus stop" everything up to "name '" was included in the string, and the next token that the parser saw was the $ of ${ref}.
If line breaks are not useful in labels, it might be good to have the lexer spit out warnings when it sees a line break within a quoted string. The warning could be suppressed by using some \x0a notation. The lexer could also ignore \ followed by a line break and white space, so that overly long strings can be split over multiple lines.
Marko _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------
participants (2)
-
maning sambale
-
Marko Mäkelä