[mapserver-users] Help with configuring WMS

John D. Evans john.evans at gst.com
Tue Jun 11 10:26:45 PDT 2013


Hi Todd,

What happens when you make one of the following changes (but not both) 
to your GetMap request?

EITHER change
...&VERSION=1.3.0...
to
...&VERSION=1.1.1...

OR change
...&BBOX=-103.002,33.6158,-94.4307,37.0023...
to
...&BBOX=33.6158,-103.002,37.0023,-94.4307...

(EPSG:4326 was defined as lon-lat in WMS pre-1.3; but in 1.3 it's lat-lon)

   - John Evans


On 06/11/2013 12:51 PM, Todd Fagin wrote:
>
> Greetings,
>
> I have what I hope is a simple issue.
>
> I have a working mapfile in which I have setup WMS.  When I test with 
> GetCapabilities, everything seems to return fine (mostly, see below).  
> However, when I test with GetMap, I just get a blank image (set to the 
> background color I have in the map file).
>
> One odd thing, though, with the GetCapabilities results is that the 
> bounding box coordinates reverse the X and Y:
>
> <BoundingBoxCRS="EPSG:4326"minx="33.6158"miny="-103.002"maxx="37.0023"maxy="-94.4307"/>
>
> However, the GeographicBoundingBox is correct:
>
>    <EX_GeographicBoundingBox>
>
>         <westBoundLongitude>-103.002</westBoundLongitude>
>
>         <eastBoundLongitude>-94.4307</eastBoundLongitude>
>
>         <southBoundLatitude>33.6158</southBoundLatitude>
>
>         <northBoundLatitude>37.0023</northBoundLatitude>
>
>     </EX_GeographicBoundingBox>
>
> I am running this on my local machine so I am attaching the sample 
> mapfile and the GetCapabilities results, and including the GetMap 
> example I am using which is returning the blank image.
>
> Example:
>
> GetMap
>
> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/OK_TEST/OK_Counties.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=Counties&CRS=EPSG:4326&BBOX=-103.002,33.6158,-94.4307,37.0023&WIDTH=800&HEIGHT=300&FORMAT=image/png&STYLES=&TRANSPARENT=TRUE
>
> GetCapabilities
>
> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/OK_TEST/OK_COUNTIES.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
>
> Any help would be greatly appreciated. Thanks in advance,
>
> Todd
>
> Todd Fagin
>
> Coordinate Solutions, Inc.
>
> 405.740.4324
>
> ------------------------------------------------------------------------
>
> Spam <https://filter.gst.com/canit/b.php?i=01JL5hDah&m=b30ab3b84756&c=s>
> Not spam 
> <https://filter.gst.com/canit/b.php?i=01JL5hDah&m=b30ab3b84756&c=n>
> Forget previous vote 
> <https://filter.gst.com/canit/b.php?i=01JL5hDah&m=b30ab3b84756&c=f>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130611/7464baec/attachment.html>


More information about the mapserver-users mailing list