<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>&nbsp;</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>&nbsp;</DIV>
<DIV>Cheers,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert Sanson<BR><BR>&gt;&gt;&gt; "Matthew Pettis" &lt;matthew.pettis@gmail.com&gt; 5/06/2008 12:55 a.m. &gt;&gt;&gt;<BR></DIV>
<DIV style="COLOR: #000000">Hi,<BR><BR>I'm trying to test ms4w as a WMS for use with OpenLayers.&nbsp; 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).&nbsp; It is<BR>after the '===========' delimiter.&nbsp; 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&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetCapabilities">http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp\map.map&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetCapabilities</A><BR><BR>and it asked me to download the mapserv.exe application.&nbsp; Not what i<BR>expect.&nbsp; 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&amp;mode=map">http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp\map.map&amp;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>&nbsp;&nbsp;&nbsp; ################<BR>&nbsp;&nbsp;&nbsp; # Map attributes<BR>&nbsp;&nbsp;&nbsp; ################<BR>&nbsp; IMAGETYPE&nbsp;&nbsp; PNG<BR>&nbsp; EXTENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 184056.505 4809728.25 767381.245 5478975.75<BR>&nbsp; SIZE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 660 495<BR>&nbsp; IMAGECOLOR&nbsp; 255 255 255<BR>&nbsp; FONTSET&nbsp;&nbsp;&nbsp;&nbsp; "C:/ms4w/Apache/htdocs/fonts/fonts.list"<BR><BR>&nbsp; PROJECTION<BR>&nbsp;&nbsp;&nbsp; "init=epsg:26915"<BR>&nbsp; END<BR><BR>&nbsp;&nbsp;&nbsp; ####################<BR>&nbsp;&nbsp;&nbsp; # Web settings<BR>&nbsp;&nbsp;&nbsp; ####################<BR>&nbsp; WEB<BR>&nbsp;&nbsp;&nbsp; IMAGEPATH&nbsp;&nbsp; "C:/ms4w/Apache/htdocs/tmp/"<BR>&nbsp;&nbsp;&nbsp; IMAGEURL&nbsp;&nbsp;&nbsp; "/tmp/"<BR>&nbsp;&nbsp;&nbsp; METADATA<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "wms_title"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "WMS Demo Server"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "wms_onlineresource"&nbsp; "<A href="http://localhost/cgi-bin/mapserv.exe?" ?>http://localhost/cgi-bin/mapserv.exe?"</A><BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; END<BR><BR>&nbsp;&nbsp;&nbsp; ####################<BR>&nbsp;&nbsp;&nbsp; # State<BR>&nbsp;&nbsp;&nbsp; # Background shows through missing precincts to show where no<BR>votes will be coming from<BR>&nbsp;&nbsp;&nbsp; ####################<BR>&nbsp; LAYER<BR>&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "state"<BR>&nbsp;&nbsp;&nbsp; METADATA<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "wms_title"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "state"<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE&nbsp;&nbsp;&nbsp; postgis<BR>&nbsp;&nbsp;&nbsp; CONNECTION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "user=postgres dbname=gisvote password=postgres"<BR>&nbsp;&nbsp;&nbsp; DATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "the_geom from shp_state"<BR>&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default<BR>&nbsp;&nbsp;&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; polygon<BR><BR>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "state"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 200 200 200<BR>&nbsp;&nbsp;&nbsp; END<BR><BR>&nbsp; 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&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;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>