Class ChannelSelectionUpdateStyleVisitor
- Object
-
- DuplicatingStyleVisitor
-
- ChannelSelectionUpdateStyleVisitor
-
- All Implemented Interfaces:
StyleVisitor
public class ChannelSelectionUpdateStyleVisitor extends DuplicatingStyleVisitor
ChannelSelectionUpdateStyleVisitor is aDuplicatingStyleVisitor
that is used to "reset" style symbolizer's selection channel order when the GridCoverageReader used to read a coverage supports band selection. If a reader supports band selection then channel ordering is done by band selection from the reader, so symbolizer does not need to re-apply selection channel order.Also, see
AbstractGridFormat.BANDS
for the reader band selection parameter description.
-
-
Field Summary
-
Fields inherited from class DuplicatingStyleVisitor
copyFilter, ff, pages, sf, STRICT
-
-
Constructor Summary
Constructors Constructor Description ChannelSelectionUpdateStyleVisitor(SelectedChannelType[] channels)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ChannelSelection
copy(ChannelSelection channelSelection)
static int[]
getBandIndicesFromSelectionChannels(RasterSymbolizer symbolizer)
Returns an int[] containing the indices of the coverage bands that are used for the symbolizer's selection channels-
Methods inherited from class DuplicatingStyleVisitor
copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copyExpressions, copyFonts, getCopy, setStrict, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
-
-
-
Constructor Detail
-
ChannelSelectionUpdateStyleVisitor
public ChannelSelectionUpdateStyleVisitor(SelectedChannelType[] channels)
-
-
Method Detail
-
copy
protected ChannelSelection copy(ChannelSelection channelSelection)
- Overrides:
copy
in classDuplicatingStyleVisitor
-
getBandIndicesFromSelectionChannels
public static int[] getBandIndicesFromSelectionChannels(RasterSymbolizer symbolizer)
Returns an int[] containing the indices of the coverage bands that are used for the symbolizer's selection channels- Parameters:
symbolizer
- The input symbolizer- Returns:
- the band indices array (null if no channel selection was present in symbolizer)
-
-