Class GridCoverageReaderHelper
Object
GridCoverageReaderHelper
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
ConstructorsConstructorDescriptionGridCoverageReaderHelper
(GridCoverage2DReader reader, Rectangle mapRasterArea, ReferencedEnvelope mapExtent, Interpolation interpolation) GridCoverageReaderHelper
(GridCoverage2DReader reader, Rectangle mapRasterArea, ReferencedEnvelope mapExtent, Interpolation interpolation, Hints hints) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Returns true if the reader is a reprojecting one, that is, one that can handle the coverage reprojection on its ownreadCoverage
(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 onreadCoverages
(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.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 Details
-
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 Details
-
isReprojectingReader
Returns true if the reader is a reprojecting one, that is, one that can handle the coverage reprojection on its own- Throws:
IOException
-
getReadEnvelope
-
readCoverage
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
-