Re: [mapserver-users] Parameterized MapFile using CGI variable

2011-04-29 Thread pcreso
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

RE: [mapserver-users] Parameterized MapFile using CGI variable

2011-04-29 Thread Nicolas BOUTET
@lists.osgeo.org Objet : RE: [mapserver-users] Parameterized MapFile using CGI variable Nicolas, I didn’t 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

Re: [mapserver-users] Parameterized MapFile using CGI variable

2011-04-29 Thread Rahkonen Jukka
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

Re: [mapserver-users] Parameterized MapFile using CGI variable

2011-04-29 Thread thomas bonfort
; > > 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

RE: [mapserver-users] Parameterized MapFile using CGI variable

2011-04-29 Thread Nicolas BOUTET
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

RE: [mapserver-users] Parameterized MapFile using CGI variable

2011-04-29 Thread Fawcett, David (MPCA)
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

RE: [mapserver-users] Parameterized MapFile using CGI variable

2011-04-29 Thread Fawcett, David (MPCA)
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