Yes.
Just as you have suggested. Have a CGI wrapper script, which determines the
variable's value based on hostname (or whatever), then append this (to the
QUERY_STRING prior to executing mapserver.
See: http://mapserver.org/cgi/wrapper.html
As shown in the link below, both the CONNECTION & DA
@lists.osgeo.org
Objet : RE: [mapserver-users] Parameterized MapFile using CGI variable
Nicolas,
I didnt have a mapfile that utilizes connection handy, but I did test using
INCLUDE to substitute the value for DATA in an individual layer.
Here is part of the layer definition:
LAYER
Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: Nicolas BOUTET
Lähetetty: pe 29.4.2011 17:49
Vastaanottaja: 'Fawcett, David (MPCA)'; mapserver-users@lists.osgeo.org
Aihe: RE: [mapserver-users] Parameterized MapFile using CGI variable
Thank you David,
Yes, using INCLU
;
>
> De : Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us]
>
> Envoyé : vendredi 29 avril 2011 16:37
> À : nicolas.bou...@geosys.com; mapserver-users@lists.osgeo.org
> Objet : RE: [mapserver-users] Parameterized MapFile using CGI variable
>
>
>
> One potential way t
different map
files.
Nicolas
De : Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us]
Envoyé : vendredi 29 avril 2011 16:37
À : nicolas.bou...@geosys.com; mapserver-users@lists.osgeo.org
Objet : RE: [mapserver-users] Parameterized MapFile using CGI variable
One potential way to do
ay, April 29, 2011 9:49 AM
To: Fawcett, David (MPCA); mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Parameterized MapFile using CGI variable
Thank you David,
Yes, using INCLUDE should be a good solution. But as I know in MapServer 5.6,
CONNECTION is a parameter of my LAYER objects
One potential way to do it would be with the use of 'include's.
http://mapserver.org/mapfile/Include.html
The primary mapfile wouldn't have a connection object, but it would contain:
INCLUDE "connect_info.map"
Then on each machine, you would have a different version of connect_info.map
that co