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&#39;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&#39;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> &lt;<a href="mailto:gregor@hostgis.com">gregor@hostgis.com</a>&gt; 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>&gt; I got it to<br>&gt; 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&amp;service=wms&amp;version=1.1.1&amp;request=getmap&amp;SRS=EPSG:4326&amp;layers=grap,grcad,cadbd,propbd,fmbl,varbl&amp;BBOX=144.841,-34.5838,146.344,-34.0477&amp;format=image/png&amp;width=800&amp;height=600&amp;styles=">
http://192.168.1.130/cgi-bin/mapserv?map=/var/www/mapfiles/mswmsrq.map&amp;service=wms&amp;version=1.1.1&amp;request=getmap&amp;SRS=EPSG:4326&amp;layers=grap,grcad,cadbd,propbd,fmbl,varbl&amp;BBOX=144.841,-34.5838,146.344,-34.0477&amp;format=image/png&amp;width=800&amp;height=600&amp;styles=
</a><br><br><br>Seems pretty normal to me. A styles param is optional, and it&#39;s normal<br>for a WMS client to include a blank styles param. Don&#39;t worry about that.<br><br>It&#39;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&#39;s been fixed. ;)<br><br><br>&gt; Despite this I cannot get WMS requests out of OpenLayers to work at all,
<br>&gt; 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&#39;s access_log and then tried pasting<br>those URLs into your browser? That&#39;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&#39;s going on.<br><br>--<br>Gregor Mosheh / Greg Allensworth<br>System Administrator, HostGIS cartographic development &amp; hosting services
<br><a href="http://www.HostGIS.com/">http://www.HostGIS.com/</a><br><br>&quot;Remember that no one cares if you can back up,<br>&nbsp;&nbsp;only if you can restore.&quot; - AMANDA<br></blockquote></div><br>