Opened 3 years ago

Closed 3 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@…

Description

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 Changed 3 years ago by kalxas

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.
</ServiceException></ServiceExceptionReport>

comment:2 Changed 3 years ago by kalxas

The following is missing from the itasca.map definition:

WMS_ENABLE_REQUEST "*"

so WMS is not enabled in the MapServer? demo.

comment:3 Changed 3 years ago by kalxas

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=&map=%2Fusr%2Flocal%2Fwww%2Fdocs_maps%2Fmapserver_demos%2Fworkshop%2Fitasca.map&format=image%2Fpng&height=512&bbox=363016.59019,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 "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
<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.
</ServiceException>
</ServiceExceptionReport>

[info] 127.0.0.1 - - [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 Changed 3 years ago by tbonfort

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

MAP
 ...
 PROJECTION
  "+init=epsg:4326"
 END
 ...
END
Last edited 3 years ago by tbonfort (previous) (diff)

comment:5 Changed 3 years ago by kalxas

Thanks Thomas, The itasca.map file has this part commented out.

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

comment:6 Changed 3 years ago by kalxas

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

comment:9 Changed 3 years ago by kalxas

Resolution: fixed
Status: newclosed

Fixed

Note: See TracTickets for help on using tickets.