----------------------------------------
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> Subject: Re: [Viking-devel] Viking Map Generation with Mapnik C++ Library.
> Date: Mon, 2 Feb 2015 09:40:10 -0500
>
>
> Robert Norris <[email protected]> writes:
>
>> Tiles are cached in directory specified in the Mapnik Rendering layer
>> property (it defaults to ~/.viking-maps/MapnikRendering - so for
>> different stylesheets it's wise to change this to a specific directory
>> per style) - the cache is always in the OSM Slippymap layout
>> (zoom/x/y.png)
>
> I have not yet gotten mapnik set up, so this may be confused, but if
> it's possible to have viking specify the named stylesheet, and have that
> be part of the cache name, that would be great. Then one could have
> multiple layers. Basically my point is that "local mapnik" is not
> actually specific - it's a rendering engine that can have multiple
> styles. So one might want a number of local layers, especially if
> using this as part of hacking on stylesheets.
Each Layer can specify it's own tile cache directory.
Thus you can have multiple stylesheets, each one in it's own layer, and each
layer can (should) have a different cache directory.
Unfortunately you have to manually specify what that directory is.
NB I considered trying to auto generate a suggested cache directory dependent
on the stylesheet name,
but due to the way the default values are created (static functions which get
called on the very first time that layer type is used) I think the only way to
make this more dynamic would either be rewriting/significant extending/lots of
thinking about/ the core layers code.
Hence I have not attempted to do that so far.
Also partly related is the two main stylesheets I've been using (OSM Carto &
OSM Bright) both have the same generic stylesheet name project.mml -->
project.xml - so a suggested cache directory based on just the name would clash
anyway so you need in to include the path (or hash of the path) to get
uniqueness but then the directory name don't look so nice.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Viking-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/