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 SummaryFieldsModifier and TypeFieldDescriptionprotected booleanIf 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionapplyRenderingTransformation(Expression transformation, FeatureSource featureSource, Query layerQuery, Query renderingQuery, GridGeometry2D gridGeometry, CoordinateReferenceSystem sourceCrs, RenderingHints hints) protected abstract GridCoverage2DreadCoverage(GridCoverage2DReader reader, Object params, GridGeometry2D readGG) Subclasses will override and provide means to read the coveragevoidsetOversampleEnabled(boolean oversample) 
- 
Field Details- 
TRANSFORM_READ_BUFFER_PIXELSpublic static final int TRANSFORM_READ_BUFFER_PIXELS- See Also:
 
- 
oversampleprotected 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- 
RenderingTransformationHelperpublic RenderingTransformationHelper()
 
- 
- 
Method Details- 
applyRenderingTransformationpublic Object applyRenderingTransformation(Expression transformation, FeatureSource featureSource, Query layerQuery, Query renderingQuery, GridGeometry2D gridGeometry, CoordinateReferenceSystem sourceCrs, RenderingHints hints) throws IOException, SchemaException, TransformException, FactoryException 
- 
readCoverageprotected abstract GridCoverage2D readCoverage(GridCoverage2DReader reader, Object params, GridGeometry2D readGG) throws IOException Subclasses will override and provide means to read the coverage- Throws:
- IOException
 
- 
setOversampleEnabledpublic void setOversampleEnabled(boolean oversample) 
 
-