I'm having problems making MapProxy render a Mapserver WMS layer. My configuration file looks like this:
services:
wms:
srs: ['EPSG:3785', 'EPSG:4326', 'EPSG:23028']
image_formats: ['image/jpg', 'image/png']
layers:
name: mylayer
title: My layer
sources: [my_wms_source]
sources:
my_wms_source:
type:wms
req:
url: http://mydomain/cgi-bin/mapserv?
layers: mylayer_in_mapserver
map: /path/to/my/mapfile.map
Direct queries to mapserver work fine. So, a query like this works:
The key, I think, is in the bounding box. If I deploy MapProxy with debug activated and try to see my WMS source through the demo app, queries like these are raised:
And that query doesn't work, because the bounding box is in a different coordinate system (I guess epsg:3785).
How could I control that? The bbox is used for WMS queries. I've tried the 'srs' parameter in the wms option of the 'services' section, but it doesn't work. Any clues?
Thanks in advance, and best regards