[mapserver-users] Mapcache - Composite cache problem

thomas bonfort thomas.bonfort at gmail.com
Wed Dec 21 04:28:09 PST 2016


OK, got it, I think :)
the disk caches by default encode the tileset name in the file path it
creates, so your topo2matrikkel tileset will never be able to read tiles
belonging to the topo2 tileset. If you want to be more clever than
mapcache, you can use your own file template (<cache type="disk"
layout="template">), but beware that mapcache will then not prevent you
from shooting yourself in the foot if you omit to add template tags (in
your case you would need to at least add a {grid} element, and be sure to
not reference that <cache> from other tilesets)

--
thomas

On Wed, Dec 21, 2016 at 1:05 PM tellett <thomas.ellett at statkart.no> wrote:

> We've compiled mapcache again from trunk with the debug set and now we get
> this info:
>
> [Wed Dec 21 13:00:08.887057 2016] [:debug] [pid 12513] mod_mapcache.c(162):
> [client 10.1.1.1:54041] calling tile_get on cache (topo2matrikkel):
> (tileset=topo2matrikkel, grid=utm33n, z=3, x=1, y=4
> [Wed Dec 21 13:00:08.887072 2016] [:debug] [pid 12513] mod_mapcache.c(162):
> [client 10.1.1.1:54041] calling tile_get on cache (topo2):
> (tileset=topo2matrikkel, grid=utm33n, z=3, x=1, y=4
> [Wed Dec 21 13:00:08.887081 2016] [:debug] [pid 12513] mod_mapcache.c(162):
> [client 10.1.1.1:54041] checking for tile
> /cache/mapcache/topo2/topo2matrikkel/utm33n/03/000/000/001/000/000/004.png
>
> So the problem is that its looking for the tile at
> /topo2/topo2matrikkel/.... instead of just /topo2/......... and as far as I
> can make out, this will either mean that the topo2 cache won't work (it
> does) or that the tile would have to be stored twice for topo2matrikkel to
> work, which I guess would be contary to the idea of a composite cache?
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Mapcache-Composite-cache-problem-tp5300828p5300864.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20161221/008dc374/attachment.html>


More information about the mapserver-users mailing list