@Test public void testPaddingHeteroMosaic() throws Exception { String testLocation = "hetero_utm"; URL storeUrl = TestData.url(this.getClass(), testLocation); File testDataFolder = new File(storeUrl.toURI()); File testDirectory = crsMosaicFolder.newFolder(testLocation); FileUtils.copyDirectory(testDataFolder, testDirectory); ImageMosaicReader imReader = new ImageMosaicReader(testDirectory, null); ReferencedEnvelope mapExtent = new ReferencedEnvelope(11, 13, -1, 1, DefaultGeographicCRS.WGS84); GridCoverageReaderHelper helper = new GridCoverageReaderHelper( imReader, new Rectangle(1024, 512), mapExtent, Interpolation.getInstance(Interpolation.INTERP_NEAREST)); ReferencedEnvelope readEnvelope = helper.getReadEnvelope(); final double EPS = 1e-3; assertEquals(10.981, readEnvelope.getMinX(), EPS); assertEquals(13.019, readEnvelope.getMaxX(), EPS); assertEquals(-1.039, readEnvelope.getMinY(), EPS); assertEquals(1.039, readEnvelope.getMaxY(), EPS); }
public ReferencedEnvelope getReadEnvelope() { return mapExtent; }
GridCoverageReaderHelper { public ReferencedEnvelope getReadEnvelope() { return mapExtent; } }
GridCoverageReaderHelper { public ReferencedEnvelope getReadEnvelope() { return mapExtent; } GridCoverageReaderHelper(
            GridCoverage2DReader reader,
            Rectangle mapRasterArea,
            ReferencedEnvelope mapExtent,
            Interpolation interpolation);  GridCoverageReaderHelper(
            GridCoverage2DReader reader,
            Rectangle mapRasterArea,
            ReferencedEnvelope mapExtent,
            Interpolation interpolation,
            Hints hints); }
GridCoverageReaderHelper { public ReferencedEnvelope getReadEnvelope() { return mapExtent; } 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 ReferencedEnvelope getReadEnvelope() { return mapExtent; } 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);  }