Thanks Jukka, Robert, Jukka was right... it was saved as mapserv.exe, but when I opened it with an editor, it was the appropriate XML... I just assumed that it was downloading the binary itself and didn't bother downloading it.
Thanks! Matt On Wed, Jun 4, 2008 at 8:01 AM, Rahkonen Jukka <[EMAIL PROTECTED]> wrote: > Hi, > > I believe everything is OK. Try saving the file mapserv.exe on your disk > and open it with text editor. It is just that WMS standard gives such a > MIME type for GetCapabilities response that it is not often recognised as > XML. > > -Jukka Rahkonen- > > > -----Alkuperäinen viesti----- > > Lähettäjä: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Puolesta > > Matthew Pettis > > Lähetetty: 4. kesäkuuta 2008 15:56 > > Vastaanottaja: [email protected] > > Aihe: [mapserver-users] Making mapserver into a WMS > > > > Hi, > > > > I'm trying to test ms4w as a WMS for use with OpenLayers. > > Went through the tutorial at: > > > > http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-ma > > pfile-for-your-wms > > > > I created a simple mapfile according to the specs (I think). > > It is after the '===========' delimiter. I called it with > > the following > > url: > > > > http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs<http://localhost/cgi-bin/mapserv.exe?map=C:%5Cms4w%5CApache%5Chtdocs> > > \tmp\map.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > > > and it asked me to download the mapserv.exe application. Not > > what i expect. I'm pretty sure everything else is in order, > > because when I > > call: > > > > http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs<http://localhost/cgi-bin/mapserv.exe?map=C:%5Cms4w%5CApache%5Chtdocs> > > \tmp\map.map&mode=map > > > > I get the expected map in my browser. > > > > Any ideas what is wrong or how I am screwing up the incantation? > > > > Thanks, > > Matt > > > > =========== > > MAP > > > > ################ > > # Map attributes > > ################ > > IMAGETYPE PNG > > EXTENT 184056.505 4809728.25 767381.245 5478975.75 > > SIZE 660 495 > > IMAGECOLOR 255 255 255 > > FONTSET "C:/ms4w/Apache/htdocs/fonts/fonts.list" > > > > PROJECTION > > "init=epsg:26915" > > END > > > > #################### > > # Web settings > > #################### > > WEB > > IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/" > > IMAGEURL "/tmp/" > > METADATA > > "wms_title" "WMS Demo Server" > > "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?" > > END > > END > > > > #################### > > # State > > # Background shows through missing precincts to show > > where no votes will be coming from > > #################### > > LAYER > > NAME "state" > > METADATA > > "wms_title" "state" > > END > > CONNECTIONTYPE postgis > > CONNECTION "user=postgres dbname=gisvote password=postgres" > > DATA "the_geom from shp_state" > > STATUS default > > TYPE polygon > > > > CLASS > > NAME "state" > > COLOR 200 200 200 > > END > > > > END # Layer state > > > > END > > _______________________________________________ > > mapserver-users mailing list > > [email protected] > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
