public class GeoTiffReader extends AbstractGridCoverage2DReader implements GridCoverage2DReader
| Modifier and Type | Field and Description | 
|---|---|
| static String | OVERRIDE_CRS_SWITCHWith this java switch I can control whether or not an external PRJ files takes precedence
 over the internal CRS definition | 
closeMe, coverageFactory, coverageName, crs, dtLayout, EPS, gzipped, highestRes, hints, inStream, inStreamSPI, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, sourceELEVATION_DOMAIN, ELEVATION_DOMAIN_MAXIMUM, ELEVATION_DOMAIN_MINIMUM, ELEVATION_DOMAIN_RESOLUTION, FILE_SOURCE_PROPERTY, HAS_ELEVATION_DOMAIN, HAS_TIME_DOMAIN, MULTICRS_READER, REPROJECTING_READER, SOURCE_URL_PROPERTY, TIME_DOMAIN, TIME_DOMAIN_MAXIMUM, TIME_DOMAIN_MINIMUM, TIME_DOMAIN_RESOLUTION| Constructor and Description | 
|---|
| GeoTiffReader(Object input)Creates a new instance of GeoTiffReader | 
| GeoTiffReader(Object input,
             Hints uHints)Creates a new instance of GeoTiffReader | 
| Modifier and Type | Method and Description | 
|---|---|
| protected GridCoverage2D | createCoverage(PlanarImage image,
              MathTransform raster2Model,
              ROI roi)Creates a  GridCoveragefor the providedPlanarImageusing theAbstractGridCoverage2DReader.raster2Modelthat was provided for this coverage. | 
| protected List<FileGroupProvider.FileGroup> | getFiles()Returns a list of files making up the source data for this reader (as a whole). | 
| Format | getFormat()Returns the format handled by this  GridCoverageReader. | 
| int | getGridCoverageCount()Number of coverages for this reader is 1 | 
| GroundControlPoints | getGroundControlPoints()Return the ground control points for the default coverage, or null if there are none | 
| GeoTiffIIOMetadataDecoder | getMetadata()Returns the geotiff metadata for this geotiff file. | 
| GridCoverage2D | read(GeneralParameterValue[] params)This method reads in the TIFF image, constructs an appropriate CRS, determines the math
 transform from raster to the CRS model, and constructs a GridCoverage. | 
addAllSiblings, addSiblings, checkName, createImageCoverage, createImageCoverage, createImageCoverage, createImageCoverage, decimationOnReadingControl, dispose, finalize, getCoordinateReferenceSystem, getCoordinateReferenceSystem, getCrs, getCurrentSubname, getDatasetLayout, getDatasetLayout, getDynamicParameters, getDynamicParameters, getGridCoverageNames, getGroundControlPoints, getHighestRes, getImageLayout, getImageLayout, getInfo, getInfo, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getMultiLevelROIProvider, getNumOverviews, getNumOverviews, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getOverviewGridEnvelope, getOverviewGridEnvelope, getReadingResolutions, getReadingResolutions, getRescaledRasterToModel, getResolution, getResolutionLevels, getResolutionLevels, getSibling, getSource, getSourceAsFile, hasMoreGridCoverages, listSubNames, read, setlayout, setLayout, setReadParams, setReadParams, skipclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCoordinateReferenceSystem, getCoordinateReferenceSystem, getDatasetLayout, getDatasetLayout, getDynamicParameters, getDynamicParameters, getImageLayout, getImageLayout, getInfo, getInfo, getNumOverviews, getNumOverviews, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getReadingResolutions, getReadingResolutions, getResolutionLevels, getResolutionLevels, readdispose, getCurrentSubname, getGridCoverageNames, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getSource, hasMoreGridCoverages, listSubNames, skippublic static final String OVERRIDE_CRS_SWITCH
public GeoTiffReader(Object input) throws DataSourceException
input - the GeoTiff fileDataSourceExceptionpublic GeoTiffReader(Object input, Hints uHints) throws DataSourceException
input - the GeoTiff fileuHints - user-supplied hints TODO currently are unusedDataSourceExceptionpublic Format getFormat()
GridCoverageReaderGridCoverageReader.getFormat in interface GridCoverageReaderGridCoverageReader.getFormat()public GridCoverage2D read(GeneralParameterValue[] params) throws IOException
read in interface GridCoverage2DReaderread in interface GridCoverageReaderread in class AbstractGridCoverage2DReaderparams - currently ignored, potentially may be used for hints.IOException - on any IO related troublespublic GeoTiffIIOMetadataDecoder getMetadata()
protected final GridCoverage2D createCoverage(PlanarImage image, MathTransform raster2Model, ROI roi) throws IOException
GridCoverage for the provided PlanarImage using the AbstractGridCoverage2DReader.raster2Model that was provided for this coverage.
 This method is vital when working with coverages that have a raster to model transformation that is not a simple scale and translate.
image - contains the data for the coverage to create.raster2Model - is the MathTransform that maps from the raster space to the model
     space.roi - Optional ROI used as MaskGridCoverageIOExceptionpublic int getGridCoverageCount()
getGridCoverageCount in interface GridCoverageReadergetGridCoverageCount in class AbstractGridCoverage2DReaderGridCoverageReader.getGridCoverageCount()public GroundControlPoints getGroundControlPoints()
AbstractGridCoverage2DReadergetGroundControlPoints in class AbstractGridCoverage2DReaderprotected List<FileGroupProvider.FileGroup> getFiles()
AbstractGridCoverage2DReadergetFiles in class AbstractGridCoverage2DReaderCopyright © 1996–2019 Geotools. All rights reserved.