[Geomoose-users] Changes to mapserver-type layer handling in GM 2.6?

Johan Forsman Johan.Forsman at LA.GOV
Mon Apr 16 15:24:48 EDT 2012


All:

I am slowly migrating a GM 2.2 site with some minor customizations to 2.6 and am wondering if what I am observing with my mapserver layers is by design or an error on my part.

On 2.6 it appears that all mapserver layers are requested as WMS which appears to result in 

1) any mapserver-type layer returns an error if the map file does not at least contain something like 'ows_enable_request' '*', and 

2) using the "all" parameter in the layer definition in the mapbook returns an error.

For example, in the 2.2 environment I have a "roads" source defined in the mapbook very simply as such:

<map-source name="roads_simple" type="mapserver" >
	<file>./sdwp/roads/webmaps_osm_lahwys.map</file>
<layer name="all"/>

<layer title="Roads" src="roads_simple/all" status="off" legend="true" show-legend="true" fade="false" unfade="false"/>

The forwarded URL request is:

http://oph-isb-gis01/cgi-bin/mapserv.exe?map=/mapserver/apps/geomoose2/maps//sdwp/roads/webmaps_osm_lahwys.map&layers=all&mode=map&mapext=-10879743+3088767+-9475743+4200267&imgext=-10879743+3088767+-9475743+4200267&map_size=1404+1111&imgx=702&imgy=555.5&imgxy=1404+1111

The map file contains many scale-dependent line- and annotation layers and renders beautifully.

In the 2.6 environment the same mapbook definition and mapfile results in this call:

http://oph-isb-gis01/cgi-bin/mapserv.exe?
MAP=/mapserver/apps/geomoose26/maps//sdwp/roads/webmaps_osm_lahwys.map&FORMAT=image/png&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=all&SRS=EPSG%3A3857&BBOX=-10706687.23566,3214635.152984,-9648798.7643401,4074398.847016&WIDTH=865&HEIGHT=703

which returns:

<ServiceException code="LayerNotDefined">
msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter.
</ServiceException>

I have unsuccessfully searched for documentation on this topic. Please advise.

Thanks!
Johan Forsman
Geologist
Engineering Services
LDHH-OPH-CEHS
225.342.7309




More information about the Geomoose-users mailing list