HostGIS+OpenLayers WMS requests to mapserver problems

Christopher Schmidt crschmidt at METACARTA.COM
Thu Dec 13 20:08:50 PST 2007


On Thu, Dec 13, 2007 at 08:26:09PM -0700, Gregor Mosheh wrote:
> Bradley McLain wrote:
> >I got it to 
> >finally display again using the request shown below:
> 
> http://192.168.1.130/cgi-bin/mapserv?map=/var/www/mapfiles/mswmsrq.map&service=wms&version=1.1.1&request=getmap&SRS=EPSG:4326&layers=grap,grcad,cadbd,propbd,fmbl,varbl&BBOX=144.841,-34.5838,146.344,-34.0477&format=image/png&width=800&height=600&styles= 
> 
> 
> Seems pretty normal to me. A styles param is optional, 

A styles parameter is not optional according to the WMS 1.1 spec, nor is
it optional in MapServer 5.0. (This is probably the single most
"controversial" change in 5.0, and I believe it's going away in 5.0.1.)

> It's also very normal to require the width, height, bbox, and SRS, and 
> format. If it was working before without them, defaulting to whatever 
> was in the mapfile, then that was a lax enforcement of WMS standard and 
> you should be glad it's been fixed. ;)

I disagree with this statement, but I do agree that those parameters are
required as part of the WMS spec, and if you're using MS 5.0, it seems
likely that this is the change you are running into.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the MapServer-users mailing list