A renderingTransformation on a raster followed by a channelSelection may involve an optimized read operation on the underlying reader which uses a BANDS parameter to avoid reading useless data (https://osgeo-org.atlassian.net/browse/GEOS-7731) This may result into a _java.lang.IllegalArgumentException: Band number N is not valid _ since the channelSelection will work on a coverage with a reduced number of bands (due to the optimized read). We should make sure to update the underlying channelSelection node in rasterSymbolizer to keep the optimization into account. |