<div dir="ltr"><div>I think you need to perform the merge at the cache level and I believe you need to store the tiles. Try something like this:<br></div><div></div><div><br></div><div>caches:</div><div> sbm_osm_kombiniert_farb_eur:<br> grids: [epsg2056_lv95_europa]<br> sources: [sbm_osm_kombiniert_farb_eur_source]<br> sbm_osm_kombiniert_farb_sui:<br> grids: [epsg2056_lv95_voll]<br> sources: [sbm_osm_kombiniert_farb_sui_source]<br> disable_storage: true</div><div> merged_cache_osm:</div><div> grids: [
epsg2056_lv95_voll,
epsg2056_lv95_europa]</div><div> sources: [sbm_osm_kombiniert_farb_eur_source,
sbm_osm_kombiniert_farb_sui_source]</div><div> # other stuff - meta_buffer / meta_size etc....</div><div> cache: <br></div><div> type: # all your cache parameters</div><div><br></div><div>layers:</div><div>- name: sbm_osm_kombiniert_farb<br> title: sbm_osm_kombiniert_farb<br> tile_sources: [merged_cache_osm]</div><div><br></div><div><br></div><div> <br></div><div><div> <br></div><div><br></div><div>...<br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 18 Jun 2019 at 09:22, Schmutz Daniel <<a href="mailto:d.schmutz@schaellibaum.ch">d.schmutz@schaellibaum.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="DE-CH">
<div class="gmail-m_-3989905005303077491WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif">Hello Mapproxy-Mailing-List<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif">We would like to merge two caches into one layer but are having difficulties.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif">We have pre-generated all required Tiles (dataformat=png, size=512x512px) for all of our zoom levels for all of our maps (source type=mapnik), using the seeding
functionality. When all of the Tiles were generated, we made all folders immutable (read only) (sudo chattr -R +i /home/administrator/Data/mpy/sbm_av_grau_EPSG2056), withholding Mapproxy from generating unwanted Tiles. These Tiles are used in WMS and WMTS
connections.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif">We now want to merge two particular caches (two folders/layers having the same tile size, the same srs, the same origin, the same stretch factor but different
bbox). We would like to access the Tiles directly (source type=mapnik is no longer required as all Tiles are available).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif">We have made a transition between the individual caches (max_res=650 and min_res=650). The problem that we are having is that we can only see one of the caches
but never both at the same time. The merged layer in our configuration file is called ‚sbm_osm_kombiniert_farb‘.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif">Have attached the yaml configuration file.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif">Any help would be appreciated.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif">Thanks and Regards Daniel<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif">Attachment: mpy_conf_main.yaml</span>
<span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif">
mpy_conf_main.yaml<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;line-height:110%;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal" style="line-height:normal"><span style="font-family:"Calibri",sans-serif" lang="DE">Freundliche Grüsse<u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:normal"><span style="font-family:"Calibri",sans-serif" lang="DE">Daniel Schmutz<u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:normal"><span style="font-size:8pt;font-family:"Calibri",sans-serif" lang="DE"><u></u> <u></u></span></p>
<p class="MsoNormal" style="line-height:normal"><b><span style="font-size:8pt;font-family:"Calibri",sans-serif" lang="DE">Schällibaum AG Ingenieure und Architekten, Ebnaterstrasse 143, CH-9630 Wattwil<u></u><u></u></span></b></p>
<p class="MsoNormal" style="line-height:normal"><span style="font-size:8pt;font-family:"Calibri",sans-serif" lang="DE">T +41 71 987 60 90, F +41 71 987 60 91,
</span><u><span style="font-size:8pt;font-family:"Calibri",sans-serif" lang="DE"><a href="http://www.schaellibaum.ch/" target="_blank"><span style="color:rgb(5,99,193)">www.schaellibaum.ch</span></a><u></u><u></u></span></u></p>
<p class="MsoNormal" style="line-height:normal"><span style="font-size:8pt;font-family:"Calibri",sans-serif" lang="DE"><u></u> <u></u></span></p>
<p class="MsoNormal" style="line-height:normal"><span style="font-size:8pt;font-family:"Calibri",sans-serif" lang="DE">Daniel Schmutz, Geomatikingenieur<u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:normal"><span style="font-size:8pt;font-family:"Calibri",sans-serif">Direkt +41 71 987 00 68, Mobile +41 79 479 76 55, Email
</span><span style="font-size:8pt;font-family:"Calibri",sans-serif" lang="DE"><a href="mailto:d.schmutz@schaellibaum.ch" target="_blank"><span style="color:rgb(5,99,193)">d.schmutz@schaellibaum.ch</span></a></span><u><span style="font-size:8pt;font-family:"Calibri",sans-serif" lang="DE"><u></u><u></u></span></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
_______________________________________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org" target="_blank">MapProxy@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapproxy" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapproxy</a></blockquote></div>