logo separator

[mkgmap-dev] Base style sub-styles

From Steve Ratcliffe steve at parabola.me.uk on Fri Dec 23 21:12:46 GMT 2011

Hi

On 12/21/2011 06:51 PM, Minko wrote:
> How does this work with base styles?
> I would like to include base-style=landuse (which seems stripped out of the default style?) but I get StyleImpl.java:140 errors.

I posted a patch for this before, but it should be ignored as it
doesn't solve the real problem.

I think I now understand what the real problem is.

> In the default style I see these lines in the info file:
>
> base-style=contours_ft
> #base-style=location
> base-style=waters
>
> Only if I remove those 3 lines in that info file, I can run mkgmap (r2140) without errors. I have copied all the substyle folders (like contours_ft, waters) to the same directory (styles) as the default style folder. My args file looks like this:
>
> style-file: styles\default

The following works in this situation:

style-file=styles
style=default

and it would also pick up the missing styles from the classpath.

This is because --style-file is the location of a collection of styles
and the --style argument picks out one of the styles from that location.
Using --style-file=styles/default is really a shortcut for when there
is only one style in the collection.

So in this example, mkgmap will read the style 'default' from the
directory 'style'. For the base-style 'contours_ft' it first
looks in the 'styles' directory and if not found there, then it will
look at the builtin style location.

The bug is that if --style-file=styles/default, then it should fail
to find the base-style and give an appropriate error -- or it should
find it, if it is one of the built in styles as in this case.

..Steve



More information about the mkgmap-dev mailing list