[MapProxy] Problems configuring MapProxy to serve WMS layer

Oliver Tonnhofer olt at omniscale.de
Wed Nov 16 02:48:37 EST 2011


Hi,

the BBOX (-506.77734375,-266.8359375,370.01953125,190.1953125) _is_ in EPSG:4326. You are just a bit too far zoomed out and the OpenLayers demo client will request that BBOX without any clipping. MapProxy doesn't know the extent of the cascaded service with your first configuration and forwards the requested BBOX to Mapserver. The second configuration contains an extent from the GLOBAL_MERCATOR grid and MapProxy can clip the BBOX.

You can get the first example to work if you add a coverage to your source: http://mapproxy.org/docs/latest/coverages.html

Regards,
Oliver

On 15.11.2011, at 18:05, Jorge Arévalo wrote:

> Hi,
> 
> Many thanks for the link. It helped me to solve my problem. The
> 'supported_srs' option and a couple of things related with my network
> configuration did the trick. I finally came with:
> 
> services:
>  wms:
>    srs: ['EPSG:3785', 'EPSG:4326', 'EPSG:23028']
>    image_formats: ['image/jpg', 'image/png']
> 
> layers:
>  name: mylayer
>  title: My layer
>  sources: [my_cache]
> 
> caches:
>  my_cache:
>    grids: [GLOBAL_MERCATOR]
>    sources: [my_wms_source]
>    format: image/png
>    request_format: image/png
> 
> sources:
>   my_wms_source:
>    type:wms
>    req:
>      url: http://ip_of_my_mapserver_machine/cgi-bin/mapserv?
>      layers: mylayer_in_mapserver
>      map: /path/to/my/mapfile.map
>  supported_srs:['EPSG:3785', 'EPSG:4326', 'EPSG:23028']
> 

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




More information about the MapProxy mailing list