when using a style with an env variable (colname) as :
<ogc:Function name=“property”>
<ogc:Function name=“env”>
<ogc:Literal>colname</ogc:Literal>
<ogc:Literal>value_2000</ogc:Literal>
</ogc:Function>
</ogc:Function>
using wms direct call is OK ( &env=colname:value_2050) but when using WMS animator with
&aparam=env:colname&avalues=value_2050,value_2060
the value is not recognized in geoserver
it switches back to the default value (value_2000)
if I use a layout (message.xml) in the same WMS animator request, with the same variable, the value is displayed correctly.
log file displays this error :
13 oct. 10:06:05 WARN [wms.responses] - couldn’t paint due to:
Expression avalue is undefined on line 1, column 3 in name.
The problematic instruction:
==> $
{avalue}
[on line 1, column 1 in name]
Java backtrace for programmers:
freemarker.core.InvalidReferenceException: Expression avalue is undefined on line 1, column 3 in name.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125)
|