[MapProxy] Can't get reprojecting tiles from WMTS service to work

Simon Poole simon at poole.ch
Wed Nov 14 04:50:27 PST 2018


Hi all

I'm fairly stumped at this point and maybe somebody can enlighten me
what I'm doing wrong. I need to reproject tiles from a WMTS server in
EPSG:2056 to a conventional google/OSM tile service. When running in
debug mode the request urls built have tile numbers that are rather off,
but it is no clear at all why.

If anybody could help, we would be very grateful.

Simon

Configuration file:

services:
  demo:
  tms:
    use_grid_names: true
    # origin for /tiles service
    origin: 'nw'

layers:
  - name: agis2017
    title: AGIS 2017
    sources: [agis_2017_cache]

caches:
  agis_2017_cache:
    grids: [GLOBAL_WEBMERCATOR]
    sources: [agis_2017_orig]
  agis_2017_orig:
    disable_storage: true
    sources: [agis_2017_source]
    grids: [agis_grid]

sources:
  agis_2017_source:
    type: tile
    grid: agis_grid
    url:
'http://www.ag.ch/geoportal/rest/services/base_ortho2017/MapServer/WMTS/tile/1.0.0/base_ortho2017/default/default028mm/%(z)s/%(y)s/%(x)s'
    coverage:
       srs: EPSG:2056
       bbox: [2620000, 1220000, 2677500, 1275000]

grids:
    agis_grid:
        origin: nw
        srs: EPSG:2056
        bbox: [2620000, 1220000, 2677500, 1275000]
        res: [500,250,100,50,20,10,5,2.5,2,1.5,1,0.5,0.25,0.1]
globals:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20181114/2ccd10ee/attachment.sig>


More information about the MapProxy mailing list