[mapserver-users] WMS Request issue

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Fri Aug 15 08:19:37 PDT 2008


Hi,

File you are prompted to download is not the mapserv.exe you believe.  It is xml text file and if you just download it and open it you'll see:

<?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>

However, using layers=parcels does not give an image either, but this message this time:

msEvalRegex(): Regular expression error. String (/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/jpeg) failed expression test. 

Go on trying, we will certainly do it!

-Jukka Rahkonen-


-----Alkuperäinen viesti-----
Lähettäjä: mapserver-users-bounces at lists.osgeo.org puolesta: Fischer, Brian
Lähetetty: pe 15.8.2008 17:52
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [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:  bfischer at houstonengineeringinc.com
<mailto:bfischer at houstonengineeringinc.com> 
Website: www.houstonengineeringinc.com
<http://www.houstonengineeringinc.com/>  
 




More information about the MapServer-users mailing list