Env function in RasterSymbolizer's ChannelSelection doesn't evaluate in StreamingRenderer

Description

When the env function is used in a RasterSymbolizer, it will evaluate correctly when using GeoServer's direct raster rendering path but not when using StreamingRenderer. This may be because org.geotools.filter.function.EnvFunction stores the env parameters from the request in a ThreadLocal but org.geotools.renderer.lite.StreamingRenderer does its rendering on a separate thread.

Environment

None

Status

Assignee

Andrea Aime

Reporter

Steve Ikeoka

Triage

None

Components

Fix versions

Affects versions

16.2

Priority

Medium
Configure