<div dir="ltr">Hi Tom, happy new year to you to!<br><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 4, 2017 at 5:25 PM tellett <<a href="mailto:thomas.ellett@statkart.no">thomas.ellett@statkart.no</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi again and happy new year! I've tried what you suggested and managed to get<br class="gmail_msg">
the composite layer to work with this setup:<br class="gmail_msg">
<br class="gmail_msg">
<cache name="topo2" type="disk" layout="template"><br class="gmail_msg">
        <base>/cache/mapcache/topo2</base><br class="gmail_msg">
        <template>/cache/mapcache/topo2/{grid}/{z}/{x}/{y}.{ext}</template><br class="gmail_msg">
</cache><br class="gmail_msg">
<br class="gmail_msg">
<cache name="topo2matrikkelsource" type="disk" layout="template"><br class="gmail_msg">
        <base>/cache/mapcache/topo2matrikkelsource</base><br class="gmail_msg">
<br class="gmail_msg">
<template>/cache/mapcache/topo2matrikkelsource/{grid}/{z}/{x}/{y}.{ext}</template><br class="gmail_msg">
</cache><br class="gmail_msg">
<br class="gmail_msg">
<cache name="topo2matrikkel" type="composite"><br class="gmail_msg">
                <cache min-zoom="0" max-zoom="12">topo2</cache><br class="gmail_msg">
                <cache min-zoom="13">topo2matrikkelsource</cache><br class="gmail_msg">
</cache><br class="gmail_msg">
<br class="gmail_msg">
But I was a little bit confused about what you meant with that we could<br class="gmail_msg">
'shoot ourselves in the foot' if we omit template tags? And also why we<br class="gmail_msg">
can't reference that cache (I presume you mean 'topo2matrikkel') from other<br class="gmail_msg">
tilesets?<br class="gmail_msg"></blockquote><div><br></div><div><cache name="mycache" ...></div><div> <template>/cache/{z}/{x}/{y}.png</div><div></cache></div><div><br></div><div><tileset name="buildings"></div><div> <cache>mycache</cache></div><div></tileset></div><div><div><tileset name="imagery"></div><div> <cache>mycache</cache></div><div></tileset></div></div><div><br></div><div>=> BOOM :) both tilesets are reading/writing to the same tiles whereas they clearly shouldn't be. If you know they should be reading/writing the same set of tiles you're fine</div><div><br></div><div>cheers,</div><div>thomas</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br class="gmail_msg">
Cheers<br class="gmail_msg">
<br class="gmail_msg">
Tom<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Mapcache-Composite-cache-problem-tp5300828p5302008.html" rel="noreferrer" class="gmail_msg" target="_blank">http://osgeo-org.1560.x6.nabble.com/Mapcache-Composite-cache-problem-tp5300828p5302008.html</a><br class="gmail_msg">
Sent from the Mapserver - User mailing list archive at Nabble.com.<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
mapserver-users mailing list<br class="gmail_msg">
<a href="mailto:mapserver-users@lists.osgeo.org" class="gmail_msg" target="_blank">mapserver-users@lists.osgeo.org</a><br class="gmail_msg">
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></blockquote></div></div>