[mapserver-users] Trouble creating WMS
Bistrais, Bob
Bob.Bistrais at maine.gov
Wed Sep 10 12:59:10 PDT 2008
I think I have the problem solved now. My connection string on the
client Map file was not complete. I think I have fixed it now.
________________________________
From: Bistrais, Bob
Sent: Wednesday, September 10, 2008 3:34 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Trouble creating WMS
I am trying to create a WMS service with MapServer. I believe I
successfully created the service, because I am able to connect to it and
view it in ArcGIS. But I tried to create a Map file to view it in
Ka-Map, and also in CGI mode. Ka-Map appears to be reading the file,
which takes a while, but in the end the Ka-Map screen has no map.
However, the Map Info window does show an accurate extent. I've gone
through the MapServer documentation, but can't figure out what's wrong.
Below are map map files:
Map file to create the WMS service:
MAP
CONFIG "MS_ERRORFILE" "/ms4w/tmp/wmserror.txt"
DEBUG 3
EXTENT 336615.770850 4759552.833350 662100.770850 5256295.833350
IMAGECOLOR 200 200 200
IMAGETYPE PNG24
SIZE 800 600
NAME "WMS Base Map"
SHAPEPATH "C:\BaseMapData"
FONTSET "C:\Program Files\Microsoft
Office\Office10CD\FILES\WINDOWS\FONTS\ARIALUNI.TTF"
UNITS meters
WEB
MINSCALEDENOM 100
MAXSCALEDENOM 5000000
IMAGEPATH "C:/ms4w/apache/htdocs"
IMAGEURL "http://localhost/ <http://localhost/> "
METADATA
"wms_server_version" "1.1.1"
"wms_title" "WMS Base Data"
"wms_onlineresource"
"http://localhost/cgi-bin/mapserv.exe?map=../../apps/ka-map-1.0/htdocs/B
aseMap-MapServer/BaseWMS.map&
<http://localhost/cgi-bin/mapserv.exe?map=../../apps/ka-map-1.0/htdocs/B
aseMap-MapServer/BaseWMS.map&> "
"wms_srs" "EPSG:2960"
"wms_abstract" "GIS data WMS test"
END
END
PROJECTION
"init=epsg:2960"
END
QUERYMAP
STATUS ON
STYLE HILITE
END
INCLUDE "northeast.map"
INCLUDE "towns250.map"
END
#END OF MAP FILE
Map file for WMS client:
MAP
EXTENT 336615.770850 4759552.833350 662100.770850 5256295.833350
IMAGECOLOR 200 200 200
IMAGETYPE PNG
SIZE 800 600
NAME "WMS Test Map"
SHAPEPATH "C:\BaseMapData"
FONTSET "C:\Program Files\Microsoft
Office\Office10CD\FILES\WINDOWS\FONTS\ARIALUNI.TTF"
UNITS meters
WEB
# MINSCALEDENOM 100
# MAXSCALEDENOM 5000000
IMAGEPATH "C:/ms4w/apache/htdocs"
IMAGEURL "http://localhost/ <http://localhost/> "
END
PROJECTION
"init=epsg:2960"
END
LAYER
TYPE raster
DEBUG ON
NAME "WMSTest"
STATUS ON
CONNECTIONTYPE WMS
CONNECTION "http://localhost/cgi-bin/mapserv.exe?
<http://localhost/cgi-bin/mapserv.exe?> "
METADATA
"wms_server_version" "1.1.1"
"wms_format" "image/png"
"wms_title" "WMSBaseData"
"wms_onlineresource" "MapServWMSTest"
"wms_srs" "EPSG:2960"
"wms_abstract" "GIS data test"
"wms_name" "towns250,Northeast"
END
END
END
#END OF MAP FILE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080910/5265e833/attachment.htm>
More information about the MapServer-users
mailing list