[mapserver-users] run-time substitution
Jeff McKenna
jmckenna at gatewaygeomatics.com
Mon Jul 11 11:50:53 PDT 2016
Hello Eva,
Testing with MS4W 3.1.4 (MapServer 7.0.1) on Windows, I am able to pass
"&ma_name=testing" in the url and the resulting GetCapabilities response
correctly replaces that in the wms_onlineresource value. Note that my
validation block is slightly different than yours:
WEB
VALIDATION
"ma_name" "[a-z]+"
END
METADATA
"wms_onlineresource" "http://url/cgi-bin/gp_%ma_name%_com_wms?"
...
END
...
END
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
On 2016-07-11 12:39 PM, Eva Jelínková wrote:
> Dear mapserv people,
>
> does anybody has an experience with runtime substitution in MAP->WEB:
> METADATA section of mapfile (MapServer 7)?
> http://mapserver.org/cgi/runsub.html#parameters-supported
>
> I am trying to substitute part of 'wms_onlineresource' value, using
> default value in VALIDATION. GetCapabilities request gives me string
> with %name_of_parameter% in the URL.
>
More information about the MapServer-users
mailing list