<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi there,<div><br></div><div>I'm wanting to merge 3 tiled sources into a single tiled service as below:</div><div><br></div><div>Global topo service for levels 0-7</div><div>Country 1:250k service for levels 8-12 (rendering the global tiles in areas outside the country covered)</div><div>Country 1:50k service for levels 13- (rendering the global tiles for areas outside the country covered)<br></div><div><br></div><div>I have been able to merge the first 2 services where the country 250k renders on top of the global service but I am unable to control the scale that the 250k or 50k tiles start to render.</div><div>I have tried specifying a set resolution list, setting min_res and max_res, num_levels etc</div><div><br></div><div>A working configuration file is below with some options commented out in the grid section that do not produce the desired results.</div><div>Grateful for any help anyone can offer.</div><div><br></div><div>Josh</div><div><br></div><div><br></div><div><div><i>services:</i></div><div><i> demo:</i></div><div><i> tms:</i></div><div><i> wmts:</i></div><div><i> restful: true</i></div><div><i> kvp: true</i></div><div><i><br></i></div><div><i>layers:</i></div><div><i><br></i></div><div><i>- name: Topo</i></div><div><i> title: Topo</i></div><div><i> sources: [topo_cache_gpk]</i></div><div><i><br></i></div><div><i>- name: LINZtopo50</i></div><div><i> title: LINZ Topo 50</i></div><div><i> sources: [linz_topo50_cache_gpk]</i></div><div><i><br></i></div><div><i>- name: LINZtopo250</i></div><div><i> title: LINZ Topo 250</i></div><div><i> sources: [linz_topo250_cache_gpk]</i></div><div><i> </i></div><div><i>caches:</i></div><div><i><br></i></div><div><i> topo_cache_gpk:</i></div><div><i> sources: [topo_esri_source, linz_topo250_source]</i></div><div><i> grids: [GLOBAL_WEBMERCATOR]</i></div><div><i> cache:</i></div><div><i> type: geopackage</i></div><div><i> filename: /opt/mapproxy/cache_data/topo_<wbr>tiles.gpk</i></div><div><i> table_name: topo</i></div><div><i><br></i></div><div><i> topo_esri_cache_gpk:</i></div><div><i> sources: [topo_esri_source]</i></div><div><i> grids: [GLOBAL_WEBMERCATOR]</i></div><div><i> cache:</i></div><div><i> type: geopackage</i></div><div><i> filename: /opt/mapproxy/cache_data/topo_<wbr>esri_tiles.gpk</i></div><div><i> table_name: topo_esri</i></div><div><i><br></i></div><div><i> linz_topo50_cache_gpk:</i></div><div><i> sources: [linz_topo50_source]</i></div><div><i> grids: [GLOBAL_WEBMERCATOR]</i></div><div><i> cache:</i></div><div><i> type: geopackage</i></div><div><i> filename: /opt/mapproxy/cache_data/LINZ_<wbr>topo50_tiles.gpk</i></div><div><i> table_name: linz_topo50</i></div><div><i> </i></div><div><i> linz_topo250_cache_gpk:</i></div><div><i> sources: [linz_topo250_source]</i></div><div><i> grids: [GLOBAL_WEBMERCATOR]</i></div><div><i> cache:</i></div><div><i> type: geopackage</i></div><div><i> filename: /opt/mapproxy/cache_data/LINZ_<wbr>topo250_tiles.gpk</i></div><div><i> table_name: linz_topo250</i></div><div><i><br></i></div><div><i>sources:</i></div><div><i> topo_esri_source:</i></div><div><i> type: tile</i></div><div><i> grid: GLOBAL_WEBMERCATOR</i></div><div><i> url: <a href="http://10.0.0.232:6080/arcgis/rest/services/Topo/MapServer/tile/%(z)s/%(y)s/%(x)s" target="_blank">http://10.0.0.232:6080/arcgis/<wbr>rest/services/Topo/MapServer/t<wbr>ile/%(z)s/%(y)s/%(x)s</a></i></div><div><i><br></i></div><div><i> linz_topo50_source:</i></div><div><i> type: tile</i></div><div><i> transparent: true</i></div><div><i> grid: 'topo50grid'</i></div><div><i> url: <a href="http://tiles-a.data-cdn.linz.govt.nz/services;key=dd53dc504e3b4c37a627fa41a74ffd2b/tiles/v4/layer=2343/EPSG:3857/%(z)s/%(x)s/%(y)s.png" target="_blank">http://tiles-a.data-cdn.linz.g<wbr>ovt.nz/services;key=dd53dc504e<wbr>3b4c37a627fa41a74ffd2b/tiles/<wbr>v4/layer=2343/EPSG:3857/%(z)s/<wbr>%(x)s/%(y)s.png</a></i></div><div><i> </i></div><div><i> linz_topo250_source:</i></div><div><i> type: tile</i></div><div><i> transparent: true</i></div><div><i> grid: 'topo250grid'</i></div><div><i> url: <a href="http://tiles-a.data-cdn.linz.govt.nz/services;key=dd53dc504e3b4c37a627fa41a74ffd2b/tiles/v4/layer=2324/EPSG:3857/%(z)s/%(x)s/%(y)s.png" target="_blank">http://tiles-a.data-cdn.linz.g<wbr>ovt.nz/services;key=dd53dc504e<wbr>3b4c37a627fa41a74ffd2b/tiles/<wbr>v4/layer=2324/EPSG:3857/%(z)s/<wbr>%(x)s/%(y)s.png</a></i></div><div><i><br></i></div><div><i>grids:</i></div><div><i> topo250grid:</i></div><div><i> base: GLOBAL_WEBMERCATOR</i></div><div><i> #num_levels: 6</i></div><div><i> #max_res: 4891.96981025128</i></div><div><i> #res: [611.49622628141, 305.748113140705, 152.8740565703525, 76.43702828517625, 38.21851414258813, 19.109257071294063]</i></div><div><i> topo50grid:</i></div><div><i> base: GLOBAL_WEBMERCATOR</i></div><div><i> #res: [9.554628535647032, 4.777314267823516, 2.388657133911758, 1.194328566955879, 0.5971642834779395, 0.29858214173896974] </i></div><div><i><br></i></div><div><i># globals:</i></div><div><i># image:</i></div><div><i># formats:</i></div><div><i># default_format:</i></div><div><i># format: image/png</i></div><div><i># colors: 0</i></div><div><i># resampling_method: bilinear</i></div></div><div><br></div></div>
</div><br></div>
</div><br></div>