[MapProxy] Problems creating WMS from existing Tile Server

Thomas Konrad tkonrad at gmx.net
Thu Jun 19 12:52:23 PDT 2014


Hello Oliver,

thanks for your response! I got it working with the following configuration (it was indeed the grid which I had to change to GLOBAL_WEBMERCATOR):

#####################

services:
  demo:
  wms:
    md:
      title: ViennaGIS Multi-Porpose WMS Server

layers:
  - name: vienna_gis
    title: ViennaGIS Multi-Purpose Map (WMS layer)
    sources: [vienna_cache]

caches:
  vienna_cache:
    grids: [GLOBAL_WEBMERCATOR]
    sources: [vienna_source]

sources:
  vienna_source:
    type: tile
    grid: GLOBAL_WEBMERCATOR
    url: http://www.wien.gv.at/wmts/fmzk/pastell/google3857/%(z)s/%(y)s/%(x)s.jpeg
    coverage:
      bbox: [1799448.394855, 6124949.747770, 1848250.442089, 6162571.828177]
      srs: 'EPSG:3857'

grids:
  vienna_grid:
    srs: 'EPSG:3857'
    origin: 'nw'
    bbox: [1799448.394855, 6124949.747770, 1848250.442089, 6162571.828177]
    res: [
         #  res            level     scale @90.7 DPI
       156543.0339281200, #  0   559082264.02900004
        78271.5169642000, #  1   279541132.01499999
        39135.7584819600, #  2   139770566.00700000
        19567.8792410080, #  3    69885283.00360000
         9783.9396205040, #  4    34942641.50180000
         4891.9698102520, #  5    17471320.75090000
         2445.9849051260, #  6     8735660.37545000
         1222.9924525644, #  7     4367830.18773000
          611.4962262808, #  8     2183915.09386000
          305.7481131404, #  9     1091957.54693000
          152.8740565705, # 10      545978.77346600
           76.4370282852, # 11      272989.38673300
           38.2185141425, # 12      136494.69336600
           19.1092570713, # 13       68247.34668320
            9.5546285356, # 14       34123.67334160
            4.7773142678, # 15       17061.83667080
            2.3886571339, # 16        8530.91833540
            1.1943285670, # 17        4265.45916770
            0.5971642835, # 18        2132.72958385
            0.2985821417, # 19        1066.36479193
    ]
    tile_size: [256, 256]

#####################

Thanks again
Thomas

Am 12.06.2014 um 08:25 schrieb Oliver Tonnhofer <olt at omniscale.de>:

> 
> On 10.06.2014, at 18:41, Thomas Konrad wrote:
>> first of all: Thanks for creating MapProxy and for making it so well-documented and Open Source!
>> 
>> I’m currently trying to create a WMS service out of a WMTS tile service (so I need a conversion between the two formats) and I’m having trouble with it. The source is the ViennaGIS multi-porpose map (https://www.wien.gv.at/stadtplan/). The capabilities document is here: http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml. I followed the instructions at http://lists.osgeo.org/pipermail/mapproxy/2013-August/001674.html to calculate the right scale factors and generally followed http://mapproxy.org/docs/nightly/configuration_examples.html#create-wms-from-existing-tile-server for the basic configuration (by the way, I’m using the 1.7.0a nightly build).
> 
>> Here’s the configuration I came up with (mapproxy.yaml):
> [...]
>> sources:
>> vienna_source:
>>   type: tile
>>   grid: vienna_grid
>>   url: http://www.wien.gv.at/wmts/fmzk/pastell/google3857/%(z)s/%(y)s/%(x)s.jpeg
> 
> 
> google3857 suggests that the tiles are in the Google/OSM webmercator grid. Have you tried GLOBAL_WEBMERCATOR?
> Setting the BBOX for a grid changes how the tile coordinates are calculated. You can use the coverage feature to limit the extent of the service.
> 
> Regards,
> Oliver
> 
> -- 
> Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.com
> http://mapproxy.org | https://github.com/olt    | @oltonn
> 
> 
> 
> 
> 
> 
> 



More information about the MapProxy mailing list