[MapProxy] mapproxy with mapserver srs problem

Rahkonen Jukka jukka.rahkonen at mmmtike.fi
Tue Oct 15 01:29:55 PDT 2013


Hi,

Try with capital letters EPSG in
"wms_srs" "epsg:31468 epsg:31494 epsg:4326 epsg:900913"

It is not necessarily mentioned in Mapserver WMS documents that but I am remembering that it must be EPSG. Send a message if it happens to be the case.

Because Mapserver is your own you can check the requests which are sent by MapProxy by looking at what comes in for Mapserver from the Apache access.log.

-Jukka Rahkonen-


karsten wrote:

Hi,

I have installed mapproxy on my Ubuntu server outside the virtual environment (the virtual env  was troublesome so I for now settled for this option).
I am able to run the demo site with both the regular apache server and also the test server.
This works great. I now added one MapServer layer (which is located on the same server. I tested again that my wms is working and it is e.g.

http://terra2.terragis.net/cgi-bin/mapserv?map=/mnt/maps/vfs_mapproxytest.map&LAYERS=gemeinde_merc&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=1160758.2358917,6226544.0158282,1273273.5415119,6351442.1200288&WIDTH=736&HEIGHT=817


Now when I try to use MapProxy I always get a message back that the SRS is not valid for all layers. However there is only one layer in the map files and it has  teh following srs configured:
    "wms_srs" "epsg:31468 epsg:31494 epsg:4326 epsg:900913"

My questions  are

1. is there a way (hopefully outside of python and in the configuration files) to not only log the actual WMS request MapProxy makes to MapServer . So far I could only see the requests made ot the MapProxy service (I saw that in the console output and the apache log file)

2. Is there anything obvious wrong with my configuration ( see below) so I can not get any images back from MapServer / MapProxy ?

Cheers
Karsten

------------------------------------------------------------------------------------------------
In MapProxy yaml I have added to the demo layers this:

... snip ....
layers:
  - name: gemeinde
    title: Gemeinden in Bayern
    sources: [gemeinde_cache]

caches:
  gemeinde_cache:
    grids: [bayern]
    sources: [gemeinde_wms]


sources:
  gemeinde_wms:
    type: mapserver
    req:
      layers: gemeinde_merc
      map: /mnt/maps/vfs_mapproxytest.map
    mapserver:
      binary: /var/www/cgi-bin/mapserv<http://localhost/cgi-bin/mapserv>
      working_dir: /mnt/maps/
    coverage:
      bbox: [1025548.802262,6027618.553381,1540090.415317,6519963.998869]
      bbox_srs: 'EPSG:900913'

grids:
    bayern:
        base: GLOBAL_WEBMERCATOR

globals:
  image:
    formats:
      terra_image_jpeg:
        format: image/jpeg
        resampling_method: nearest
    jpeg_quality: 90

...
Karsten Vennemann
Principal

Terra GIS LTD
2119 Boyer Ave E
Seattle, WA  98112
USA
www.terragis.net<http://www.terragis.net/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20131015/310a643f/attachment-0001.html>


More information about the MapProxy mailing list