So I have been using a lax enforcement of WMS for a while then lol.<br><br>So if I have understood correctly then if I correctly specify these details in the mapfile itself then if a parameter is blank it should default to that? Thereby avoiding any errors?
<br><br>I am hoping that that will fix the problem since I don't have many of these things specified as I was using only the bare essentials before.<br><br>I will try this and also try a mapserver layer too, to do some tests and get back to you.
<br><br>Where can I access the webserver's access_log?<br><br>Cheers<br><br>Brad<br><br>PS: Question was posted to OpenLayers lists as well<br><br><div><span class="gmail_quote">On 14/12/2007, <b class="gmail_sendername">
Gregor Mosheh</b> <<a href="mailto:gregor@hostgis.com">gregor@hostgis.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Bradley McLain wrote:<br>> I got it to<br>> finally display again using the request shown below:<br><br><a href="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=">
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=
</a><br><br><br>Seems pretty normal to me. A styles param is optional, and it's normal<br>for a WMS client to include a blank styles param. Don't worry about that.<br><br>It's also very normal to require the width, height, bbox, and SRS, and
<br>format. If it was working before without them, defaulting to whatever<br>was in the mapfile, then that was a lax enforcement of WMS standard and<br>you should be glad it's been fixed. ;)<br><br><br>> Despite this I cannot get WMS requests out of OpenLayers to work at all,
<br>> even adding all of the extra parameters it is asking for.<br><br>Since WMS seems to be working, this must be an OpenLayers issue.<br>Fortunately, I use OpenLayers and Mapserver-WMS all the time; MapServer<br>is my favorite WMS server. :)
<br><br>So, you should probably take this up on the OpenLayers list (of which<br>several of us are also members) as being OL failing to load an<br>otherwise-functioning WMS layer.<br><br>The first things I would ask from a OL perspective:
<br>* Have you tried OpenLayers.Layer.MapServer and gotten the same results?<br>* Have you watched the webserver's access_log and then tried pasting<br>those URLs into your browser? That's my #1 debugging method.<br>
<br>And if you can make the server and the map accessible, that would go a<br>long way towards us being able to guess what's going on.<br><br>--<br>Gregor Mosheh / Greg Allensworth<br>System Administrator, HostGIS cartographic development & hosting services
<br><a href="http://www.HostGIS.com/">http://www.HostGIS.com/</a><br><br>"Remember that no one cares if you can back up,<br> only if you can restore." - AMANDA<br></blockquote></div><br>