Hi Brian,
Mapserver is actually executed and sends an error report back to you:
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
"http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException code="LayerNotDefined">
msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the
LAYERS parameter.
</ServiceException>
</ServiceExceptionReport>
Your layers parameter is wrong, it should be parcels instead of parcelswms:
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
When you use version 1.0.0 instead of 1.1.1 the error is reported as an
image, so you can read it in your browser.
Regards,
Maarten Plieger
Fischer, Brian schreef:
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/GeoMOOSE/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/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&mapext=276595%205065831%20342552%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/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&service=WMS&version=1.1.1&request=GetMap&layers=parcelwms&styles=default&srs=EPSG:26915&bbox=276595,5065831,342552,5113395&width=600&height=500&format=image/png
<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=parcelwms&styles=default&srs=EPSG:26915&bbox=276595,5065831,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/GeoMOOSE/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/GeoMOOSE/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 Chance^TM
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
--
Maarten Plieger
KNMI, R&D Information and Observation Technology, De Bilt
(t) +31 30 2206330
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users