[mapserver-users] Mapcache - Composite cache problem

thomas bonfort thomas.bonfort at gmail.com
Thu Jan 5 01:35:56 PST 2017


Hi Tom, happy new year to you to!

On Wed, Jan 4, 2017 at 5:25 PM tellett <thomas.ellett at statkart.no> wrote:

> Hi again and happy new year! I've tried what you suggested and managed to
> get
> the composite layer to work with this setup:
>
> <cache name="topo2" type="disk" layout="template">
>         <base>/cache/mapcache/topo2</base>
>         <template>/cache/mapcache/topo2/{grid}/{z}/{x}/{y}.{ext}</template>
> </cache>
>
> <cache name="topo2matrikkelsource" type="disk" layout="template">
>         <base>/cache/mapcache/topo2matrikkelsource</base>
>
>
> <template>/cache/mapcache/topo2matrikkelsource/{grid}/{z}/{x}/{y}.{ext}</template>
> </cache>
>
> <cache name="topo2matrikkel" type="composite">
>                 <cache min-zoom="0" max-zoom="12">topo2</cache>
>                 <cache min-zoom="13">topo2matrikkelsource</cache>
> </cache>
>
> But I was a little bit confused about what you meant with that we could
> 'shoot ourselves in the foot' if we omit template tags? And also why we
> can't reference that cache (I presume you mean 'topo2matrikkel') from other
> tilesets?
>

<cache name="mycache" ...>
 <template>/cache/{z}/{x}/{y}.png
</cache>

<tileset name="buildings">
 <cache>mycache</cache>
</tileset>
<tileset name="imagery">
 <cache>mycache</cache>
</tileset>

=> 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

cheers,
thomas



>
> Cheers
>
> Tom
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Mapcache-Composite-cache-problem-tp5300828p5302008.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/20170105/1f7f7ea1/attachment-0001.html>


More information about the mapserver-users mailing list