[mapserver-users] run-time substitution

Eva Jelínková evka.jelinkova at gmail.com
Tue Jul 12 08:52:35 PDT 2016


Hi Jeff,

thanks a lot!
It really works with your validation expression.

Looking forward to see you in Bonn!
Eva


2016-07-11 20:50 GMT+02:00 Jeff McKenna <jmckenna at gatewaygeomatics.com>:

> 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.
>>
>>
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160712/3890b866/attachment.html>


More information about the mapserver-users mailing list