Package org.geotools.renderer.lite
Class RenderingTransformationHelper
Object
RenderingTransformationHelper
Helper class that transforms the input data via rendering transformations. Rolled out so that it can be shared among
StreamingRenderer
and grid coverage direct rendering to RenderedImage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
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 final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyRenderingTransformation
(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 Details
-
TRANSFORM_READ_BUFFER_PIXELS
public static final int TRANSFORM_READ_BUFFER_PIXELS- See Also:
-
oversample
protected boolean oversampleIf 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.
-
-
Constructor Details
-
RenderingTransformationHelper
public RenderingTransformationHelper()
-
-
Method Details
-
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)
-