WMS GetCapabilities problem
Wouter Schaubroeck
wouter.schaubroeck at GMAIL.COM
Sun Apr 3 13:46:11 PDT 2005
Hi all,
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?
This is my hyperlink with the request:
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>
This is my MAP file:
MAP
NAME EX1.7_
IMAGETYPE PNG24
#EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514
# LAEA
EXTENT -97.5 41.619778 -82.122902 49.38562 # Geographic
SIZE 400 300
SHAPEPATH "c:\ms4w\apache\htdocs\mapservertutorial\data"
SYMBOLSET
"c:\ms4w\apache\htdocs\mapservertutorial\symbols\symbols35.sym"
FONTSET "c:\ms4w\apache\htdocs\mapservertutorial\fonts\fonts.list"
WEB
IMAGEPATH 'c:\tmp\'
IMAGEURL '\tmp\'
METADATA
"wms_title" "WMS_Test"
"wms_onlineresource"
"http://192.168.2.2/cgi-bin/mapserv.exe?map=c:\ms4w\apache\htdocs\mapservertutorial\example1-7.map&"
"wms_srs" "EPSG:2136"
END
END
PROJECTION
# "proj=laea"
# "ellps=clrk66"
# "lat_0=45"
# "lon_0=-100"
#
# Alternatively, you can specify an EPSG code.
"init=epsg:2163"
#
END
# Start of LAYER DEFINITIONS ---------------------------------------------
LAYER # States polygon layer begins here
NAME states
DATA states_ugl
STATUS OFF
TYPE POLYGON
PROJECTION
"init=epsg:4326"
END
METADATA
"wms_title" "States Polygon"
"wms_srs" "epsg:4326"
END
CLASSITEM "CLASS"
CLASS
EXPRESSION 'land'
SYMBOL 0
COLOR 232 232 232
END
END # States polygon layer ends here
LAYER # MODIS raster layer begins here
NAME modis
DATA "raster\mod09a12003161_ugl_ll_8bit.tif"
STATUS OFF
TYPE RASTER
PROCESSING "BANDS=1,2,3"
OFFSITE 71 74 65
# PROJECTION
# "init=epsg:4326"
# END
END # MODIS raster layer ends here
LAYER # LandSat WMS map from JPL (or from USGS)
NAME LandSat
TYPE RASTER
OFFSITE 0 0 0
STATUS DEFAULT
CONNECTIONTYPE WMS
#CONNECTION
"http://wms.jpl.nasa.gov/wms.cgi?REQUEST=map&LAYERS=us_landsat7&STYLES=&FORMAT=png&TRANSPARENT=true"
#verwijder de 1!!
CONNECTION
"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&"
METADATA
"wms_title" "LandSat"
"wms_name" "us_landsat7"
"wms_server_version" "1.0.0"
"wms_srs" "epsg:4326"
"wms_format" "image/png"
#"wms_title" "US_Landsat7"
# "wms_srs" "epsg:4326"
# "wms_connectiontimeout" "1000"
END
# PROJECTION
# "init=epsg:4326"
# END
END # LandSat WMS image ends here
LAYER # States line layer begins here
NAME states
DATA states_ugl
STATUS DEFAULT
TYPE LINE
# PROJECTION
# "init=epsg:4326"
# END
CLASSITEM "CLASS"
CLASS
EXPRESSION 'land'
SYMBOL 'line5'
COLOR 64 64 64
SIZE 1
END
END # States line layer ends here
LAYER # States label layer begins here
NAME states
DATA states_ugl
STATUS DEFAULT
TYPE ANNOTATION
# PROJECTION
# "init=epsg:4326"
# END
CLASSITEM "CLASS"
LABELITEM "STATE"
CLASS
EXPRESSION 'land'
COLOR -1 -1 -1
LABEL
COLOR 255 255 255
TYPE TRUETYPE
FONT arial-bold
SIZE 12
ANTIALIAS TRUE
POSITION CL
PARTIALS FALSE
MINDISTANCE 300
BUFFER 4
END # end of label
END # end of class
END # States label layer ends here
# End of LAYER DEFINITIONS -------------------------------
END # end of map file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050403/443e7fa1/attachment.htm>
More information about the MapServer-users
mailing list