Class ChannelSelectionUpdateStyleVisitor
Object
DuplicatingStyleVisitor
ChannelSelectionUpdateStyleVisitor
- All Implemented Interfaces:
StyleVisitor
ChannelSelectionUpdateStyleVisitor is a
DuplicatingStyleVisitor
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 channelsMethods 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 Details
-
ChannelSelectionUpdateStyleVisitor
-
-
Method Details
-
copy
- Overrides:
copy
in classDuplicatingStyleVisitor
-
getBandIndicesFromSelectionChannels
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)
-