<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Hi Matthew</DIV>
<DIV> </DIV>
<DIV>Just save the "mapserv.exe" file and give it an .xml extension, then opne it with a text editor. It will be XML!</DIV>
<DIV> </DIV>
<DIV>Cheers,</DIV>
<DIV> </DIV>
<DIV>Robert Sanson<BR><BR>>>> "Matthew Pettis" <matthew.pettis@gmail.com> 5/06/2008 12:55 a.m. >>><BR></DIV>
<DIV style="COLOR: #000000">Hi,<BR><BR>I'm trying to test ms4w as a WMS for use with OpenLayers. Went<BR>through the tutorial at:<BR><BR><A href="http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-mapfile-for-your-wms">http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-mapfile-for-your-wms</A><BR><BR>I created a simple mapfile according to the specs (I think). It is<BR>after the '===========' delimiter. I called it with the following<BR>url:<BR><BR><A href="http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp\map.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities">http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp\map.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities</A><BR><BR>and it asked me to download the mapserv.exe application. Not what i<BR>expect. I'm pretty sure everything else is in order, because when I<BR>call:<BR><BR><A href="http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp\map.map&mode=map">http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp\map.map&mode=map</A><BR><BR>I get the expected map in my browser.<BR><BR>Any ideas what is wrong or how I am screwing up the incantation?<BR><BR>Thanks,<BR>Matt<BR><BR>===========<BR>MAP<BR><BR> ################<BR> # Map attributes<BR> ################<BR> IMAGETYPE PNG<BR> EXTENT 184056.505 4809728.25 767381.245 5478975.75<BR> SIZE 660 495<BR> IMAGECOLOR 255 255 255<BR> FONTSET "C:/ms4w/Apache/htdocs/fonts/fonts.list"<BR><BR> PROJECTION<BR> "init=epsg:26915"<BR> END<BR><BR> ####################<BR> # Web settings<BR> ####################<BR> WEB<BR> IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/"<BR> IMAGEURL "/tmp/"<BR> METADATA<BR> "wms_title" "WMS Demo Server"<BR> "wms_onlineresource" "<A href="http://localhost/cgi-bin/mapserv.exe?" ?>http://localhost/cgi-bin/mapserv.exe?"</A><BR> END<BR> END<BR><BR> ####################<BR> # State<BR> # Background shows through missing precincts to show where no<BR>votes will be coming from<BR> ####################<BR> LAYER<BR> NAME "state"<BR> METADATA<BR> "wms_title" "state"<BR> END<BR> CONNECTIONTYPE postgis<BR> CONNECTION "user=postgres dbname=gisvote password=postgres"<BR> DATA "the_geom from shp_state"<BR> STATUS default<BR> TYPE polygon<BR><BR> CLASS<BR> NAME "state"<BR> COLOR 200 200 200<BR> END<BR><BR> END # Layer state<BR><BR>END<BR>_______________________________________________<BR>mapserver-users mailing list<BR>mapserver-users@lists.osgeo.org<BR><A href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR><BR><BR><BR><BR></DIV><br><br><table bgcolor=white style="color:black"><tr><td><br>------------------------------------------------------------------<br>
The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message.<br>
------------------------------------------------------------------</td></tr></table><br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been scanned for malware by SurfControl plc. </FONT><A href="http://www.surfcontrol.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>www.surfcontrol.com</FONT></A></P>
</body></HTML>