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

Jim Klassen klassen.js at gmail.com
Mon Apr 16 16:02:06 EDT 2012


It was intentional to migrate to using WMS over the MapServer specific calls in the default case as it eases interoperability with other servers and simplifies the code in many cases.

I don't think it was intentional to loose the layers=all trick (which was implemented inside MapServer not GeoMoose).  Do any of the suggestions in the MapServer ticket referenced by Bob work as a workaround for you?

While 2.6 is near to release, one of the bigger tasks left is finishing up documentation.  Thank you for testing and bring this to our attention.

On Apr 16, 2012, at 2:24 PM, Johan Forsman wrote:

> 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
> 
> 
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users



More information about the Geomoose-users mailing list