Opened 8 years ago

Closed 8 years ago

#1622 closed defect (fixed)

MapProxy does not load WMS from MapServer 7.0

Reported by: kalxas Owned by: live-demo@…
Priority: major Milestone: OSGeoLive9.5
Component: OSGeoLive Keywords: mapproxy, mapserver
Cc: live-demo@…


When launching MapProxy demo with MapServer as backend, there is an error message: "no image returned from source WMS..."

With rest of the backends, MapProxy works fine.

Change history (9)

comment:1 by kalxas, 8 years ago

Priority: normalmajor

Full error message:

<ServiceExceptionReport version="1.1.1"><ServiceException>
msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

comment:2 by kalxas, 8 years ago

The following is missing from the definition:


so WMS is not enabled in the MapServer demo.

comment:3 by kalxas, 8 years ago

After manually enabling WMS:

[2016-03-05 09:42:24,509] mapproxy.source.wms - WARNING - no image returned from source WMS: http://localhost/cgi-bin/mapserv?styles=&,5148502.94031,588593.99947,5374080.34959&layers=airports,cities,lakespy2,dlgstln2,roads,twprgpy3&service=WMS&width=512&request=GetMap&srs=EPSG%3A26915&version=1.1.1, response was: <?xml version='1.0' encoding="UTF-8" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM "">
<ServiceExceptionReport version="1.1.1">
<ServiceException code="InvalidSRS">
msWMSLoadGetMapParams(): WMS server error. Cannot set new SRS on a map that doesn&#39;t have any projection set. Please make sure your mapfile has a projection defined at the top level.

[info] - - [05/Mar/2016 09:42:24] "GET /service?LAYERS=mapserver&FORMAT=image%2Fpng&SRS=EPSG%3A26915&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&BBOX=340546.9654375,5129117.3817,611063.6242225,5393465.9082&WIDTH=614&HEIGHT=600 HTTP/1.1" 200 -

comment:4 by tbonfort, 8 years ago

The mapfile is missing a projection block, which is default projection to use for a layer that has no projection defined.

Last edited 8 years ago by tbonfort (previous) (diff)

comment:5 by kalxas, 8 years ago

Thanks Thomas, The file has this part commented out.

  # Projection definition, consult the PROJ.4 documentation for parameter discussion
  #   "proj=utm"
  #   "ellps=GRS80"
  #   "zone=15"
  #   "north"
  #   "no_defs"
  #   OR:
  #   "init=epsg:26915"
  # END

comment:6 by kalxas, 8 years ago

I am going to patch the map file for now, but I think this has to be fixed upstream.

comment:9 by kalxas, 8 years ago

Resolution: fixed
Status: newclosed


Note: See TracTickets for help on using tickets.