[mapserver-users] Help with configuring WMS
Todd Fagin
tfagin at coordinatesolutions.com
Tue Jun 11 09:51:01 PDT 2013
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
<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&STY
LES=&TRANSPARENT=TRUE>
&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&STY
LES=&TRANSPARENT=TRUE
GetCapabilities
http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/OK_TEST/OK_COUNTIES.map
<http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/OK_TEST/OK_COUNTIES.map
&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities>
&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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130611/d570ce5f/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: OK_COUNTIES.map
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130611/d570ce5f/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GetCapabilites.xml
Type: text/xml
Size: 5017 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130611/d570ce5f/attachment.xml>
More information about the MapServer-users
mailing list