[Mapserver-users] request=GetMap& error in MapServer v4.1

Kralidis,Tom [Burlington] Tom.Kralidis at ec.gc.ca
Wed Apr 14 15:33:23 EDT 2004


This is because this MapServer dist is OGC compliant.  That is, this
MapServer dist passes the OGC conformance testing.

The URL below is not a valid OGC:WMS GetMap request, as per the spec.

..Tom


> -----Original Message-----
> From: Ed McNierney [mailto:ed at topozone.com] 
> Sent: Wednesday, April 14, 2004 3:18 PM
> To: Rene Teniere ; mapserver-users at lists.gis.umn.edu
> Subject: RE: [Mapserver-users] request=GetMap& error in MapServer v4.1
> 
> 
> Rene -
> 
> I'm a little puzzled - your GetMap request is missing several 
> required parameters (SRS, BBox, Width, Height, Layers, etc.). 
>  I'm surprised it worked at all in 4.0.2.  The error message 
> is (a little obscurely) complaining because you have no LAYERS at all.
> 
> 	- Ed
> 
> Ed McNierney
> President and Chief Mapmaker
> TopoZone.com / Maps a la carte, Inc.
> 73 Princeton Street, Suite 305
> North Chelmsford, MA  01863
> ed at topozone.com
> (978) 251-4242  
> 
> -----Original Message-----
> From: Rene Teniere [mailto:TENIERER at gov.ns.ca] 
> Sent: Wednesday, April 14, 2004 2:56 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: [Mapserver-users] request=GetMap& error in MapServer v4.1
> 
> When I try to request GetMap: 
> http://10.2.185.9/cgi-bin/mapserv402.exe?map=/inetpub/wwwroot/
> wms/wmstes
> t.map&version=1.1.1&request=GetMap&
> 
> I get a download prompt which gives me an error. This works 
> fine in MapServer v4.0.2, anyone know what's up?
> 
> Rene
> 
> Here is the error:
> 
> <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?> 
> <!DOCTYPE ServiceExceptionReport SYSTEM 
> "http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd">
> <ServiceExceptionReport version="1.1.0"> <ServiceException 
> code="LayerNotDefined">
> msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) 
> given in the LAYERS parameter. </ServiceException> 
> </ServiceExceptionReport>
> 
> Here is a selection of the mapfile:
> 
> MAP
>   NAME "WAP Page"
>   STATUS ON
>   EXTENT 381053 4915490 573294 5059550
>   SIZE 400 300
>   SHAPEPATH "d:/GIS_Data/"
>   SYMBOLSET "c:/Inetpub/wwwroot/wms/etc/nsdnr_symbols.sym"
>   FONTSET "c:/Inetpub/wwwroot/wms/etc/fonts.txt"
>   IMAGETYPE PNG24
>   IMAGECOLOR 255 255 255
>   UNITS METERS
>   RESOLUTION 90.714286
>   WEB
>     IMAGEPATH "c:/temp/tmp/"
>     IMAGEURL "/temp/tmp/"
>     METADATA
>       "wms_title"                        "Nova Scotia NFIS Server"
>       "wms_onlineresource"              
> "http://10.2.185.9/cgi-bin/mapserv402.exe?map=/inetpub/wwwroot
> /wms/wapwm
> s.map&"
>       "wms_srs"                          "EPSG:2038"
> 
>       #Optional wms entries:
>       "wms_contactperson"                "Richard Morash"
>       "wms_contactorganization"          "Nova Scotia Department of
> Natural Resources, Forestry Division"
>       "wms_contactposition"              "GIS Project Manager"
>       "wms_abstract"                     "Nova Scotia Department of
> Natural Resources Forestry Division. This is Nova Scotia's 
> Base Data Open GIS Consortium Web Map Server for sustainable 
> forest management."
>       "wms_keywordlist"                 
> "WAP,Forest,Information,System,gis,sustainable,management"
>       "wms_addresstype"                  "Postal"
>       "wms_address"                      "664 Prince Street PO BOX 68"
>       "wms_city"                         "Truro"
>       "wms_stateorprovince"              "Nova Scotia"
>       "wms_postcode"                     "B2N 5B8"
>       "wms_country"                      "CANADA"
>       "wms_contactvoicetelephone"        "(902) 893-5657"
>       "wms_contactfacsimiletelephone"    "(902) 893-6102"
>       "wms_contactelectronicmailaddress" "rmorash at gov.ns.ca"
>       "wms_accessconstraints"            "WMS image only"
>       "wms_fees"                         "None"
>     END
>   END
>   PROJECTION
>     "init=epsg:2038" 
>     #UTM Zone 20 NAD83 for Nova Scotia
>   END
>   OUTPUTFORMAT
>     NAME "PNG24"
>     MIMETYPE "image/png"
>     DRIVER "GD/PNG"
>     EXTENSION "png"
>     IMAGEMODE RGB
>   END
>   LAYER
>     NAME "Forest"
>     GROUP "Forest_Type"
>     STATUS OFF
>     TYPE POLYGON
>     MAXSCALE 500000
>     TILEINDEX "coindex/coindex"
>     TILEITEM "loforest"
>     CLASSITEM "COVER_TYPE"
>     TOLERANCE 10
>     TOLERANCEUNITS PIXELS
>     METADATA
>       "wms_title"       "Forest"
>       "wms_srs"         "EPSG:2038"
>       "wms_group_title" "Forest_Type"
>     END 
>     CLASS
>       NAME "Softwood"
>       EXPRESSION "2"
>       STYLE
>         SYMBOL 0
>         COLOR 33 66 0
>         SIZE 1
>         MINSIZE 1
>         MAXSIZE 100
>       END
>     END
>     CLASS
>       NAME "Mixwood"
>       EXPRESSION "5"
>       STYLE
>         SYMBOL 0
>         COLOR 33 99 33
>         SIZE 1
>         MINSIZE 1
>         MAXSIZE 100
>       END
>     END
>     CLASS
>       NAME "Hardwood"
>       EXPRESSION "8"
>       STYLE
>         SYMBOL 0
>         COLOR 100 50 0
>         SIZE 1
>         MINSIZE 1
>         MAXSIZE 100
>       END
>     END
>   END
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu 
> http://lists.gis.umn.edu/mailman/listinfo/maps> erver-users
> 
> 
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu 
> http://lists.gis.umn.edu/mailman/listinfo/maps> erver-users
> 



More information about the mapserver-users mailing list