[mapserver-users] Help with configuring WMS

Rahkonen Jukka jukka.rahkonen at mmmtike.fi
Tue Jun 11 10:30:32 PDT 2013


Hi,

If you use WMS 1.3.0 you must use Nothing-Easting axis order with EPSG:4326.  Stay with WMS 1.1.1 of flip the coordinates in your request. Search "WMS 1.3.0 axis order" and you will find reading for the rest of the day.

-Jukka Rahkonen-
________________________________
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:

<BoundingBox CRS="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



More information about the mapserver-users mailing list