WMS GetCapabilities problem

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Mon Apr 4 07:41:05 EDT 2005


> -----Original Message-----
> From: Wouter Schaubroeck [mailto:wouter.schaubroeck at gmail.com]
> Sent: Sunday, 03 April, 2005 17:41
> To: Kralidis,Tom [Burlington]
> Cc: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] WMS GetCapabilities problem
> 
> 
> Many thanks,
> Indeed you're right, i didn't look further than the name:
> mapserv.exe. 
> Why is it called like that? Can you give it a (file)name, other than 
> mapserv.exe?
>

Browsers usually name the downloaded file (unless you choose to rename
before saving) the file basename of  the HTTP SCRIPT_NAME environment
variable, hence "mapserv.exe".

You can copy mapserv.exe to another filename, or mask mapserv.exe (as
well as the mapfile location) by using a wrapper script mechanism; see:

http://mapserver.gis.umn.edu/doc44/wms-server-howto.html#onlineresourceu
rl

for more info and examples.

..Tom

 
> grtz
> Wouter
> 
> Kralidis,Tom [Burlington] wrote:
> 
> >This is because the MIME type returned by an OGC:WMS 1.1.1 
> >GetCapabilities request is not recognized by standard web browsers 
> >unless you configure it to do so.
> >
> >Try saving the file and opening with something like Wordpad.
> >
> >..Tom
> >
> >
> >-----Original Message-----
> >From: UMN MapServer Users List 
> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] 
> >On Behalf Of Wouter Schaubroeck
> >Sent: Sunday, 03 April, 2005 16:45
> >To: MAPSERVER-USERS at LISTS.UMN.EDU
> >Subject: [UMN_MAPSERVER-USERS] WMS GetCapabilities problem
> >
> >
> >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/htd
> ocs/mapser
> >v
> >ertutorial/example1-7.map&SERVICE=WMS&VERSION1.1.1&am
p;REQUEST=G
> >etCapabilities 
> >
> >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\ht
> docs\mapse
> >r
> >vertutorial\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_landsa
> t7&STYLES=
> >&
> >FORMAT=png&TRANSPARENT=true" #verwijder de 1!!
> >  CONNECTION
> >"http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?Service
> Name=USGS_W
> >MS_LANDSAT7&VERSION=1.0.0&REQUEST=map&Layers=LANDSAT7&SRS=EPS
> G:4326&REAS
> >PECT=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
> >
> >  
> >
> 



More information about the mapserver-users mailing list