[mapserver-users] Substitution variable

Jeff McKenna jmckenna at gatewaygeomatics.com
Mon Dec 19 14:15:23 EST 2011


On 11-12-19 3:08 PM, scott159 at free.fr 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/




More information about the mapserver-users mailing list