Ticket #797 (new enhancement)

Opened 4 years ago

Last modified 3 years ago

variables in MAP file

Reported by: bartvde@osgis.nl Assigned to: sdlime
Priority: high Milestone: FUTURE
Component: MapServer C Library Version: 4.3
Severity: minor Keywords:
Cc:

Description

In my opinion it would be a nice enhancement to be able to define variables in
your MAP file which you can use throughout the MAP file.

E.g.
DEFINE WMS_URL "http://www.vz.geodan.nl:8080"

LAYER
  CONNECTION "%WMS_URL%/ms4w/apps/zeegras/map/zeegras_server.map&"

Or any other syntax. This can lighten configuration. Ofcourse this can be done
by using a scripting environment, but not everybody wants to use a scripting
environment to get this done.

Thoughts?

Change History

08/09/04 14:43:43 changed by sdlime

Interesting idea. Personally I think it's more useful to control variables like 
that from outside the mapfile than within. That is, pass in WMS_URL as a 
variable via the CGI program. That support is already there for a limited 
number of elements such as DATA, CONNECTION and EXPRESSIONs.

It's worth leaving here as a feature request though cause it may be real easy 
to add later...

Steve

08/10/04 02:13:22 changed by bartvde@osgis.nl

Hi Steve,

this especially comes in handy when using MAP files as the configuration file
for Chameleon. These MAP files are read by php_mapscript and determine which
layers will be present in the Chameleon application.

Bart

05/11/05 15:32:31 changed by bartvde@osgis.nl

  • milestone set to FUTURE.
Setting target to future.