<ogc:Filter> <ogc:PropertyIsLessThan> <ogc:PropertyName>temperature</ogc:PropertyName> <ogc:Function name="env"> <ogc:Literal>tem</ogc:Literal> <ogc:Literal>0</ogc:Literal> </ogc:Function> </ogc:PropertyIsLessThan> </ogc:Filter> openlayers的传递 var env = 'tem:' + tem; if (temperature) { temperature.mergeNewParams({ env : env }); }