WMS problem

Steffen Gebhardt geppe at GMX.NET
Mon Sep 17 01:37:47 PDT 2007


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/md/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