Pay particular attention to the validation block... You *must* set that up or no substitution will be done.
Steve -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jeff McKenna Sent: Monday, December 19, 2011 1:15 PM To: [email protected] Subject: Re: [mapserver-users] Substitution variable On 11-12-19 3:08 PM, [email protected] wrote: > Hi, > > I try to implement substitution variable with mapserver 6. I add in URL > "&attribute=value" and the mapfile contains : > > ... > DATA "D:\tmp\%attribute%\data.shp" > ... > > But when I launch the URL "http://.....mapserv.exe?map=....&attribute=value", > I have a error because mapserver can't load data from > D:\tmp\%attribute%\data.shp. Why the substitution doesn't work ? Is there a > configuration to add in Apache, in mapfile to success ? > Scott, I recently created a small test package for variable substitution, that contains a small working mapfile: http://labs.gatewaygeomatics.com/dl/ogr-outputformat.zip You could check that mapfile to see the syntax. Also, a full discussion is in the related ticket: http://trac.osgeo.org/mapserver/ticket/3751 I wish everyone a merry Christmas. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
