Class GridCoverageReaderHelper
- Object
-
- GridCoverageReaderHelper
-
public class GridCoverageReaderHelper extends Object
Support class that performs the actions needed to read a GridCoverage for the task of rendering it at a given resolution, on a given area, taking into account projection oddities, dateline crossing, and the like- Author:
- Andrea Aime - GeoSolutions
-
-
Constructor Summary
Constructors Constructor Description GridCoverageReaderHelper(GridCoverage2DReader reader, Rectangle mapRasterArea, ReferencedEnvelope mapExtent, Interpolation interpolation)
GridCoverageReaderHelper(GridCoverage2DReader reader, Rectangle mapRasterArea, ReferencedEnvelope mapExtent, Interpolation interpolation, Hints hints)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReferencedEnvelope
getReadEnvelope()
static boolean
isReprojectingReader(GridCoverage2DReader reader)
Returns true if the reader is a reprojecting one, that is, one that can handle the coverage reprojection on its ownGridCoverage2D
readCoverage(GeneralParameterValue[] params)
Reads a single coverage for the area specified in the constructor, the code will not attempt multiple reads to manage reads across the date line, reducing the read area, splitting it into parts to manage certain projections (e.g., conic) and so onList<GridCoverage2D>
readCoverages(GeneralParameterValue[] readParams, ProjectionHandler handler)
Reads the data taking into account advanced projection handling in order to deal with date line crossing, poles and other projection trouble areas.List<GridCoverage2D>
readCoverages(GeneralParameterValue[] readParams, ProjectionHandler handler, GridCoverageFactory gridCoverageFactory)
Reads the data taking into account advanced projection handling in order to deal with date line crossing, poles and other projection trouble areas.
-
-
-
Constructor Detail
-
GridCoverageReaderHelper
public GridCoverageReaderHelper(GridCoverage2DReader reader, Rectangle mapRasterArea, ReferencedEnvelope mapExtent, Interpolation interpolation) throws FactoryException, IOException
- Throws:
FactoryException
IOException
-
GridCoverageReaderHelper
public GridCoverageReaderHelper(GridCoverage2DReader reader, Rectangle mapRasterArea, ReferencedEnvelope mapExtent, Interpolation interpolation, Hints hints) throws FactoryException, IOException
- Throws:
FactoryException
IOException
-
-
Method Detail
-
isReprojectingReader
public static boolean isReprojectingReader(GridCoverage2DReader reader) throws IOException
Returns true if the reader is a reprojecting one, that is, one that can handle the coverage reprojection on its own- Throws:
IOException
-
getReadEnvelope
public ReferencedEnvelope getReadEnvelope()
-
readCoverage
public GridCoverage2D readCoverage(GeneralParameterValue[] params) throws IOException
Reads a single coverage for the area specified in the constructor, the code will not attempt multiple reads to manage reads across the date line, reducing the read area, splitting it into parts to manage certain projections (e.g., conic) and so on- Throws:
IOException
-
readCoverages
public List<GridCoverage2D> readCoverages(GeneralParameterValue[] readParams, ProjectionHandler handler) throws IOException, FactoryException, TransformException
Reads the data taking into account advanced projection handling in order to deal with date line crossing, poles and other projection trouble areas. The result is a set of coverages that can be either painted or reprojected safely
-
readCoverages
public List<GridCoverage2D> readCoverages(GeneralParameterValue[] readParams, ProjectionHandler handler, GridCoverageFactory gridCoverageFactory) throws IOException, FactoryException, TransformException
Reads the data taking into account advanced projection handling in order to deal with date line crossing, poles and other projection trouble areas. The result is a set of coverages that can be either painted or reprojected safely
-
-