<div dir="ltr"><div>Hi,</div><div><br></div><div>I'd like to create a 'merged layer' using two caches. The reason is that the update frequency of the two caches are different and I really do not want to re-seed the a merged cache every time an update comes in for single source.</div>
<div><br></div><div>I have tried something like this:</div><div>test.yaml</div><div>------------</div><div><div>services:</div><div> demo:</div><div> wmts:</div><div> wms: </div><div> srs: ['EPSG:3857']</div>
<div> tms:</div><div> use_grid_names: true</div><div> origin: 'nw'</div><div><br></div><div>layers:</div><div> - name: merged_layer</div><div> title: Merged layer</div><div> sources: [cache_1, cache_2]</div>
<div> #test container</div><div><div> - name: root_container</div><div> title: Root container</div><div> layers:</div><div> - name: layer_1</div><div> title: Layer #1title: Layer 1</div><div> sources: [cache_1]</div>
<div> - name: layer_2</div><div> title: Layer 2</div><div> sources: [cache_2]</div></div><div><br></div><div>caches:</div><div> cache_1:</div><div> grids: [global_mercator]</div><div> sources: [source_1]</div>
<div> cache_2:</div><div> grids: [global_mercator]</div><div> sources: [source_2]</div><div><br></div><div>sources:</div><div> source_1:</div><div> type: mapnik</div><div> mapfile: source_1.xml</div><div> transparent: true</div>
<div> source_2:<br></div><div> type: mapnik</div><div> mapfile: source_2.xml<br></div><div> transparent: true</div><div><br></div><div>grids:</div><div> global_mercator:</div><div> base: GLOBAL_MERCATOR</div>
<div> srs: 'EPSG:3857'</div><div> origin: nw</div></div><div><br></div><div>The merged_layer only shows up in the WMS section, which (more or less) makes sense.</div><div><br></div><div>Is it possible to use TMS/WMTS with merged_layer? (I guess the answer is no.) Maybe with a 'virtual' container?</div>
<div><br></div><div>Using the WMS service - it seems that the two separate caches are created and populated with tiles - this is exactly what I need. A few questions popped up though:</div><div>What are the performance implications of using WMS compared to TMS?</div>
<div>Does the WMS service really uses the generated tiles or it will (re)create them on every single request?</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Cheers,</div><div>Attila</div>
</div>