@Test public void imposedBBox() throws IOException, NoSuchAuthorityCodeException, FactoryException { final AbstractGridFormat format = getFormat(imposedEnvelopeURL); final ImageMosaicReader reader = getReader(imposedEnvelopeURL, format); final GeneralEnvelope envelope = reader.getOriginalEnvelope(); assertNotNull(envelope); assertEquals(envelope.getMinimum(0), -180.0,1E-6); assertEquals(envelope.getMinimum(1), -90.0,1E-6); assertEquals(envelope.getMaximum(0), 180.0,1E-6); assertEquals(envelope.getMaximum(1), 90.0,1E-6); final ParameterValue<GridGeometry2D> gg = AbstractGridFormat.READ_GRIDGEOMETRY2D.createValue(); final Dimension dim= new Dimension(); dim.setSize(reader.getOriginalGridRange().getSpan(0)/3.0, reader.getOriginalGridRange().getSpan(1)/3.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); checkCoverage(reader, new GeneralParameterValue[] {gg,useJai }, "Imposed BBox"); }
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);  }