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

Ed McNierney ed@topozone.com
Thu, 15 Apr 2004 11:54:00 -0400


Rene -

The WMS GetMap request specifies a particular map, while the map file
defines the set of map services available.  A given map file can provide
for multiple SRS, BBox, Width, Height, Layers, and Format options, so
the request needs to indicate what particular map is being requested
right now.

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed@topozone.com
(978) 251-4242  

-----Original Message-----
From: Rene Teniere [mailto:TENIERER@gov.ns.ca] 
Sent: Thursday, April 15, 2004 8:28 AM
To: dmorissette@dmsolutions.ca; RCorbet@gov.ns.ca
Cc: mapserver-users@lists.gis.umn.edu
Subject: Re: [Mapserver-users] request=GetMap& error in MapServer v4.1

If we have to specify almost everything in the GetMap request, why do we
have to have it in the WMS server map file as well??

>>> "Daniel Morissette" <dmorissette@dmsolutions.ca> 2004-04-14 5:30:20
PM >>>
Ed McNierney wrote:
> 
> 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.
> 

Before V4.1, MapServer used to forgive all those missing parameters in

GetMap and use default values from the mapfile.

In 4.1 the checking has been made more strict on some parameters in
order to pass some of the tests in the OGC test suite, and the LAYERS
parameter is one of those parameters that we check for.  You probably
get the error on LAYERS because it's the first parameter that is checked
for, and once it finds one error it stops and doesn't report other
missing parameters.

Daniel
--
------------------------------------------------------------
  Daniel Morissette               dmorissette@dmsolutions.ca 
  DM Solutions Group              http://www.dmsolutions.ca/ 
------------------------------------------------------------

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users 

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users


_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users