Extra Parameters in WMS Layer

Ed McNierney ed at TOPOZONE.COM
Thu Oct 12 15:24:31 EDT 2006


Jeff -

Move that parameter to the front of the querystring, and make it part of
the WMS resource name rather than a parameter (assuming you want it to
be the same value all the time).  So intead of the WMS service being:

http://map06.gsfc.nasa.gov/cgi-bin/geos-wms.cgi?

it is:


http://map06.gsfc.nasa.gov/cgi-bin/geos-wms.cgi?dim_mbar=900&


It's OK to have "parameters" be part of the resource URL, but the spec
doesn't allow random new querystring parameters to be invented by
individual servers.

	- 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: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Jeffrey Johnson
Sent: Thursday, October 12, 2006 3:10 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Extra Parameters in WMS Layer

Hi all,

I am retrieving some meteorological data from a WMS server at NASA.

See the sample URLs below.

http://map06.gsfc.nasa.gov/cgi-bin/geos-wms.cgi?SERVICE=WMS&VERSION=1.1.
1&REQUEST=GetMap&LAYERS=wind&SRS=EPSG:4326&BBOX=-180,-90,180,90&WIDTH=10
00&HEIGHT=500&FORMAT=image/png&TIME=2006-10-12T00:00&dim_mbar=1000
http://map06.gsfc.nasa.gov/cgi-bin/geos-wms.cgi?SERVICE=WMS&VERSION=1.1.
1&REQUEST=GetMap&LAYERS=wind&SRS=EPSG:4326&BBOX=-180,-90,180,90&WIDTH=10
00&HEIGHT=500&FORMAT=image/png&TIME=2006-10-12T00:00&dim_mbar=900

Notice the last parameter dim_mbar=1000/dim_mbar_900 this allows the
height or pressure level to be specified. How do I pass this info to the
WMS using a mapserver mapfile? I can't seem to be able to specify it in
the metadata section of the WMS layer. So, by default the server returns
the 1000mb pressure level.

Any ideas, or pointers to documentation on this sort of thing?

Thanks in advance,

Jeff



More information about the mapserver-users mailing list