@Test public void testCoverageName() throws Exception { final File file = TestData.file(GeoTiffReaderTest.class, "wind.tiff"); assertNotNull(file); GeoTiffReader reader = new GeoTiffReader(file, GeoTools.getDefaultHints()); assertTrue(reader.checkName("geotiff_coverage")); }
@Override protected boolean checkName( String coverageName) { if ("geotiff_coverage".equalsIgnoreCase(coverageName)) { return true; } else { Utilities.ensureNonNull("coverageName", coverageName); return coverageName.equalsIgnoreCase(this.coverageName); } }
GeoTiffReader extends AbstractGridCoverage2DReader implements GridCoverage2DReader { @Override protected boolean checkName( String coverageName) { if ("geotiff_coverage".equalsIgnoreCase(coverageName)) { return true; } else { Utilities.ensureNonNull("coverageName", coverageName); return coverageName.equalsIgnoreCase(this.coverageName); } } }
GeoTiffReader extends AbstractGridCoverage2DReader implements GridCoverage2DReader { @Override protected boolean checkName( String coverageName) { if ("geotiff_coverage".equalsIgnoreCase(coverageName)) { return true; } else { Utilities.ensureNonNull("coverageName", coverageName); return coverageName.equalsIgnoreCase(this.coverageName); } } GeoTiffReader(Object input);  GeoTiffReader(Object input, Hints uHints); }
GeoTiffReader extends AbstractGridCoverage2DReader implements GridCoverage2DReader { @Override protected boolean checkName( String coverageName) { if ("geotiff_coverage".equalsIgnoreCase(coverageName)) { return true; } else { Utilities.ensureNonNull("coverageName", coverageName); return coverageName.equalsIgnoreCase(this.coverageName); } } GeoTiffReader(Object input);  GeoTiffReader(Object input, Hints uHints); Format getFormat(); GridCoverage2D read(GeneralParameterValue[] params); @SuppressWarnings("PMD.CloseResource") // conditional, might have to close the stream, or not GeoTiffIIOMetadataDecoder getMetadata(); @Override int getGridCoverageCount(); @Override GroundControlPoints getGroundControlPoints(); }
GeoTiffReader extends AbstractGridCoverage2DReader implements GridCoverage2DReader { @Override protected boolean checkName( String coverageName) { if ("geotiff_coverage".equalsIgnoreCase(coverageName)) { return true; } else { Utilities.ensureNonNull("coverageName", coverageName); return coverageName.equalsIgnoreCase(this.coverageName); } } GeoTiffReader(Object input);  GeoTiffReader(Object input, Hints uHints); Format getFormat(); GridCoverage2D read(GeneralParameterValue[] params); @SuppressWarnings("PMD.CloseResource") // conditional, might have to close the stream, or not GeoTiffIIOMetadataDecoder getMetadata(); @Override int getGridCoverageCount(); @Override GroundControlPoints getGroundControlPoints(); static final String OVERRIDE_CRS_SWITCH; }