<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>David,</div>
<div><br>
</div>
<div>You aren't making a WMS request. You are making a MapServer request. When making a map server request, you use mapext=minx+miny+maxx+maxy&mode=map</div>
<div><br>
</div>
<div>With WMS, you'd request SERVICE=WMS&REQUEST=GETMAP&BBOX=minx,miny,maxx,maxy. Note there is no mode=map</div>
<div><br>
</div>
<div>See <a href="http://mapserver.org/ogc/wms_server.html">http://mapserver.org/ogc/wms_server.html</a> for details on a proper WMS request.</div>
<div><br>
</div>
<div>Mike</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>David Miller <<a href="mailto:teknocreator@gmail.com">teknocreator@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Mon, 5 Mar 2012 15:20:43 -0500<br>
<span style="font-weight:bold">To: </span><<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>
<span style="font-weight:bold">Subject: </span>[mapserver-users] MapServer 6.0.1 ignoring WMS options?<br>
</div>
<div><br>
</div>
Hi list!<br>
<br>
We have MapServer 6.0.1 installed on our Linux system (CentOS 5.7) and have encountered an issue where the WMS options (i.e. BBOX, HEIGHT, WIDTH) seem to be ignored for a GetMap request. I have checked options for and output from running the configure script
for building the executable. The --with-proj and --with-wms options are specified (though one shouldn't need it if --with-proj is there correctly). Output from running the configure script indicates that the<span style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; font-size: small; display: inline !important; float: none; font-family: arial, sans-serif; "><span class="Apple-converted-space">
</span>-DUSE_WMS_SVR compiler switch was on when compiling the mapwms.c code, which is where that becomes important. I examined that code and it's here that MapServer first uses the extents in the mapfile as defaults but then adjusts that based on the BBOX,
HEIGHT, and WIDTH options in the GetMap request. Running -v on the resulting executable also indicates
</span><span style="color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; font-family: arial, sans-serif; ">SUPPORTS=WMS_SE</span><span style="color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; font-family: arial, sans-serif; ">RVER.
<br>
<br>
The call to MapServer does produce an image but for the entire EXTENT of the data that's specified in the mapfile. Doesn't make any difference whether it's a raster or point layer.<br>
<br>
Example REQUEST:<br>
<br>
<a href="http://(our">http://(our</a> main site address)/cgi-bin/mapserv?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&FORMAT=image%2Fpng&MODE=map&MAP=wxmap%2Fglmpvis.map&LAYERS=mosaic&SRS=EPSG%3A3857&TRANSPARENT=TRUE&STYLES=&BBOX=-13807095.590531%203308267.5857033%20-12241665.251469%204482340.3400001&WIDTH=640&HEIGHT=480<br>
<br>
First part of the mapfile:<br>
<br>
MAP<br>
NAME "testgrib"<br>
IMAGETYPE PNG<br>
EXTENT -14000000 3000000 -7000000 7000000<br>
<br>
As you can see, the EXTENT in the mapfile are different than the BBOX values. When I put the BBOX values in the EXTENT area in the mapfile, the image lines up with the map background as it should.<br>
<br>
So for some reason, it appears that something isn't being set correctly to allow our MapServer to accept standard WMS options. Perhaps somehow, this value of USE_WMS_SVR in mapwms.c isn't getting set correctly? But, by all the output we've checked, it looks
like MapServer gets built correctly and to enable it as a WMS server. <br>
<br>
Anyone else with a similar issue or somewhere else we should check for a problem?<br>
<br>
Thanks for any help!<br>
<br>
Dave M<br>
</span>_______________________________________________ mapserver-users mailing list
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</span>
</body>
</html>