<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all,<br>
<br>
I'm using the ms4w application you all know. I worked myself through
the tutorial, and now i want to set up my own WMS Server. Therefor i
used example 1.7. But when i want to test my WMS Server and perform a
GetCapabilities request, Firefox is offering me the mapserv.exe file,
in stead of an XML document. What am i doing wrong? <br>
<br>
This is my hyperlink with the request: <a
href="http://192.168.2.3/cgi-bin/mapserv.exe?map=c:/ms4w/apache/htdocs/mapservertutorial/example1-7.map&SERVICE=WMS&VERSION1.1.1&REQUEST=GetCapabilities">http://192.168.2.3/cgi-bin/mapserv.exe?map=c:/ms4w/apache/htdocs/mapservertutorial/example1-7.map&SERVICE=WMS&VERSION1.1.1&REQUEST=GetCapabilities
</a><br>
<br>
This is my MAP file: <br>
<br>
MAP<br>
NAME EX1.7_<br>
IMAGETYPE PNG24<br>
#EXTENT 201621.496941 -294488.285333 1425518.020722
498254.511514 # LAEA<br>
EXTENT -97.5 41.619778 -82.122902 49.38562 # Geographic<br>
SIZE 400 300<br>
SHAPEPATH "c:\ms4w\apache\htdocs\mapservertutorial\data"<br>
SYMBOLSET
"c:\ms4w\apache\htdocs\mapservertutorial\symbols\symbols35.sym"<br>
FONTSET
"c:\ms4w\apache\htdocs\mapservertutorial\fonts\fonts.list"<br>
<br>
WEB<br>
IMAGEPATH 'c:\tmp\'<br>
IMAGEURL '\tmp\'<br>
METADATA<br>
"wms_title" "WMS_Test"<br>
"wms_onlineresource"
<a class="moz-txt-link-rfc2396E" href="http://192.168.2.2/cgi-bin/mapserv.exe?map=c:\ms4w\apache\htdocs\mapservertutorial\example1-7.map&">"http://192.168.2.2/cgi-bin/mapserv.exe?map=c:\ms4w\apache\htdocs\mapservertutorial\example1-7.map&"</a><br>
"wms_srs" "EPSG:2136"<br>
END<br>
END<br>
<br>
PROJECTION<br>
# "proj=laea"<br>
# "ellps=clrk66"<br>
# "lat_0=45"<br>
# "lon_0=-100"<br>
#<br>
# Alternatively, you can specify an EPSG code.<br>
"init=epsg:2163"<br>
#<br>
END<br>
<br>
# Start of LAYER DEFINITIONS
---------------------------------------------<br>
LAYER # States polygon layer begins here<br>
NAME states<br>
DATA states_ugl<br>
STATUS OFF<br>
TYPE POLYGON<br>
<br>
PROJECTION<br>
"init=epsg:4326"<br>
END<br>
METADATA<br>
"wms_title" "States Polygon"<br>
"wms_srs" "epsg:4326"<br>
END<br>
<br>
CLASSITEM "CLASS"<br>
CLASS<br>
EXPRESSION 'land'<br>
SYMBOL 0<br>
COLOR 232 232 232<br>
END<br>
END # States polygon layer ends here<br>
<br>
LAYER # MODIS raster layer begins here<br>
NAME modis<br>
DATA "raster\mod09a12003161_ugl_ll_8bit.tif"<br>
STATUS OFF<br>
TYPE RASTER<br>
PROCESSING "BANDS=1,2,3"<br>
OFFSITE 71 74 65<br>
<br>
# PROJECTION<br>
# "init=epsg:4326"<br>
# END<br>
END # MODIS raster layer ends here<br>
<br>
LAYER # LandSat WMS map from JPL (or from USGS)<br>
NAME LandSat<br>
TYPE RASTER<br>
OFFSITE 0 0 0<br>
STATUS DEFAULT<br>
CONNECTIONTYPE WMS<br>
#CONNECTION
<a class="moz-txt-link-rfc2396E" href="http://wms.jpl.nasa.gov/wms.cgi?REQUEST=map&LAYERS=us_landsat7&STYLES=&FORMAT=png&TRANSPARENT=true">"http://wms.jpl.nasa.gov/wms.cgi?REQUEST=map&LAYERS=us_landsat7&STYLES=&FORMAT=png&TRANSPARENT=true"</a>
#verwijder de 1!!<br>
CONNECTION
<a class="moz-txt-link-rfc2396E" href="http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?ServiceName=USGS_WMS_LANDSAT7&VERSION=1.0.0&REQUEST=map&Layers=LANDSAT7&SRS=EPSG:4326&REASPECT=false&Format=png&">"http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?ServiceName=USGS_WMS_LANDSAT7&VERSION=1.0.0&REQUEST=map&Layers=LANDSAT7&SRS=EPSG:4326&REASPECT=false&Format=png&"</a><br>
<br>
METADATA<br>
"wms_title" "LandSat"<br>
"wms_name" "us_landsat7"<br>
"wms_server_version" "1.0.0"<br>
"wms_srs" "epsg:4326"<br>
"wms_format" "image/png"<br>
#"wms_title" "US_Landsat7"<br>
# "wms_srs" "epsg:4326"<br>
# "wms_connectiontimeout" "1000"<br>
END<br>
<br>
# PROJECTION<br>
# "init=epsg:4326"<br>
# END<br>
END # LandSat WMS image ends here<br>
<br>
LAYER # States line layer begins here<br>
NAME states<br>
DATA states_ugl<br>
STATUS DEFAULT<br>
TYPE LINE<br>
<br>
# PROJECTION<br>
# "init=epsg:4326"<br>
# END<br>
<br>
CLASSITEM "CLASS"<br>
CLASS<br>
EXPRESSION 'land'<br>
SYMBOL 'line5'<br>
COLOR 64 64 64<br>
SIZE 1<br>
END<br>
END # States line layer ends here<br>
<br>
LAYER # States label layer begins here<br>
NAME states<br>
DATA states_ugl<br>
STATUS DEFAULT<br>
TYPE ANNOTATION<br>
<br>
# PROJECTION<br>
# "init=epsg:4326"<br>
# END<br>
<br>
<br>
CLASSITEM "CLASS"<br>
LABELITEM "STATE"<br>
CLASS<br>
EXPRESSION 'land'<br>
COLOR -1 -1 -1<br>
LABEL<br>
COLOR 255 255 255<br>
TYPE TRUETYPE<br>
FONT arial-bold<br>
SIZE 12<br>
ANTIALIAS TRUE<br>
POSITION CL<br>
PARTIALS FALSE<br>
MINDISTANCE 300<br>
BUFFER 4<br>
END # end of label<br>
END # end of class<br>
END # States label layer ends here<br>
# End of LAYER DEFINITIONS -------------------------------<br>
<br>
END # end of map file<br>
<br>
</body>
</html>