@Test public void testDefaultParameterValue() throws IOException, MismatchedDimensionException, NoSuchAuthorityCodeException { final URL testFile = TestData.getResource(this, "goodpyramid/" + TEST_FILE); assertNotNull(testFile); final AbstractGridFormat format = new ImagePyramidFormat(); assertTrue(format.accepts(testFile)); final ImagePyramidReader reader = (ImagePyramidReader) format.getReader(testFile); assertNotNull(reader); final GridCoverage2D coverage = (GridCoverage2D) reader.read(null); assertEquals("pyramid", coverage.getName().toString()); assertNotNull("Null value returned instead of a coverage", coverage); assertTrue( "coverage dimensions different from what we expected", coverage.getGridGeometry().getGridRange().getSpan(0) == 250 && coverage.getGridGeometry().getGridRange().getSpan(1) == 250); if (TestData.isInteractiveTest()) coverage.show("testDefaultParameterValue"); else PlanarImage.wrapRenderedImage(((GridCoverage2D) coverage).getRenderedImage()) .getTiles(); }
@Override public GridCoverage2D read(GeneralParameterValue[] params) throws IOException { return read(coverageName, params); }
ImagePyramidReader extends AbstractGridCoverage2DReader implements GridCoverageReader { @Override public GridCoverage2D read(GeneralParameterValue[] params) throws IOException { return read(coverageName, params); } }
ImagePyramidReader extends AbstractGridCoverage2DReader implements GridCoverageReader { @Override public GridCoverage2D read(GeneralParameterValue[] params) throws IOException { return read(coverageName, params); } ImagePyramidReader(Object source, Hints uHints);  ImagePyramidReader(Object source); }
ImagePyramidReader extends AbstractGridCoverage2DReader implements GridCoverageReader { @Override public GridCoverage2D read(GeneralParameterValue[] params) throws IOException { return read(coverageName, params); } ImagePyramidReader(Object source, Hints uHints);  ImagePyramidReader(Object source); Format getFormat(); @Override GridCoverage2D read(GeneralParameterValue[] params); @Override GridEnvelope getOriginalGridRange(String coverageName); @Override CoordinateReferenceSystem getCoordinateReferenceSystem(String coverageName); @Override GeneralEnvelope getOriginalEnvelope(String coverageName); @Override MathTransform getOriginalGridToWorld(String coverageName, PixelInCell pixInCell); @Override Set<ParameterDescriptor<List>> getDynamicParameters(String coverageName); @Override DatasetLayout getDatasetLayout(String coverageName); @Override ImageLayout getImageLayout(String coverageName); @Override double[][] getResolutionLevels(String coverageName); @Override GridCoverage2D read(final String coverageName, GeneralParameterValue[] params); @Override synchronized void dispose(); @Override String[] getGridCoverageNames(); @Override int getGridCoverageCount(); @Override String getMetadataValue(final String coverageName, final String name); String getMetadataValue(final String name); @Override String[] getMetadataNames(final String coverageName); String[] getMetadataNames(); ImageMosaicReader getImageMosaicReaderForLevel(Integer imageChoice); ImageMosaicReader getImageMosaicReaderForLevel(String coverageName, Integer imageChoice); }
ImagePyramidReader extends AbstractGridCoverage2DReader implements GridCoverageReader { @Override public GridCoverage2D read(GeneralParameterValue[] params) throws IOException { return read(coverageName, params); } ImagePyramidReader(Object source, Hints uHints);  ImagePyramidReader(Object source); Format getFormat(); @Override GridCoverage2D read(GeneralParameterValue[] params); @Override GridEnvelope getOriginalGridRange(String coverageName); @Override CoordinateReferenceSystem getCoordinateReferenceSystem(String coverageName); @Override GeneralEnvelope getOriginalEnvelope(String coverageName); @Override MathTransform getOriginalGridToWorld(String coverageName, PixelInCell pixInCell); @Override Set<ParameterDescriptor<List>> getDynamicParameters(String coverageName); @Override DatasetLayout getDatasetLayout(String coverageName); @Override ImageLayout getImageLayout(String coverageName); @Override double[][] getResolutionLevels(String coverageName); @Override GridCoverage2D read(final String coverageName, GeneralParameterValue[] params); @Override synchronized void dispose(); @Override String[] getGridCoverageNames(); @Override int getGridCoverageCount(); @Override String getMetadataValue(final String coverageName, final String name); String getMetadataValue(final String name); @Override String[] getMetadataNames(final String coverageName); String[] getMetadataNames(); ImageMosaicReader getImageMosaicReaderForLevel(Integer imageChoice); ImageMosaicReader getImageMosaicReaderForLevel(String coverageName, Integer imageChoice);  }