[mapserver-users] ScaleHint

Doyon, Jean-Francois Jean-Francois.Doyon at CCRS.NRCan.gc.ca
Thu Jul 19 07:36:10 PDT 2001


OK, it's this simple:

Make sure you have the module mod_setenvif enabled or compiled into your
apache and setup a line like follows in your httpd.conf:

SetEnvIfNoCase Request_URI "/cgi-bin/atlasogcmapper"
MS_MAPFILE=/home/mapdata/nac/wms.map

That's it!

Although I've never tried it with Apache on NT, I see no reason why it
wouldn't work.

Hope this helps,
J.F.

> ----------
> From: 	Paul Ramsey[SMTP:pramsey at refractions.net]
> Sent: 	Wednesday, July 18, 2001 5:51 PM
> To: 	Doyon, Jean-Francois
> Subject: 	Re: [mapserver-users] ScaleHint
> 
> It would make more sense with an httpd.conf fragment, but I get the gist
> of it... :)
> 
> "Doyon, Jean-Francois" wrote:
> > 
> > > > PS - Doesn't requiring the 'map' parameter violate the WMS spec? (I
> > > > recognize the difficulty, however -- what is a service description
> > > > absent a map file? Perhaps a simple wrapper example could be
> bundled.)
> > >
> > Indeed, although vendor specific parameters are allowed, they must NOT
> be
> > required.
> > 
> > I got around this by using the "setenvif" feature of apache ... I use
> > symbolic links that all point to a same mapserv binary ... For each
> symbolic
> > link, I test the url, and set the MAP environment variable accordinginly
> ...
> > Works great for me !
> > 
> > Did that make sense ?
> 
> -- 
>       __
>      /
>      | Paul Ramsey
>      | Refractions Research
>      | Email: pramsey at refractions.net
>      | Phone: (250) 885-0632
>      \_
> 



More information about the MapServer-users mailing list