[MapProxy] WMTS service origin challenge

J C cunningham.jared at gmail.com
Thu May 25 17:47:09 PDT 2023


Hi, I'm having difficulty configuring a WMTS service to land in the correct
geography. I believe it is due to the source service origin (X: -2.00377E7 Y:
3.02411E7). I have tried and tried without luck so I am reaching out. I
hope someone else has come across this and can point me in the right
direction. Configuration below.

Thanks,
Jared

## MapProxy 1.15.1

## WMTS services
https://tiles.arcgis.com/tiles/TJH5KDher0W13Kgo/arcgis/rest/services/

## DRAPE 2008 & DRAPE 2014 overlay fine bringing them into QGIS from their
source services

## They do not overlay with after routing through mapproxy

## I believe due to the different origin on the 2008 DRAPE

## I can't figure out proper grid


services:

  demo:

  wmts:

    restful: true


layers:


  - name: drape_2008

    title: 2008 DRAPE

    sources: [drape2008_cache]


  - name: drape_2014

    title: 2014 DRAPE

    sources: [drape2014_cache]


caches:


  drape2008_cache:

    grids: [grid_2008]

    disable_storage: true

    sources: [drape2008_source]


  drape2014_cache:

    grids: [GLOBAL_WEBMERCATOR]

    disable_storage: true

    sources: [drape2014_source]


sources:


  drape2008_source:

    type: tile

    grid: grid_2008

    #grid: GLOBAL_WEBMERCATOR

    url:
https://tiles.arcgis.com/tiles/TJH5KDher0W13Kgo/arcgis/rest/services/DRAPE_2008_TPK/MapServer/WMTS/tile/1.0.0/DRAPE_2008_TPK/default/default028mm/%(z)s/%(y)s/%(x)s


  drape2014_source:

    type: tile

    grid: GLOBAL_WEBMERCATOR

    url:
https://tiles.arcgis.com/tiles/TJH5KDher0W13Kgo/arcgis/rest/services/DRAPE_2014_TPK/MapServer/WMTS/tile/1.0.0/DRAPE_2014_TPK/default/default028mm/%(z)s/%(y)s/%(x)s


grids:


  grid_2008:

    tile_size: [256,256]

    srs: 'EPSG:3857'

    origin: nw

    #bbox_srs: 'EPSG:3587'

    #bbox:
[-8818458.411244446,5437153.8486532895,-8269608.301453497,5832890.140460916]

    #bbox: [-20037700,30241100,4766268.541101,30241100]

    #bbox:
[-20037508.3427999988198280,-20037508.3427999988198280,20037508.3427999988198280,20037508.3427999988198280]

    res: [

            #  res            level     scale @96.0 DPI

          156543.03392800014, #  0   591657527.591555

           78271.51696399994, #  1   295828763.795777

           39135.75848200009, #  2   147914381.897889

           19567.87924099992, #  3    73957190.948944

            9783.93962049996, #  4    36978595.474472

            4891.96981024998, #  5    18489297.737236

            2445.98490512499, #  6     9244648.868618

           1222.992452562495, #  7     4622324.434309

           611.4962262813797, #  8     2311162.217155

          305.74811314055756, #  9     1155581.108577

          152.87405657041106, # 10      577790.554289

           76.43702828507324, # 11      288895.277144

           38.21851414253662, # 12      144447.638572

           19.10925707126831, # 13       72223.819286

           9.554628535634155, # 14       36111.909643

            4.77731426794937, # 15       18055.954822

           2.388657133974685, # 16        9027.977411

          1.1943285668550503, # 17        4513.988705

          0.5971642835598172, # 18        2256.994353

         0.29858214164761665, # 19        1128.497176

    ]


# mapproxy-util scales --as-res-conf 5.590822639405274E8
2.795411319702633E8 1.3977056598513207E8 6.988528299256559E7
3.494264149628279E7 1.7471320748141397E7 8735660.374070698
4367830.187035349 2183915.093518147 1091957.546758601 545978.7733797729
272989.386689414 136494.693344707 68247.3466723535 34123.67333617675
17061.836668560845 8530.918334280423 4265.45916666774 4265.45916666774
1066.3647914306994 --dpi 96
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20230525/21a7c2f9/attachment-0001.htm>


More information about the MapProxy mailing list