WMS problem

Rahkonen Jukka Jukka.Rahkonen at MMMTIKE.FI
Mon Sep 17 01:52:42 PDT 2007


Hi,

There is nothing wrong.  Your browser just don't understand the MIME format that WMS is returning to you.  If you save the file (mapserv.exe) on disk as mapserv.xml or whatever you can open it and see how it looks like.  WMS clients do this automatically.

-Jukka Rahkonen- 

> -----Alkuperäinen viesti-----
> Lähettäjä: UMN MapServer Users List 
> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Steffen Gebhardt
> Lähetetty: 17. syyskuuta 2007 11:38
> Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU
> Aihe: [UMN_MAPSERVER-USERS] WMS problem
> 
> Hi,
> 
> I want to setup my map as WMS service. Whenever I try to get 
> the capabilities using: 
> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/m
> d/md.map&SERVICE=WMS&VERSION=1.1.1&request=getCapabilites
> 
> the browser opens the save file (mapserv.exe) dialogue. What 
> am i doing wrong?
> 
> Thanks for helping.
> Steffen
> 
> On map (WEB) level I defined:
> 
> METADATA
>     "wms_title" "mywms"
>     "wms_onlineresource" 
> "http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/
> md/md.map&"
>     "wms_srs" "EPSG:32648"
> #    "wms_name" "mywms"
>     "wms_server_version" "1.1.1"
>     "wms_format" "image/gif"
> END
> 
> I added a layer defined as:
> LAYER
>     NAME "districts"
>     CONNECTIONTYPE postgis
>     CONNECTION "user=postgres password=postgresadmin 
> dbname=mapbender host=localhost port=5432"
>     DATA "the_geom from districts"
>     STATUS ON
>     TYPE POLYGON
>     PROJECTION
>         "init=EPSG:32648"
>     END
> 
>     METADATA
>         wms_title "districts"
>         #wms_sld_url "http://localhost/sld/style.sld"
>         #wms_sld_body "http://localhost/sld/style.sld"
>     END
>   
>     CLASS
>         NAME "dd"
>         #SYMBOL districts
>     END
> 
> END
> 
> --
> GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
> Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
> 



More information about the MapServer-users mailing list