<div dir="ltr">
<div>I think you may need to provide more information in your grid 
definition for the source. You can use your wmts getcapaiblites and the 
mapproxy-util to help with the scales</div><div><a href="https://mapproxy.org/docs/nightly/mapproxy_util.html#mapproxy-util-scales" target="_blank">https://mapproxy.org/docs/nightly/mapproxy_util.html#mapproxy-util-scales</a></div><div><br></div><div>This worked for me for a ESRI WMTS <br></div><div><br></div><div>grids:<br>   spherical_mercator:<br>      srs: EPSG:3857<br>      res_factor: 2<br>      num_levels: 22<br>      bbox: [-20037508, -20037508, 20037508, 20037508]<br>      bbox_srs: EPSG:3857<br>      tile_size: [256,256]<br>      origin: sw<br>   GoogleMapsCompatible:<br>      origin: nw<br>      bbox: [-20037508, -20037508, 20037508, 20037508]<br>      bbox_srs: EPSG:3857<br>      tile_size: [256,256]<br>      srs: EPSG:3857<br>      res: [<br>           #  res            level     scale @90.7 DPI<br>         156543.0339280410, #  0   559082264.02871776<br>          78271.5169640205, #  1   279541132.01435888<br>          39135.7584820102, #  2   139770566.00717941<br>          19567.8792410051, #  3    69885283.00358970<br>           9783.9396205026, #  4    34942641.50179486<br>           4891.9698102513, #  5    17471320.75089743<br>           2445.9849051256, #  6     8735660.37544871<br>           1222.9924525628, #  7     4367830.18772436<br>            611.4962262814, #  8     2183915.09386218<br>            305.7481131407, #  9     1091957.54693109<br>            152.8740565704, # 10      545978.77346554<br>             76.4370282852, # 11      272989.38673277<br>             38.2185141426, # 12      136494.69336639<br>             19.1092570713, # 13       68247.34668319<br>              9.5546285356, # 14       34123.67334160<br>              4.7773142678, # 15       17061.83667080<br>              2.3886571339, # 16        8530.91833540<br>              1.1943285670, # 17        4265.45916770<br>              0.5971642835, # 18        2132.72958385<br>      ]<br></div><div><br></div><div>caches:<br></div><div>   toronto_1978_cache:<br>      grids: [GoogleMapsCompatible, spherical_mercator]<br>      sources: [toronto_1978_tms]<br>      bulk_meta_tiles: true<br>      cache:<br>        type: sqlite<br>        directory: /opt/caches/sqlite/toronto_1978_cache</div><div><br></div><div>sources:<br></div><div>  toronto_1978_tms:<br>      type: tile<br>      url: '<a href="https://gis.toronto.ca/arcgis/rest/services/basemap/cot_historic_aerial_1978/MapServer/WMTS/tile/1.0.0/basemap_cot_historic_aerial_1978/default/GoogleMapsCompatible/%(z)s/%(y)s/%(x)s" target="_blank">https://gis.toronto.ca/arcgis/rest/services/basemap/cot_historic_aerial_1978/MapServer/WMTS/tile/1.0.0/basemap_cot_historic_aerial_1978/default/GoogleMapsCompatible/%(z)s/%(y)s/%(x)s</a>'<br>      grid: GoogleMapsCompatible<br>      transparent: true<br>      on_error:<br>         404:<br>            response: transparent<br>            cache: false<br> #     coverage:<br> #      datasource: "PG: dbname='postgis_db' host=foobar user='foobar' password='foobar'"<br> #      where: 'SELECT boundary_3857 FROM layer WHERE id = 379'<br> #     srs: 'EPSG:3857'</div>

</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 8 Oct 2020 at 06:55, 4 t <<a href="mailto:d.viert@googlemail.com">d.viert@googlemail.com</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 dir="ltr">Hello everyone,<br><br><div>i am currently failing to convert a swiss wmts service in EPSG code 2056 to a WMTS in the globalwebmercator with mapproxy.</div><div>Can anyone tell me where the mistake lies? Thank you very much in advance.</div><div><br></div><div>My configuration (yaml-file):</div><div><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>layers:</div><div>   - name: ch_basiskarte                        #online<br>     title: Basiskarte Zuerich<br>     sources: [ch_basiskarte_cache]</div><div>caches:</div><div>    ch_basiskarte_cache:<br>        sources: [ch_basiskarte_cache_old]<br>        format: image/png<br>        disable_storage: false<br>        grids: ['GLOBAL_WEBMERCATOR']<br>    ch_basiskarte_cache_old:<br>        sources: [ch_basiskarte_tiles]<br>        format: image/png<br>        disable_storage: false<br>        grids: CH1903</div><div>sources:</div><div>    ch_basiskarte_tiles:<br>        type: tile<br>        url: <a href="https://www.ogd.stadt-zuerich.ch/mapproxy/wmts/1.0.0/Basiskarte_Zuerich_Raster/default/%(tms_path)s.%(format)s" target="_blank">https://www.ogd.stadt-zuerich.ch/mapproxy/wmts/1.0.0/Basiskarte_Zuerich_Raster/default/%(tms_path)s.%(format)s</a><br>        grid: CH1903</div><div> grids:<br></div><div>
    

CH1903:<br>        srs: EPSG:2056<br> </div></blockquote><div><br></div><div>Kind regards,</div><div>David      <br></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>