Class RasterSymbolizerHelper
-
- All Implemented Interfaces:
StyleVisitor
,CoverageProcessingNode
public class RasterSymbolizerHelper extends SubchainStyleVisitorCoverageProcessingAdapter implements StyleVisitor
A helper class for renderingGridCoverage
objects. It supports almost all RasterSymbolizer options.- Author:
- Simone Giannecchini, GeoSolutions
-
-
Constructor Summary
Constructors Constructor Description RasterSymbolizerHelper(GridCoverage2D sourceCoverage, Hints hints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GridCoverage2D
execute()
We are hacking here a solutions for whenever the user either did not specify a style or did specify a bad one and the resulting image seems not be drawable.void
visit(RasterSymbolizer rs)
Called when accept is called on a rastersymbolizer-
Methods inherited from class SubchainStyleVisitorCoverageProcessingAdapter
dispose, setSink
-
Methods inherited from class StyleVisitorCoverageProcessingNodeAdapter
addSink, addSource, getAdaptee, getCoverageFactory, getDescription, getHints, getName, getNumberOfSinks, getNumberOfSources, getOutput, getSink, getSinks, getSource, getSources, removeSink, removeSink, removeSource, removeSource, toString
-
Methods inherited from class StyleVisitorAdapter
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
-
RasterSymbolizerHelper
public RasterSymbolizerHelper(GridCoverage2D sourceCoverage, Hints hints)
-
-
Method Detail
-
execute
public GridCoverage2D execute()
We are hacking here a solutions for whenever the user either did not specify a style or did specify a bad one and the resulting image seems not be drawable.- Overrides:
execute
in classSubchainStyleVisitorCoverageProcessingAdapter
- Returns:
GridCoverage2D
the result of this operation- See Also:
BaseCoverageProcessingNode.execute()
-
visit
public void visit(RasterSymbolizer rs)
Description copied from interface:StyleVisitor
Called when accept is called on a rastersymbolizer- Specified by:
visit
in interfaceStyleVisitor
- Overrides:
visit
in classStyleVisitorAdapter
- Parameters:
rs
- the raster symbolizer to visit
-
-