@Test public void testFullResolutionNull() throws Exception { final GridCoverage2D coverage = new GridCoverageFactory() .create( "test", new float[200][100], new ReferencedEnvelope( -180, 180, -90, 90, DefaultGeographicCRS.WGS84)); GridCoverage2DReader reader = new AbstractGridCoverage2DReader() { { this.crs = DefaultGeographicCRS.WGS84; this.originalEnvelope = new GeneralEnvelope((BoundingBox) coverage.getEnvelope2D()); this.originalGridRange = coverage.getGridGeometry().getGridRange(); } @Override public Format getFormat() { return null; } @Override public GridCoverage2D read(GeneralParameterValue[] parameters) throws IllegalArgumentException, IOException { return coverage; } }; CoordinateReferenceSystem crs = CRS.decode("EPSG:3031", true); ReferencedEnvelope mapExtent = new ReferencedEnvelope(-20000000, 20000000, -20000000, 20000000, crs); GridCoverageReaderHelper helper = new GridCoverageReaderHelper( reader, new Rectangle(400, 200), mapExtent, Interpolation.getInstance(Interpolation.INTERP_NEAREST)); ProjectionHandler handler = ProjectionHandlerFinder.getHandler( mapExtent, reader.getCoordinateReferenceSystem(), true); List<GridCoverage2D> coverages = helper.readCoverages(null, handler); assertEquals(1, coverages.size()); }
public List<GridCoverage2D> readCoverages( final GeneralParameterValue[] readParams, ProjectionHandler handler) throws IOException, FactoryException, TransformException { return readCoverages(readParams, handler, new GridCoverageFactory()); }
GridCoverageReaderHelper { public List<GridCoverage2D> readCoverages( final GeneralParameterValue[] readParams, ProjectionHandler handler) throws IOException, FactoryException, TransformException { return readCoverages(readParams, handler, new GridCoverageFactory()); } }
GridCoverageReaderHelper { public List<GridCoverage2D> readCoverages( final GeneralParameterValue[] readParams, ProjectionHandler handler) throws IOException, FactoryException, TransformException { return readCoverages(readParams, handler, new GridCoverageFactory()); } GridCoverageReaderHelper(
            GridCoverage2DReader reader,
            Rectangle mapRasterArea,
            ReferencedEnvelope mapExtent,
            Interpolation interpolation);  GridCoverageReaderHelper(
            GridCoverage2DReader reader,
            Rectangle mapRasterArea,
            ReferencedEnvelope mapExtent,
            Interpolation interpolation,
            Hints hints); }
GridCoverageReaderHelper { public List<GridCoverage2D> readCoverages( final GeneralParameterValue[] readParams, ProjectionHandler handler) throws IOException, FactoryException, TransformException { return readCoverages(readParams, handler, new GridCoverageFactory()); } GridCoverageReaderHelper(
            GridCoverage2DReader reader,
            Rectangle mapRasterArea,
            ReferencedEnvelope mapExtent,
            Interpolation interpolation);  GridCoverageReaderHelper(
            GridCoverage2DReader reader,
            Rectangle mapRasterArea,
            ReferencedEnvelope mapExtent,
            Interpolation interpolation,
            Hints hints); static boolean isReprojectingReader(GridCoverage2DReader reader); ReferencedEnvelope getReadEnvelope(); GridCoverage2D readCoverage(final GeneralParameterValue[] params); List<GridCoverage2D> readCoverages(
            final GeneralParameterValue[] readParams, ProjectionHandler handler); List<GridCoverage2D> readCoverages(
            final GeneralParameterValue[] readParams,
            ProjectionHandler handler,
            GridCoverageFactory gridCoverageFactory); }
GridCoverageReaderHelper { public List<GridCoverage2D> readCoverages( final GeneralParameterValue[] readParams, ProjectionHandler handler) throws IOException, FactoryException, TransformException { return readCoverages(readParams, handler, new GridCoverageFactory()); } GridCoverageReaderHelper(
            GridCoverage2DReader reader,
            Rectangle mapRasterArea,
            ReferencedEnvelope mapExtent,
            Interpolation interpolation);  GridCoverageReaderHelper(
            GridCoverage2DReader reader,
            Rectangle mapRasterArea,
            ReferencedEnvelope mapExtent,
            Interpolation interpolation,
            Hints hints); static boolean isReprojectingReader(GridCoverage2DReader reader); ReferencedEnvelope getReadEnvelope(); GridCoverage2D readCoverage(final GeneralParameterValue[] params); List<GridCoverage2D> readCoverages(
            final GeneralParameterValue[] readParams, ProjectionHandler handler); List<GridCoverage2D> readCoverages(
            final GeneralParameterValue[] readParams,
            ProjectionHandler handler,
            GridCoverageFactory gridCoverageFactory);  }