i am trying to create wms service using postgres data in mapservermy map file(wms.map) is
MAP EXTENT 8240841.450745 2400319.900386 9218007.463612 3107183.406947 TRANSPARENT on IMAGETYPE png size 150 500
web metadata"wms_title" "Customer Airports" "wms_onlineresource" "http://localhost:8085/cgi-bin/mapserv.exe?" "wms_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:900913" "wms_feature_info_mime_type" "text/html" "wms_format" "image/png"
endendLAYER CONNECTIONTYPE postgis
CONNECTION "user=postgres password=abcd dbname=sample port=5432 host=localhost" DATA "geom FROM district_old using unique gid"
STATUS DefaultTYPE polygonPROJECTION "init=epsg:900913"ENDlabelitem 'district'class style #color 55 230 51 outlinecolor 90 90 90 width 2 end LABEL #color 255 255 255 size 2 BACKGROUNDCOLOR 255 201 14 position auto END end END
END
in the browser when i paste the url "http://localhost/cgi-bin/mapserv.ex...s/wms.map&SERVICE=WMS&REQUEST=GetCapabilities"
it is not displaying the xml file instead it is downloading the mapserv.exe file
please correct my code also tell me the requirements to work with wms
أكثر...
MAP EXTENT 8240841.450745 2400319.900386 9218007.463612 3107183.406947 TRANSPARENT on IMAGETYPE png size 150 500
web metadata"wms_title" "Customer Airports" "wms_onlineresource" "http://localhost:8085/cgi-bin/mapserv.exe?" "wms_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:900913" "wms_feature_info_mime_type" "text/html" "wms_format" "image/png"
endendLAYER CONNECTIONTYPE postgis
CONNECTION "user=postgres password=abcd dbname=sample port=5432 host=localhost" DATA "geom FROM district_old using unique gid"
STATUS DefaultTYPE polygonPROJECTION "init=epsg:900913"ENDlabelitem 'district'class style #color 55 230 51 outlinecolor 90 90 90 width 2 end LABEL #color 255 255 255 size 2 BACKGROUNDCOLOR 255 201 14 position auto END end END
END
in the browser when i paste the url "http://localhost/cgi-bin/mapserv.ex...s/wms.map&SERVICE=WMS&REQUEST=GetCapabilities"
it is not displaying the xml file instead it is downloading the mapserv.exe file
please correct my code also tell me the requirements to work with wms
أكثر...