Package org.geotools.renderer.lite
Class RenderingTransformationHelper
- Object
-
- RenderingTransformationHelper
-
public abstract class RenderingTransformationHelper extends Object
Helper class that transforms the input data via rendering transformations. Rolled out so that it can be shared amongStreamingRenderer
and grid coverage direct rendering toRenderedImage
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
oversample
If true, the transformation will read the coverage at a higher resolution than the native one, and then scale it down to the desired resolution.static int
TRANSFORM_READ_BUFFER_PIXELS
-
Constructor Summary
Constructors Constructor Description RenderingTransformationHelper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Object
applyRenderingTransformation(Expression transformation, FeatureSource featureSource, Query layerQuery, Query renderingQuery, GridGeometry2D gridGeometry, CoordinateReferenceSystem sourceCrs, RenderingHints hints)
protected abstract GridCoverage2D
readCoverage(GridCoverage2DReader reader, Object params, GridGeometry2D readGG)
Subclasses will override and provide means to read the coveragevoid
setOversampleEnabled(boolean oversample)
-
-
-
Field Detail
-
TRANSFORM_READ_BUFFER_PIXELS
public static final int TRANSFORM_READ_BUFFER_PIXELS
- See Also:
- Constant Field Values
-
oversample
protected boolean oversample
If true, the transformation will read the coverage at a higher resolution than the native one, and then scale it down to the desired resolution. This is useful when the transformation can benefit from receiving interpolated data, as it will have more data to interpolate from. If false, the transformation will read the coverage at the native resolution, and then scale it up to the desired resolution.
-
-
Method Detail
-
applyRenderingTransformation
public Object applyRenderingTransformation(Expression transformation, FeatureSource featureSource, Query layerQuery, Query renderingQuery, GridGeometry2D gridGeometry, CoordinateReferenceSystem sourceCrs, RenderingHints hints) throws IOException, SchemaException, TransformException, FactoryException
-
readCoverage
protected abstract GridCoverage2D readCoverage(GridCoverage2DReader reader, Object params, GridGeometry2D readGG) throws IOException
Subclasses will override and provide means to read the coverage- Throws:
IOException
-
setOversampleEnabled
public void setOversampleEnabled(boolean oversample)
-
-