<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 14pt; color: #000000"><div>Yes your configuration looks right.</div><div><br></div><div>But IIRC, if you want to use that source, you actually need to define a tileset that references it. Something like:</div><div><br></div><div><cache name="D" type="sqlite3"></div><div>    <dbfile>/path/to/cache/D.sqlite3</cache></div><div></cache></div><div><span style="font-size: 14pt;"><tileset name="D"></span></div><div>    <source>D</source></div><div>    <cache>D</cache></div><div><span style="font-size: 14pt;">  ...</span></div><div></tileset></div><div><br></div><div>and use it as: <a href="http://localhost/mapcache?REQUEST=GetMap&LAYERS=D&..">http://localhost/mapcache?REQUEST=GetMap&LAYERS=D&..</a>.</div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>De: </b>"Stephen Woodbridge" <stephenwoodbridge37@gmail.com><br><b>À: </b>"jbo-ads" <jbo-ads@laposte.net>, mapserver-users@lists.osgeo.org<br><b>Envoyé: </b>Jeudi 13 Février 2020 20:33:02<br><b>Objet: </b>Re: [mapserver-users] How to assemble mapcache tilesets into a new layer?<br><div><br></div>Ok to answer my own question, yes you need <http> section like this for <br>assembly to work:<br><div><br></div><source name="D" type="wms"><br>   <getmap><br>     <params><br>       <FORMAT>image/png></FORMAT><br>       <LAYERS>A,B,C</LAYERS><br>     </params><br>   </getmap><br>   <http><br>     <url>http://localhost/mapcache</url><br>   </http><br></source><br><div><br></div>And you don't need a <tileset> defined for it to work as it reads data <br>from the existing tilesets and assembles the new image. I suppose if you <br>wanted you could also define a new tileset so it would cache the <br>assembled images, but I'm not sure that that is needed except possibly <br>in very high demand situations. But this is just my surmise.<br><div><br></div>Thanks,<br>   -Steve<br><div><br></div>On 2/13/2020 1:46 PM, Stephen Woodbridge wrote:<br>> On 2/13/2020 12:36 PM, jbo-ads wrote:<br>>> Hi Steve,<br>>><br>>> Yes, this part of the doc should be improved... A more helpful one is <br>>> <https://mapserver.org/mapcache/dimensions.html#tile-assembly-policies> <br>>> but it is relative only to second level dimensions.<br>>><br>>> Assembling several layers can be performed with a WMS request using <br>>> "...&LAYERS=A,B,C&...". Then to create a new layer, you just need to <br>>> define a WMS source using that WMS pattern.<br>> Jérome,<br>><br>> Thanks that seems simple enough. A couple of questions:<br>><br>> <source name="D" type="wms"><br>>   <getmap><br>>     <params><br>>       <FORMAT>image/png></FORMAT><br>>       <LAYERS>A,B,C</LAYERS><br>>     </params><br>>   </getmap><br>>   <http><br>>     ?????<br>>   </http><br>> </source><br>><br>> <tileset name="D"><br>>   <source>D</source><br>>   ...<br>> </tileset><br>><br>> Does this look right?<br>> Should I have an <http> section and what should be in that if anything <br>> for assembly of existing tilesets?<br>><br>> Thanks,<br>>   -Steve<br>>><br>>> Jérome.<br>>><br>>><br>>><br>>> Le 13/02/2020 à 17:24, Stephen Woodbridge a écrit :<br>>>> Hi all,<br>>>><br>>>> I have three existing layers in my mapcache.xml and I need to create <br>>>> a new layer that assembles this three layers into a single layer. <br>>>> There is a section in the mapcache documentation <br>>>> https://mapserver.org/mapcache/tile_assembling.html but it is not <br>>>> very helpful ;)<br>>>><br>>>> Can anyone help with with this problem?<br>>>><br>>>> Say I have existing tilesets "A", "B", "C" how would I create a <br>>>> tileset "D" where it stacks A, B, and C like:<br>>>><br>>>> C<br>>>> B<br>>>> A<br>>>><br>>>> Thanks,<br>>>>   -Steve W<br>>>> _______________________________________________<br>>>> mapserver-users mailing list<br>>>> mapserver-users@lists.osgeo.org<br>>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users<br>>><br>>> _______________________________________________<br>>> mapserver-users mailing list<br>>> mapserver-users@lists.osgeo.org<br>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users<br>><br><div><br></div></div><div><br></div></div></body></html>