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( 'map' );</div><div> layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&</a>", { layers : 'pgn_verwachting' }, { units : 'm', projection : new OpenLayers.Projection("EPSG:28992"), 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&LAYERS=pgn_verwachting&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A28992&BBOX=-281.25,-210.9375,281.25,210.9375&WIDTH=800&HEIGHT=600">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&LAYERS=pgn_verwachting&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A28992&BBOX=-281.25,-210.9375,281.25,210.9375&WIDTH=800&HEIGHT=600</a></div>
<div><br></div><div>I don'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'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><?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?></div><div><div><!DOCTYPE WMT_MS_Capabilities SYSTEM "<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>"</div>
<div> [</div><div> <!ELEMENT VendorSpecificCapabilities EMPTY></div><div> ]> <!-- end of DOCTYPE declaration --></div><div><br></div><div><WMT_MS_Capabilities version="1.1.1"></div><div><br>
</div><div><!-- 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 --></div>
<div><br></div><div><Service></div><div> <Name>OGC:WMS</Name></div><div> <Title>Beleidskaart_Binnenstad</Title></div><div> <OnlineResource xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xlink:href="<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>;"/></div>
<div> <ContactInformation></div><div> </ContactInformation></div><div></Service></div><div><br></div><div><Capability></div><div> <Request></div><div> <GetCapabilities></div><div>
<Format>application/vnd.ogc.wms_xml</Format></div><div> <DCPType></div><div> <HTTP></div><div> <Get><OnlineResource xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xlink:href="<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>;"/></Get></div>
<div> <Post><OnlineResource xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xlink:href="<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>;"/></Post></div>
<div> </HTTP></div><div> </DCPType></div><div> </GetCapabilities></div><div> <GetMap></div><div> <Format>image/gif</Format></div><div> <Format>image/png</Format></div>
<div> <Format>image/png; mode=24bit</Format></div><div> <Format>image/jpeg</Format></div><div> <Format>image/vnd.wap.wbmp</Format></div><div> <Format>image/tiff</Format></div>
<div> <Format>image/svg+xml</Format></div><div> <DCPType></div><div> <HTTP></div><div> <Get><OnlineResource xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xlink:href="<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>;"/></Get></div>
<div> <Post><OnlineResource xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xlink:href="<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>;"/></Post></div>
<div> </HTTP></div><div> </DCPType></div><div> </GetMap></div><div> <GetFeatureInfo></div><div> <Format>text/plain</Format></div><div> <Format>application/vnd.ogc.gml</Format></div>
<div> <DCPType></div><div> <HTTP></div><div> <Get><OnlineResource xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xlink:href="<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>;"/></Get></div>
<div> <Post><OnlineResource xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xlink:href="<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>;"/></Post></div>
<div> </HTTP></div><div> </DCPType></div><div> </GetFeatureInfo></div><div> <DescribeLayer></div><div> <Format>text/xml</Format></div><div> <DCPType></div>
<div> <HTTP></div><div> <Get><OnlineResource xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xlink:href="<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>;"/></Get></div>
<div> <Post><OnlineResource xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xlink:href="<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>;"/></Post></div>
<div> </HTTP></div><div> </DCPType></div><div> </DescribeLayer></div><div> <GetLegendGraphic></div><div> <Format>image/gif</Format></div><div> <Format>image/png</Format></div>
<div> <Format>image/png; mode=24bit</Format></div><div> <Format>image/jpeg</Format></div><div> <Format>image/vnd.wap.wbmp</Format></div><div> <DCPType></div><div>
<HTTP></div><div> <Get><OnlineResource xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xlink:href="<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>;"/></Get></div>
<div> <Post><OnlineResource xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xlink:href="<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>;"/></Post></div>
<div> </HTTP></div><div> </DCPType></div><div> </GetLegendGraphic></div><div> <GetStyles></div><div> <Format>text/xml</Format></div><div> <DCPType></div>
<div> <HTTP></div><div> <Get><OnlineResource xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xlink:href="<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>;"/></Get></div>
<div> <Post><OnlineResource xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xlink:href="<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>;"/></Post></div>
<div> </HTTP></div><div> </DCPType></div><div> </GetStyles></div><div> </Request></div><div> <Exception></div><div> <Format>application/vnd.ogc.se_xml</Format></div>
<div> <Format>application/vnd.ogc.se_inimage</Format></div><div> <Format>application/vnd.ogc.se_blank</Format></div><div> </Exception></div><div> <VendorSpecificCapabilities /></div>
<div> <UserDefinedSymbolization SupportSLD="1" UserLayer="0" UserStyle="1" RemoteWFS="0"/></div><div> <Layer></div><div> <Name>Beleidskaart_Binnenstad</Name></div>
<div> <Title>Beleidskaart_Binnenstad</Title></div><div> <Abstract>Beleidskaart_Binnenstad</Abstract></div><div> <SRS>EPSG:28992</SRS></div><div> <LatLonBoundingBox minx="5.03953" miny="52.0181" maxx="5.05006" maxy="52.0236" /></div>
<div> <BoundingBox SRS="EPSG:28992"</div><div> minx="131110" miny="447700" maxx="131830" maxy="448310" /></div><div> <Layer queryable="0" opaque="0" cascaded="0"></div>
<div> <Name>pgn_verwachting</Name></div><div> <Title>pgn_verwachting</Title></div><div> <LatLonBoundingBox minx="5.04025" miny="52.0182" maxx="5.04993" maxy="52.0236" /></div>
<div> <BoundingBox SRS="EPSG:28992"</div><div> minx="131160" miny="447707" maxx="131821" maxy="448305" /></div><div> <Style></div>
<div> <Name>default</Name></div><div> <Title>default</Title></div><div> <LegendURL width="147" height="41"></div><div> <Format>image/png</Format></div>
<div> <OnlineResource xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xlink:type="simple" xlink:href="<a href="http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;version=1.1.1&amp;service=WMS&amp;request=GetLegendGraphic&amp;layer=pgn_verwachting&amp;format=image/png&amp;STYLE=default">http://localhost/mapserv?map=/var/www/geo/binnenstad_wms.map&amp;version=1.1.1&amp;service=WMS&amp;request=GetLegendGraphic&amp;layer=pgn_verwachting&amp;format=image/png&amp;STYLE=default</a>"/></div>
<div> </LegendURL></div><div> </Style></div><div> </Layer></div><div> </Layer></div><div></Capability></div><div></WMT_MS_Capabilities></div></div><div><br></div>