Brian: what you're actually getting back is a service exception (try saving and opening the output in a text editor such as Notepad), which states invalid layers given. In your WMS GetMap request, you specify the layer "parcelwms" which does exists in your mapfile (i.e. LAYER.NAME). When I try changing the layer name to "parcels", i.e.:
http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&service=WMS&version=1.1.1&request=GetMap&layers=parcels&styles=default&srs=EPSG:26915&bbox=276595,5065831,342552,5113395&width=600&height=500&format=image/png I get a valid response back. ..Tom -----Original Message----- From: [EMAIL PROTECTED] on behalf of Fischer, Brian Sent: Fri 15-Aug-08 10:52 To: [email protected] Subject: [mapserver-users] WMS Request issue MapServer users: Has anyone else ran into this issue. I am trying to access a WMS service I setup through a web browser to test it and the browser keeps prompting me to download mapserv.exe instead of executing it. Any ideas why it works on a non-wms request and not the wms getmap request? Both are using the same location and .exe on the server. It is using MapServer 5.2 from MS4W 2.2.8. Thanks, Brian If I do a non-wms request it works (example below): http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOO SE/douglas/maps_douglas/douglas_ogc.map&mapext=276595%205065831%20342552 %205113395&mapsize=821%20638&mode=map&layers <http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMO OSE/douglas/maps_douglas/douglas_ogc.map&mapext=276595%205065831%2034255 2%205113395&mapsize=821%20638&mode=map&layers> = If I do a WMS GetMap request it prompts me to download the .exe: http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOO SE/douglas/maps_douglas/douglas_ogc.map&service=WMS&version=1.1.1&reques t=GetMap&layers=parcelwms&styles=default&srs=EPSG:26915&bbox=276595,5065 831,342552,5113395&width=600&height=500&format=image/png <http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMO OSE/douglas/maps_douglas/douglas_ogc.map&service=WMS&version=1.1.1&reque st=GetMap&layers=parcelwms&styles=default&srs=EPSG:26915&bbox=276595,506 5831,342552,5113395&width=600&height=500&format=image/png> The mapfile is pretty straightforward as well. MAP NAME 'DouglasOGC' SIZE 800 650 STATUS ON EXTENT 5069486 285288 5109721 334186 UNITS METERS FONTSET 'fonts/fontset.list' SYMBOLSET 'symbols/symbol.sym' CONFIG "PROJ_LIB" "C:\proj\nad" PROJECTION "init=epsg:26915" END WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "Douglas County WMS Server" "wms_onlineresource" "http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMO OSE/douglas/maps_douglas/douglas_ogc.map&" "wms_srs" "EPSG:26915" "wms_abstract" "The Douglas County WMS server has been setup for testing purposes only. The data should not be used for any official decisions" "wfs_title" "Douglas County WFS Server" "wfs_onlineresource" "http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMO OSE/douglas/maps_douglas/douglas_ogc.map&" "wfs_srs" "EPSG:26915" "wfs_abstract" "The Douglas County WFS server has been setup for testing purposes only. The data should not be used for any official decisions" END END LEGEND STATUS ON END LAYER # Parcel Polygon Layer NAME parcels METADATA "wms_title" "parcelwms" 'WMS_FEATURE_INFO_MIME_TYPE' 'text/plain' "wfs_title" "parcelwfs" "gml_featureid" "FID" "gml_include_items" "PIN,GIS_ACRES,TAXPAYER" END DATA 'ogc/parcels_utm15' DUMP TRUE #MAXSCALE 50000 #MINSCALE 500 STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:26915" END CLASS NAME "Parcels" SYMBOL 'plainline' COLOR -1 -1 -1 OUTLINECOLOR 153 255 153 SIZE 1.5 END END # Parcels Polygon Layer END ## end Map Brian Fischer, CFM GIS Project Manager Houston Engineering, Inc. | Leave Nothing to ChanceTM 6901 East Fish Lake Road, Suite 140 Maple Grove, MN 55369 Phone: 763.493.4522 / Fax: 763.493.5572 Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Website: www.houstonengineeringinc.com <http://www.houstonengineeringinc.com/> _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
