Package org.geotools.coverage.grid.io
Class ReadPaddingCalculator
Object
ReadPaddingCalculator
Helper class to compute read padding to be applied when reading data for rendering, taking into account interpolation
and oversampling.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault padding to be applied around the requested area to accommodate interpolation needs. -
Constructor Summary
ConstructorsConstructorDescriptionReadPaddingCalculator(GridCoverage2DReader reader, String coverageName, Interpolation interpolation, int padding) ReadPaddingCalculator(GridCoverage2DReader reader, Interpolation interpolation) ReadPaddingCalculator(GridCoverage2DReader reader, Interpolation interpolation, int padding) -
Method Summary
Modifier and TypeMethodDescriptionpadGridGeometry(GridGeometry2D requestedGridGeometry) Computes a new grid geometry padded according to the interpolation needs at the rendering resolution of the requested grid geometry.
-
Field Details
-
DEFAULT_PADDING
public static final int DEFAULT_PADDINGDefault padding to be applied around the requested area to accommodate interpolation needs.- See Also:
-
-
Constructor Details
-
ReadPaddingCalculator
public ReadPaddingCalculator(GridCoverage2DReader reader, Interpolation interpolation) throws IOException - Throws:
IOException
-
ReadPaddingCalculator
public ReadPaddingCalculator(GridCoverage2DReader reader, Interpolation interpolation, int padding) throws IOException - Throws:
IOException
-
ReadPaddingCalculator
public ReadPaddingCalculator(GridCoverage2DReader reader, String coverageName, Interpolation interpolation, int padding) throws IOException - Throws:
IOException
-
-
Method Details
-
padGridGeometry
Computes a new grid geometry padded according to the interpolation needs at the rendering resolution of the requested grid geometry.- Parameters:
requestedGridGeometry- the requested grid geometry- Returns:
- the padded grid geometry
- Throws:
IOException
-