<Rule> ... <ogc:PropertyIsLessThan> <ogc:PropertyName> <ogc:Function name="env"> <ogc:Literal>years</ogc:Literal> <ogc:Literal>yr1995</ogc:Literal> </ogc:Function> </ogc:PropertyName> <ogc:Literal>10</ogc:Literal> </ogc:PropertyIsLessThan> ... </Rule>
In the PropertyName-Tag I am writing the column name. If I only would write this:
then all the data are properly displayed in the map. But I want, that in the URL I can pass a year with ...&env=years:yr2015... as in in the documentation written. So my goal is that I pass a year as parameter in the URL and in SLD I take the column which is passed with the URL. So what am I doing wrong in the above code?