@Test public void testHeterogeneousGranules() throws IOException, MismatchedDimensionException, FactoryException { final AbstractGridFormat format = getFormat(heterogeneousGranulesURL); ImageMosaicReader reader = getReader(heterogeneousGranulesURL, format); final ParameterValue<GridGeometry2D> gg = AbstractGridFormat.READ_GRIDGEOMETRY2D.createValue(); final GeneralEnvelope envelope = reader.getOriginalEnvelope(); final Dimension dim = new Dimension(); dim.setSize(reader.getOriginalGridRange().getSpan(0) / 7.0, reader.getOriginalGridRange().getSpan(1) / 7.0); final Rectangle rasterArea = ((GridEnvelope2D) reader.getOriginalGridRange()); rasterArea.setSize(dim); final GridEnvelope2D range = new GridEnvelope2D(rasterArea); gg.setValue(new GridGeometry2D(range, envelope)); final ParameterValue<Boolean> useJai = AbstractGridFormat.USE_JAI_IMAGEREAD.createValue(); useJai.setValue(false); final ParameterValue<OverviewPolicy> op = AbstractGridFormat.OVERVIEW_POLICY.createValue(); LOGGER.info("\nTesting with OverviewPolicy = QUALITY"); op.setValue(OverviewPolicy.QUALITY); checkCoverage(reader, new GeneralParameterValue[] { gg, useJai, op }, "heterogeneous granules test: OverviewPolicy=QUALITY", rasterArea); LOGGER.info("\nTesting with OverviewPolicy = SPEED"); reader = getReader(heterogeneousGranulesURL, format); op.setValue(OverviewPolicy.SPEED); checkCoverage(reader, new GeneralParameterValue[] { gg, useJai, op }, "heterogeneous granules test: OverviewPolicy=SPEED", rasterArea); LOGGER.info("\nTesting with OverviewPolicy = NEAREST"); reader = getReader(heterogeneousGranulesURL, format); op.setValue(OverviewPolicy.NEAREST); checkCoverage(reader, new GeneralParameterValue[] { gg, useJai, op }, "heterogeneous granules test: OverviewPolicy=NEAREST", rasterArea); LOGGER.info("\nTesting with OverviewPolicy = IGNORE"); reader = getReader(heterogeneousGranulesURL, format); op.setValue(OverviewPolicy.IGNORE); checkCoverage(reader, new GeneralParameterValue[] { gg, useJai, op }, "heterogeneous granules test: OverviewPolicy=IGNORE", rasterArea); }
public Format getFormat() { return new ImageMosaicFormat(); }
ImageMosaicReader extends AbstractGridCoverage2DReader implements GridCoverageReader, GridCoverageWriter { public Format getFormat() { return new ImageMosaicFormat(); } }
ImageMosaicReader extends AbstractGridCoverage2DReader implements GridCoverageReader, GridCoverageWriter { public Format getFormat() { return new ImageMosaicFormat(); } ImageMosaicReader(Object source, Hints uHints);  ImageMosaicReader(Object source); }
ImageMosaicReader extends AbstractGridCoverage2DReader implements GridCoverageReader, GridCoverageWriter { public Format getFormat() { return new ImageMosaicFormat(); } ImageMosaicReader(Object source, Hints uHints);  ImageMosaicReader(Object source); Format getFormat(); GridCoverage2D read(GeneralParameterValue[] params); Object getDestination(); void setCurrentSubname(String arg0); void setMetadataValue(String arg0, String arg1); void write(GridCoverage arg0, GeneralParameterValue[] arg1); @Override int getGridCoverageCount(); @Override synchronized void dispose(); @Override String[] getMetadataNames(); @Override String getMetadataValue(final String name); }
ImageMosaicReader extends AbstractGridCoverage2DReader implements GridCoverageReader, GridCoverageWriter { public Format getFormat() { return new ImageMosaicFormat(); } ImageMosaicReader(Object source, Hints uHints);  ImageMosaicReader(Object source); Format getFormat(); GridCoverage2D read(GeneralParameterValue[] params); Object getDestination(); void setCurrentSubname(String arg0); void setMetadataValue(String arg0, String arg1); void write(GridCoverage arg0, GeneralParameterValue[] arg1); @Override int getGridCoverageCount(); @Override synchronized void dispose(); @Override String[] getMetadataNames(); @Override String getMetadataValue(final String name);  }