[MapProxy] WMS-C as a source

Oliver Tonnhofer olt at omniscale.de
Tue Mar 6 11:46:13 EST 2012


On 06.03.2012, at 17:21, Jeff Konnen wrote:
> I tried this conf:
> [...]
> layers:
>   - name: Ortho
>     title: Ortho
>     sources: [ign_ortho_tile]
> [...]
> sources:
>   ign_ortho_tile:
>     type: tile
>     url: http://xxx.xxx.xx/wmsc?service=WMS&request=GetMap&version=1.1.1&layers=ORTHOIMAGERY.ORTHOPHOTOS&styles=&srs=EPSG:310024802&format=image/jpeg&width=256&height=256&bbox=%(bbox)s
>     format: image/jpeg
>     grid: mygrid

You can't use tile sources directly in WMS layers, you need to put a cache in between. See http://mapproxy.org/docs/nightly/configuration.html#disable-storage if you don't want to use the actual cache.


> but I keep getting this error when starting the service:
> 
> (mapproxy)[root at todd_ign mymapproxy]# mapproxy-util serve-develop mapproxy.yaml -b 0.0.0.0
> [2012-03-06 17:02:10,661] mapproxy.config - INFO - reading: mapproxy.yaml
> [2012-03-06 17:02:10,685] mapproxy.config - WARNING - unknown 'format' in grids.mygrid
> [2012-03-06 17:02:10,685] mapproxy.config - WARNING - unknown 'format' in sources.ign_ortho_tile
> [2012-03-06 17:02:10,766] mapproxy.system - INFO - using libproj for coordinate transformation
> [2012-03-06 17:02:10,779] mapproxy.system - INFO - loading proj data from /usr/share/proj/
> [...]
>   File "/home/mapserver/mapproxy/lib/python2.6/site-packages/mapproxy/config/loader.py", line 784, in source
>     format = file_ext(params['format'])
> KeyError: 'format'

It looks like https://bitbucket.org/olt/mapproxy/issue/39/parameter-format-non-defined-if-using
I think it is related to the use of a tile source, but I will check that, now that I have an example to reproduce this error.

> The other question is about BBOX and SRS. Actually in this case I want to use the BBOX in the WMS-C SRS (310024802), will this be used in the requests? 
> I could not try it out.

It will use the SRS of the grid, so it should work.


Regards,
Oliver

-- 
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://bitbucket.org/olt | @oltonn






More information about the MapProxy mailing list