Use of a varible name in TEMPLATE String

Steve Lime Steve.Lime at DNR.STATE.MN.US
Wed Jan 3 21:37:10 EST 2007


Not as the code sits. That's not a parameter that is currently processed
for runtime variables. You can switch entire templates with
map_web_template (in combination with templatepattern). It's a
relatively easy hack to change mapserv.c to do this, a bit harder in
upcoming releases that provide a mechanism to validate runtime
substitutions, but still doable.

Steve

>>> Dave Potts <dave.potts at PINAN.CO.UK> 01/03/07 6:14 PM >>>

Hi Folks

Is it possible to say something like this in a .map file

WEB
   TEMPLATE
"../WEB-INF/post_transform_directory/en_gb/%platform%dataxml"
   IMAGEPATH "../tmp/"
   IMAGEURL "tmp/"
   LOG "/tmp/map.out"
  END

Where %platform% is a varible name.

regards

David.



More information about the mapserver-users mailing list