ChannelSelection after raster RenderingTransformation on a coverageView may throw a IllegalArgumentException: Band number N is not valid

Description

A renderingTransformation on a coverageView 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.

Environment

None

Status

Assignee

Daniele Romagnoli

Reporter

Daniele Romagnoli

Triage

None

Fix versions

Affects versions

Priority

Medium
Configure