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
#
# Start of map file
#
MAP
DATAPATTERN "the_geom"
NAME OK
STATUS ON
SIZE 500 400
#EXTENT -103.0898 31.51149 -94.3205 39.1066 #DD OK
EXTENT -104.18599 30.5621 -93.22438 40.055993 #DD OK
UNITS DD
SHAPEPATH "G:\data\OK"
FONTSET fonts.list
#IMAGECOLOR 255 255 255
IMAGECOLOR 218 227 240
SYMBOLSET "symbolset.list"
IMAGETYPE png24
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGBA
EXTENSION "png"
#TRANSPARENT ON
END
PROJECTION #GEOGRAPHIC WGS84
proj=longlat
ellps=WGS84
datum=WGS84
no_defs
END
WEB
#IMAGEPATH "C:\Develop\WEBGIS\output\"
#IMAGEURL "/webgis/output/"
METADATA
WMS_TITLE "OK Counties WMS"
WMS_ABSTRACT "I am just trying to get this to work"
WMS_ACCESSCONSTRAINTS "none"
WMS_ONLINERESOURCE
"http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/OK_TEST/OK_COUNTIES.map&"
WMS_SRS "EPSG:4326"
WMS_ENABLE_REQUEST "GetMap GetFeatureInfo"
END
END
LEGEND
STATUS ON
KEYSIZE 18 12
TRANSPARENT OFF
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
END
##############
### LAYERS ###
##############
### COUNTIES ###
LAYER
NAME Counties
#GROUP "Administrative Boundary"
TYPE POLYGON
STATUS DEFAULT
DATA OKCounties
PROJECTION #GEOGRAPHIC NAD83
proj=longlat
ellps=GRS80
no_defs
END
METADATA
id "20"
'ows_title' 'Counties'
"ows_enable_request" "GetCapabilities"
WMS_SRS "EPSG:4326"
#WMS_ENABLE_REQUEST "GetMap GetFeatureInfo"
END
LABELITEM "NAME"
CLASS
MAXSCALE 8000000
MINSCALE 3000000
COLOR 247 239 222
OUTLINECOLOR 173 158 140
END
CLASS
MAXSCALE 3000000
MINSCALE 847000
COLOR 247 239 222
OUTLINECOLOR 173 158 140
LABEL
TYPE TRUETYPE
COLOR 132 130 0
FONT arial-bold
SIZE 7
POSITION cc
PARTIALS FALSE
BUFFER 0
END
END
CLASS
MAXSCALE 847000
MINSCALE 45700
COLOR 247 239 222
OUTLINECOLOR 200 200 200
LABEL
TYPE TRUETYPE
COLOR 132 130 0
OUTLINECOLOR 255 255 255
FONT arial-bold
SIZE 10
POSITION cc
PARTIALS FALSE
BUFFER 0
END
END
CLASS
MAXSCALE 45700
COLOR 247 239 222
OUTLINECOLOR 200 200 200
LABEL
TYPE TRUETYPE
COLOR 132 130 0
OUTLINECOLOR 255 255 255
FONT arial-bold
SIZE 12
POSITION cc
PARTIALS FALSE
BUFFER 0
END
END
END
END<?xml version="1.0" encoding="windows-1252" standalone="no"?>
<WMS_Capabilities version="1.3.0" xmlns="http://www.opengis.net/wms" xmlns:sld="http://www.opengis.net/sld" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ms="http://mapserver.gis.umn.edu/mapserver" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd http://mapserver.gis.umn.edu/mapserver http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/OK_TEST/OK_COUNTIES.map&service=WMS&version=1.3.0&request=GetSchemaExtension">
<!-- MapServer version 6.0.2 (MS4W 3.0.4) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
<Service>
<Name>WMS</Name>
<Title>OK Counties WMS</Title>
<Abstract>I am just trying to get this to work</Abstract>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/OK_TEST/OK_COUNTIES.map&"/>
<ContactInformation>
</ContactInformation>
<AccessConstraints>none</AccessConstraints>
<MaxWidth>2048</MaxWidth>
<MaxHeight>2048</MaxHeight>
</Service>
<Capability>
<Request>
<GetCapabilities>
<Format>text/xml</Format>
<DCPType>
<HTTP>
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/OK_TEST/OK_COUNTIES.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/OK_TEST/OK_COUNTIES.map&"/></Post>
</HTTP>
</DCPType>
</GetCapabilities>
<GetMap>
<Format>image/png</Format>
<Format>image/jpeg</Format>
<Format>image/gif</Format>
<Format>image/png; mode=8bit</Format>
<Format>application/x-pdf</Format>
<Format>image/svg+xml</Format>
<Format>image/tiff</Format>
<Format>application/vnd.google-earth.kml+xml</Format>
<Format>application/vnd.google-earth.kmz</Format>
<DCPType>
<HTTP>
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/OK_TEST/OK_COUNTIES.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/OK_TEST/OK_COUNTIES.map&"/></Post>
</HTTP>
</DCPType>
</GetMap>
<GetFeatureInfo>
<Format>text/plain</Format>
<Format>application/vnd.ogc.gml</Format>
<DCPType>
<HTTP>
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/OK_TEST/OK_COUNTIES.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/OK_TEST/OK_COUNTIES.map&"/></Post>
</HTTP>
</DCPType>
</GetFeatureInfo>
</Request>
<Exception>
<Format>XML</Format>
<Format>INIMAGE</Format>
<Format>BLANK</Format>
</Exception>
<sld:UserDefinedSymbolization SupportSLD="1" UserLayer="0" UserStyle="1" RemoteWFS="0" InlineFeature="0" RemoteWCS="0"/>
<Layer>
<Name>OK</Name>
<Title>OK Counties WMS</Title>
<Abstract>I am just trying to get this to work</Abstract>
<CRS>EPSG:4326</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>-104.186</westBoundLongitude>
<eastBoundLongitude>-93.2244</eastBoundLongitude>
<southBoundLatitude>30.5621</southBoundLatitude>
<northBoundLatitude>40.056</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="" minx="-104.186" miny="30.5621" maxx="-93.2244" maxy="40.056"/>
<!-- WARNING: This layer has its status set to DEFAULT and will always be displayed when doing a GetMap request even if it is not requested by the client. This is not in line with the expected behavior of a WMS server. Using status ON or OFF is recommended. -->
<Layer queryable="0" opaque="0" cascaded="0">
<Name>Counties</Name>
<Title>Counties</Title>
<CRS>EPSG:4326</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>-103.002</westBoundLongitude>
<eastBoundLongitude>-94.4307</eastBoundLongitude>
<southBoundLatitude>33.6158</southBoundLatitude>
<northBoundLatitude>37.0023</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="EPSG:4326" minx="33.6158" miny="-103.002" maxx="37.0023" maxy="-94.4307"/>
</Layer>
</Layer>
</Capability>
</WMS_Capabilities>_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users