GridCoverageRenderer improperly applies the BandSelect optimization 2 times in a row

Description

The GridCoverageRenderer applies 2 times in a row the BandSelection optmization.

Basically, BandSelect optimization consists of sending a Bands read parameter down to the reader, based on the ChannelSelection specified in the style, follow up by a reordering of the ChannelSelection in the style.
The current code does that 2 times in sequence, resulting into the 2nd time working on a wrong band indices set (being always 0,1,2 as per 1st re-ordering)

Environment

None

Assignee

Daniele Romagnoli

Reporter

Daniele Romagnoli

Triage

None

Components

Fix versions

Affects versions

Priority

Medium
Configure