test_class.declarator: LOGGER = org.geotools.util.logging.Logging
              .getLogger(GeoTiffReaderTest.class.toString())
test_class.modifier: private final static
test_class.original_string: private final static Logger LOGGER = org.geotools.util.logging.Logging
              .getLogger(GeoTiffReaderTest.class.toString());
test_class.type: Logger
test_class.var_name: LOGGER
test_class.file: modules/unsupported/geotiff_new/src/test/java/org/geotools/gce/geotiff/GeoTiffReaderTest.java
test_class.identifier: GeoTiffReaderTest
test_class.superclass: extends Assert
test_case.body: @Test
      @Ignore
      public void testExternalOverviews() throws Exception {
          final File file = TestData.file(GeoTiffReaderTest.class, "ovr.tif");
          assertNotNull(file);
          assertEquals(true, file.exists());
          GeoTiffReaderTester reader = new GeoTiffReaderTester(file);
          final int nOvrs = reader.getNumOverviews();
          LOGGER.info("Number of external overviews: " + nOvrs);
          assertEquals(4, nOvrs);
          double[][] overviewResolutions = reader.getOverviewResolutions();
          assertEquals(overviewResolutions.length, 4);
  
          final ParameterValue<GridGeometry2D> gg = AbstractGridFormat.READ_GRIDGEOMETRY2D
                  .createValue();
          final GeneralEnvelope envelope = reader.getOriginalEnvelope();
          final Dimension dim = new Dimension();
          dim.setSize(reader.getOriginalGridRange().getSpan(0) / 4.0, reader.getOriginalGridRange()
                  .getSpan(1) / 4.0);
          final Rectangle rasterArea = ((GridEnvelope2D) reader.getOriginalGridRange());
          rasterArea.setSize(dim);
          final GridEnvelope2D range = new GridEnvelope2D(rasterArea);
          gg.setValue(new GridGeometry2D(range, envelope));
  
          GridCoverage2D coverage = reader.read(new GeneralParameterValue[] { gg });
          RenderedImage image = coverage.getRenderedImage();
          assertEquals(image.getWidth(), 32);
          assertEquals(image.getHeight(), 32);
  
          final double delta = 0.00001;
          assertEquals(overviewResolutions[0][0], 10, delta);
          assertEquals(overviewResolutions[0][1], 10, delta);
  
          assertEquals(overviewResolutions[1][0], 20, delta);
          assertEquals(overviewResolutions[1][1], 20, delta);
  
          assertEquals(overviewResolutions[2][0], 40, delta);
          assertEquals(overviewResolutions[2][1], 40, delta);
  
          assertEquals(overviewResolutions[3][0], 80, delta);
          assertEquals(overviewResolutions[3][1], 80, delta);
  
      }
test_case.class_method_signature: GeoTiffReaderTest.testExternalOverviews()
test_case.full_signature: @Test @Ignore public void testExternalOverviews()
test_case.identifier: testExternalOverviews
test_case.invocations: file assertNotNull assertEquals exists getNumOverviews info assertEquals getOverviewResolutions assertEquals createValue getOriginalEnvelope setSize getSpan getOriginalGridRange getSpan getOriginalGridRange getOriginalGridRange setSize setValue read getRenderedImage assertEquals getWidth assertEquals getHeight assertEquals assertEquals assertEquals assertEquals assertEquals assertEquals assertEquals assertEquals
test_case.modifiers: @Test @Ignore public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testExternalOverviews()
focal_class.declarator: LOGGER = org.geotools.util.logging.Logging.getLogger(GeoTiffReader.class.toString())
focal_class.modifier: private final static
focal_class.original_string: private final static Logger LOGGER = org.geotools.util.logging.Logging.getLogger(GeoTiffReader.class.toString());
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: gtcs
focal_class.modifier: private
focal_class.original_string: private GeoTiffMetadata2CRSAdapter gtcs;
focal_class.type: GeoTiffMetadata2CRSAdapter
focal_class.var_name: gtcs
focal_class.declarator: noData = Double.NaN
focal_class.modifier: private
focal_class.original_string: private double noData = Double.NaN;
focal_class.type: double
focal_class.var_name: noData
focal_class.declarator: rasterManager
focal_class.modifier: private
focal_class.original_string: private RasterManager rasterManager;
focal_class.type: RasterManager
focal_class.var_name: rasterManager
focal_class.declarator: sourceURL
focal_class.original_string: URL sourceURL;
focal_class.type: URL
focal_class.var_name: sourceURL
focal_class.declarator: expandMe
focal_class.original_string: boolean expandMe;
focal_class.type: boolean
focal_class.var_name: expandMe
focal_class.declarator: overViewLayouts
focal_class.original_string: RasterLayout[] overViewLayouts;
focal_class.type: RasterLayout[]
focal_class.var_name: overViewLayouts
focal_class.declarator: hrLayout
focal_class.original_string: RasterLayout hrLayout;
focal_class.type: RasterLayout
focal_class.var_name: hrLayout
focal_class.declarator: baseImageType
focal_class.original_string: ImageTypeSpecifier baseImageType;
focal_class.type: ImageTypeSpecifier
focal_class.var_name: baseImageType
focal_class.declarator: ovrSource
focal_class.original_string: File ovrSource;
focal_class.type: File
focal_class.var_name: ovrSource
focal_class.declarator: ovrInStreamSPI = null
focal_class.original_string: ImageInputStreamSpi ovrInStreamSPI = null;
focal_class.type: ImageInputStreamSpi
focal_class.var_name: ovrInStreamSPI
focal_class.declarator: extOvrImgChoice = -1
focal_class.original_string: int extOvrImgChoice = -1;
focal_class.type: int
focal_class.var_name: extOvrImgChoice
focal_class.file: modules/unsupported/geotiff_new/src/main/java/org/geotools/gce/geotiff/GeoTiffReader.java
focal_class.identifier: GeoTiffReader
focal_class.interfaces: implements
  		GridCoverageReader
focal_class.class_method_signature: GeoTiffReader.getGridCoverageCount()
focal_class.full_signature: @Override public int getGridCoverageCount()
focal_class.identifier: getGridCoverageCount
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getGridCoverageCount()
focal_class.class_method_signature: GeoTiffReader.dispose()
focal_class.full_signature: @Override public void dispose()
focal_class.identifier: dispose
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void dispose()
focal_class.class_method_signature: GeoTiffReader.getGridCoverageFactory()
focal_class.full_signature:  GridCoverageFactory getGridCoverageFactory()
focal_class.identifier: getGridCoverageFactory
focal_class.parameters: ()
focal_class.return: GridCoverageFactory
focal_class.signature: GridCoverageFactory getGridCoverageFactory()
focal_class.class_method_signature: GeoTiffReader.GeoTiffReader(Object input)
focal_class.full_signature: public  GeoTiffReader(Object input)
focal_class.identifier: GeoTiffReader
focal_class.modifiers: public
focal_class.parameters: (Object input)
focal_class.signature:  GeoTiffReader(Object input)
focal_class.class_method_signature: GeoTiffReader.GeoTiffReader(Object input, Hints uHints)
focal_class.full_signature: public  GeoTiffReader(Object input, Hints uHints)
focal_class.identifier: GeoTiffReader
focal_class.modifiers: public
focal_class.parameters: (Object input, Hints uHints)
focal_class.signature:  GeoTiffReader(Object input, Hints uHints)
focal_class.class_method_signature: GeoTiffReader.checkForExternalOverviews()
focal_class.full_signature: private void checkForExternalOverviews()
focal_class.identifier: checkForExternalOverviews
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void checkForExternalOverviews()
focal_class.class_method_signature: GeoTiffReader.getHRInfo(Hints hints)
focal_class.full_signature: private void getHRInfo(Hints hints)
focal_class.identifier: getHRInfo
focal_class.modifiers: private
focal_class.parameters: (Hints hints)
focal_class.return: void
focal_class.signature: void getHRInfo(Hints hints)
focal_class.class_method_signature: GeoTiffReader.getFormat()
focal_class.full_signature: public Format getFormat()
focal_class.identifier: getFormat
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Format
focal_class.signature: Format getFormat()
focal_class.class_method_signature: GeoTiffReader.read(GeneralParameterValue[] params)
focal_class.full_signature: @Override public GridCoverage2D read(GeneralParameterValue[] params)
focal_class.identifier: read
focal_class.modifiers: @Override public
focal_class.parameters: (GeneralParameterValue[] params)
focal_class.return: GridCoverage2D
focal_class.signature: GridCoverage2D read(GeneralParameterValue[] params)
focal_class.class_method_signature: GeoTiffReader.createCoverage(
              PlanarImage image, MathTransform raster2Model)
focal_class.full_signature: protected final GridCoverage createCoverage(
              PlanarImage image, MathTransform raster2Model)
focal_class.identifier: createCoverage
focal_class.modifiers: protected final
focal_class.parameters: (
              PlanarImage image, MathTransform raster2Model)
focal_class.return: GridCoverage
focal_class.signature: GridCoverage createCoverage(
              PlanarImage image, MathTransform raster2Model)
focal_class.class_method_signature: GeoTiffReader.getHints()
focal_class.full_signature:  Hints getHints()
focal_class.identifier: getHints
focal_class.parameters: ()
focal_class.return: Hints
focal_class.signature: Hints getHints()
focal_class.class_method_signature: GeoTiffReader.getHighestRes()
focal_class.full_signature:  double[] getHighestRes()
focal_class.identifier: getHighestRes
focal_class.parameters: ()
focal_class.return: double[]
focal_class.signature: double[] getHighestRes()
focal_class.class_method_signature: GeoTiffReader.getOverviewsResolution()
focal_class.full_signature:  double[][] getOverviewsResolution()
focal_class.identifier: getOverviewsResolution
focal_class.parameters: ()
focal_class.return: double[][]
focal_class.signature: double[][] getOverviewsResolution()
focal_class.class_method_signature: GeoTiffReader.getNumberOfOverviews()
focal_class.full_signature:  int getNumberOfOverviews()
focal_class.identifier: getNumberOfOverviews
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getNumberOfOverviews()
focal_class.class_method_signature: GeoTiffReader.getName()
focal_class.full_signature:  String getName()
focal_class.identifier: getName
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.superclass: extends AbstractGridCoverage2DReader
focal_method.body: @Override
      public GridCoverage2D read(GeneralParameterValue[] params)
              throws IOException {
  
          if (LOGGER.isLoggable(Level.FINE)) {
              LOGGER.fine("Reading image from " + sourceURL.toString() + "\n"
                      + "Highest res " + highestRes[0] + " " + highestRes[1]);
          }
  
          final Collection<GridCoverage2D> response = rasterManager.read(params);
          if (response.isEmpty()) {
              if (LOGGER.isLoggable(Level.FINE)){
                  LOGGER.fine("The response is empty. ==> returning a null GridCoverage");
              }
              return null;
          } else {
              return response.iterator().next();
          }
      }
focal_method.class_method_signature: GeoTiffReader.read(GeneralParameterValue[] params)
focal_method.full_signature: @Override public GridCoverage2D read(GeneralParameterValue[] params)
focal_method.identifier: read
focal_method.invocations: isLoggable fine toString read isEmpty isLoggable fine next iterator
focal_method.modifiers: @Override public
focal_method.parameters: (GeneralParameterValue[] params)
focal_method.return: GridCoverage2D
focal_method.signature: GridCoverage2D read(GeneralParameterValue[] params)