[MapProxy] WMTS source reprojection problem

Mikko Kutilainen mikko93 at gmail.com
Sun Feb 7 07:31:25 PST 2016


Hi,
I would like to use WMTS service as a source with projection EPSG:3006 and serve that as tiles in global_webmercator grid. I am demonstrating my problem with other grid and source because the one I want to use is not public.

I did fresh installation of MapProxy 1.8.0 and my current mapproxy.yaml looks like this:


services:
  demo:
  tms:
    use_grid_names: false
    origin: 'nw'

layers:
  - name: sverige
    title: sverige
    sources: [cache_sverige]

caches:
  cache_sverige:
    grids: [GLOBAL_WEBMERCATOR]
    meta_size: [4, 4]
    sources: [cache_sverige_original]
    disable_storage: true
    cache:
      type: mbtiles
  cache_sverige_original:
    grids: [grid_sverige]
    disable_storage: true
    sources: [source_sverige]

sources:
  source_sverige:
    type: tile
    grid: grid_sverige
    url: 'http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=europa&STYLE=default&TILEMATRIXSET=EPSG:25833&TILEMATRIX=EPSG:25833:%(z)s&TILEROW=%(y)s&TILECOL=%(x)s&FORMAT=image/png'

grids:
  grid_sverige:
    srs: EPSG:25833
    bbox: "227879.8880, 3932632.6543, 1044484.3835, 8893131.0281"
    origin: nw



Basically what I am doing here is to get tiles in global_webmercator from EPSG:25833 source. GetCapabilities of the source is here http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?service=WMTS&request=GetCapabilities&version=1.0.0 <http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?service=WMTS&request=GetCapabilities&version=1.0.0>. I know there would be tiles in correct projection, but I want to test reprojection because there is no other projections in my source what I want to use.


With request "/tiles/sverige_EPSG3857/9/278/141.png" I get just blue ocean tile instead of land piece from sverige. I have been struggling with this problem for one week now. Can anyone say what I am doing wrong with the reproduction?





Best Regards,
Mikko Kutilainen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20160207/f13a5764/attachment.html>


More information about the MapProxy mailing list