Dear list,<div><br></div><div>Today I set up a MapServer WMS service. The service seems to work just fine, as I tested it with QGIS. Even the SRS is recognized automatically: EPSG:28992 (Dutch CS).</div><div>At the bottom of this message, I copy/pasted the GetCapabilites-response.</div>
<div><br></div><div>The bit of JavaScript used to load the OpenLayers control + map + layer, is classical:</div><div><br></div><div>============</div><div><div><br></div><div> var map, layer;</div><div>  function init(){</div>
<div>    map = new OpenLayers.Map( &#39;map&#39; );</div><div>    layer = new OpenLayers.Layer.WMS( &quot;OpenLayers WMS&quot;, &quot;<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;</a>&quot;, { layers : &#39;pgn_verwachting&#39; }, { units : &#39;m&#39;, projection : new OpenLayers.Projection(&quot;EPSG:28992&quot;), singleTile : true, buffer : 0, ratio : 1 } );</div>
</div><div><br></div><div>============</div><div><br></div><div>In my browser, OpenLayers does load nicely (zoom and pan tools become available in the upper right corner of an empty map-div) and then does the following GET to fetch that single tile:</div>
<div><a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;LAYERS=pgn_verwachting&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;FORMAT=image%2Fjpeg&amp;SRS=EPSG%3A28992&amp;BBOX=-281.25,-210.9375,281.25,210.9375&amp;WIDTH=800&amp;HEIGHT=600">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;LAYERS=pgn_verwachting&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;FORMAT=image%2Fjpeg&amp;SRS=EPSG%3A28992&amp;BBOX=-281.25,-210.9375,281.25,210.9375&amp;WIDTH=800&amp;HEIGHT=600</a></div>
<div><br></div><div>I don&#39;t see how I can get the BBOX parameter right... What am I missing? When I edit the above URL, it works just fine, obviously...</div><div><br></div><div>And shouldn&#39;t the SRS be detected automatically as well?</div>
<div><br></div><div>Hints are much appreciated!</div><div><br></div><div>Kind regards,</div><div><br></div><div><br></div><div>Rob</div><div><br></div><div><br></div><div><br></div><div>=============== GetCapabilities response ======================</div>
<div>&lt;?xml version=&#39;1.0&#39; encoding=&quot;ISO-8859-1&quot; standalone=&quot;no&quot; ?&gt;</div><div><div>&lt;!DOCTYPE WMT_MS_Capabilities SYSTEM &quot;<a href="http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd">http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd</a>&quot;</div>
<div> [</div><div> &lt;!ELEMENT VendorSpecificCapabilities EMPTY&gt;</div><div> ]&gt;  &lt;!-- end of DOCTYPE declaration --&gt;</div><div><br></div><div>&lt;WMT_MS_Capabilities version=&quot;1.1.1&quot;&gt;</div><div><br>
</div><div>&lt;!-- MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE --&gt;</div>
<div><br></div><div>&lt;Service&gt;</div><div>  &lt;Name&gt;OGC:WMS&lt;/Name&gt;</div><div>  &lt;Title&gt;Beleidskaart_Binnenstad&lt;/Title&gt;</div><div>  &lt;OnlineResource xmlns:xlink=&quot;<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>&quot; xlink:href=&quot;<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp</a>;&quot;/&gt;</div>
<div>  &lt;ContactInformation&gt;</div><div>  &lt;/ContactInformation&gt;</div><div>&lt;/Service&gt;</div><div><br></div><div>&lt;Capability&gt;</div><div>  &lt;Request&gt;</div><div>    &lt;GetCapabilities&gt;</div><div>
      &lt;Format&gt;application/vnd.ogc.wms_xml&lt;/Format&gt;</div><div>      &lt;DCPType&gt;</div><div>        &lt;HTTP&gt;</div><div>          &lt;Get&gt;&lt;OnlineResource xmlns:xlink=&quot;<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>&quot; xlink:href=&quot;<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp</a>;&quot;/&gt;&lt;/Get&gt;</div>
<div>          &lt;Post&gt;&lt;OnlineResource xmlns:xlink=&quot;<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>&quot; xlink:href=&quot;<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp</a>;&quot;/&gt;&lt;/Post&gt;</div>
<div>        &lt;/HTTP&gt;</div><div>      &lt;/DCPType&gt;</div><div>    &lt;/GetCapabilities&gt;</div><div>    &lt;GetMap&gt;</div><div>      &lt;Format&gt;image/gif&lt;/Format&gt;</div><div>      &lt;Format&gt;image/png&lt;/Format&gt;</div>
<div>      &lt;Format&gt;image/png; mode=24bit&lt;/Format&gt;</div><div>      &lt;Format&gt;image/jpeg&lt;/Format&gt;</div><div>      &lt;Format&gt;image/vnd.wap.wbmp&lt;/Format&gt;</div><div>      &lt;Format&gt;image/tiff&lt;/Format&gt;</div>
<div>      &lt;Format&gt;image/svg+xml&lt;/Format&gt;</div><div>      &lt;DCPType&gt;</div><div>        &lt;HTTP&gt;</div><div>          &lt;Get&gt;&lt;OnlineResource xmlns:xlink=&quot;<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>&quot; xlink:href=&quot;<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp</a>;&quot;/&gt;&lt;/Get&gt;</div>
<div>          &lt;Post&gt;&lt;OnlineResource xmlns:xlink=&quot;<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>&quot; xlink:href=&quot;<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp</a>;&quot;/&gt;&lt;/Post&gt;</div>
<div>        &lt;/HTTP&gt;</div><div>      &lt;/DCPType&gt;</div><div>    &lt;/GetMap&gt;</div><div>    &lt;GetFeatureInfo&gt;</div><div>      &lt;Format&gt;text/plain&lt;/Format&gt;</div><div>      &lt;Format&gt;application/vnd.ogc.gml&lt;/Format&gt;</div>
<div>      &lt;DCPType&gt;</div><div>        &lt;HTTP&gt;</div><div>          &lt;Get&gt;&lt;OnlineResource xmlns:xlink=&quot;<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>&quot; xlink:href=&quot;<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp</a>;&quot;/&gt;&lt;/Get&gt;</div>
<div>          &lt;Post&gt;&lt;OnlineResource xmlns:xlink=&quot;<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>&quot; xlink:href=&quot;<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp</a>;&quot;/&gt;&lt;/Post&gt;</div>
<div>        &lt;/HTTP&gt;</div><div>      &lt;/DCPType&gt;</div><div>    &lt;/GetFeatureInfo&gt;</div><div>    &lt;DescribeLayer&gt;</div><div>      &lt;Format&gt;text/xml&lt;/Format&gt;</div><div>      &lt;DCPType&gt;</div>
<div>        &lt;HTTP&gt;</div><div>          &lt;Get&gt;&lt;OnlineResource xmlns:xlink=&quot;<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>&quot; xlink:href=&quot;<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp</a>;&quot;/&gt;&lt;/Get&gt;</div>
<div>          &lt;Post&gt;&lt;OnlineResource xmlns:xlink=&quot;<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>&quot; xlink:href=&quot;<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp</a>;&quot;/&gt;&lt;/Post&gt;</div>
<div>        &lt;/HTTP&gt;</div><div>      &lt;/DCPType&gt;</div><div>    &lt;/DescribeLayer&gt;</div><div>    &lt;GetLegendGraphic&gt;</div><div>      &lt;Format&gt;image/gif&lt;/Format&gt;</div><div>      &lt;Format&gt;image/png&lt;/Format&gt;</div>
<div>      &lt;Format&gt;image/png; mode=24bit&lt;/Format&gt;</div><div>      &lt;Format&gt;image/jpeg&lt;/Format&gt;</div><div>      &lt;Format&gt;image/vnd.wap.wbmp&lt;/Format&gt;</div><div>      &lt;DCPType&gt;</div><div>
        &lt;HTTP&gt;</div><div>          &lt;Get&gt;&lt;OnlineResource xmlns:xlink=&quot;<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>&quot; xlink:href=&quot;<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp</a>;&quot;/&gt;&lt;/Get&gt;</div>
<div>          &lt;Post&gt;&lt;OnlineResource xmlns:xlink=&quot;<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>&quot; xlink:href=&quot;<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp</a>;&quot;/&gt;&lt;/Post&gt;</div>
<div>        &lt;/HTTP&gt;</div><div>      &lt;/DCPType&gt;</div><div>    &lt;/GetLegendGraphic&gt;</div><div>    &lt;GetStyles&gt;</div><div>      &lt;Format&gt;text/xml&lt;/Format&gt;</div><div>      &lt;DCPType&gt;</div>
<div>        &lt;HTTP&gt;</div><div>          &lt;Get&gt;&lt;OnlineResource xmlns:xlink=&quot;<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>&quot; xlink:href=&quot;<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp</a>;&quot;/&gt;&lt;/Get&gt;</div>
<div>          &lt;Post&gt;&lt;OnlineResource xmlns:xlink=&quot;<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>&quot; xlink:href=&quot;<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp</a>;&quot;/&gt;&lt;/Post&gt;</div>
<div>        &lt;/HTTP&gt;</div><div>      &lt;/DCPType&gt;</div><div>    &lt;/GetStyles&gt;</div><div>  &lt;/Request&gt;</div><div>  &lt;Exception&gt;</div><div>    &lt;Format&gt;application/vnd.ogc.se_xml&lt;/Format&gt;</div>
<div>    &lt;Format&gt;application/vnd.ogc.se_inimage&lt;/Format&gt;</div><div>    &lt;Format&gt;application/vnd.ogc.se_blank&lt;/Format&gt;</div><div>  &lt;/Exception&gt;</div><div>  &lt;VendorSpecificCapabilities /&gt;</div>
<div>  &lt;UserDefinedSymbolization SupportSLD=&quot;1&quot; UserLayer=&quot;0&quot; UserStyle=&quot;1&quot; RemoteWFS=&quot;0&quot;/&gt;</div><div>  &lt;Layer&gt;</div><div>    &lt;Name&gt;Beleidskaart_Binnenstad&lt;/Name&gt;</div>
<div>    &lt;Title&gt;Beleidskaart_Binnenstad&lt;/Title&gt;</div><div>    &lt;Abstract&gt;Beleidskaart_Binnenstad&lt;/Abstract&gt;</div><div>    &lt;SRS&gt;EPSG:28992&lt;/SRS&gt;</div><div>    &lt;LatLonBoundingBox minx=&quot;5.03953&quot; miny=&quot;52.0181&quot; maxx=&quot;5.05006&quot; maxy=&quot;52.0236&quot; /&gt;</div>
<div>    &lt;BoundingBox SRS=&quot;EPSG:28992&quot;</div><div>                minx=&quot;131110&quot; miny=&quot;447700&quot; maxx=&quot;131830&quot; maxy=&quot;448310&quot; /&gt;</div><div>    &lt;Layer queryable=&quot;0&quot; opaque=&quot;0&quot; cascaded=&quot;0&quot;&gt;</div>
<div>        &lt;Name&gt;pgn_verwachting&lt;/Name&gt;</div><div>        &lt;Title&gt;pgn_verwachting&lt;/Title&gt;</div><div>        &lt;LatLonBoundingBox minx=&quot;5.04025&quot; miny=&quot;52.0182&quot; maxx=&quot;5.04993&quot; maxy=&quot;52.0236&quot; /&gt;</div>
<div>        &lt;BoundingBox SRS=&quot;EPSG:28992&quot;</div><div>                    minx=&quot;131160&quot; miny=&quot;447707&quot; maxx=&quot;131821&quot; maxy=&quot;448305&quot; /&gt;</div><div>        &lt;Style&gt;</div>
<div>          &lt;Name&gt;default&lt;/Name&gt;</div><div>          &lt;Title&gt;default&lt;/Title&gt;</div><div>          &lt;LegendURL width=&quot;147&quot; height=&quot;41&quot;&gt;</div><div>             &lt;Format&gt;image/png&lt;/Format&gt;</div>
<div>             &lt;OnlineResource xmlns:xlink=&quot;<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>&quot; xlink:type=&quot;simple&quot; xlink:href=&quot;<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp;version=1.1.1&amp;amp;service=WMS&amp;amp;request=GetLegendGraphic&amp;amp;layer=pgn_verwachting&amp;amp;format=image/png&amp;amp;STYLE=default">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;amp;version=1.1.1&amp;amp;service=WMS&amp;amp;request=GetLegendGraphic&amp;amp;layer=pgn_verwachting&amp;amp;format=image/png&amp;amp;STYLE=default</a>&quot;/&gt;</div>
<div>          &lt;/LegendURL&gt;</div><div>        &lt;/Style&gt;</div><div>    &lt;/Layer&gt;</div><div>  &lt;/Layer&gt;</div><div>&lt;/Capability&gt;</div><div>&lt;/WMT_MS_Capabilities&gt;</div></div><div><br></div>