public class GeoTiffReader extends AbstractGridCoverage2DReader implements GridCoverage2DReader
Modifier and Type | Field and Description |
---|---|
static String |
OVERRIDE_CRS_SWITCH
With 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, source
ELEVATION_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
GridCoverage for the provided PlanarImage using the AbstractGridCoverage2DReader.raster2Model that 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, skip
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCoordinateReferenceSystem, getCoordinateReferenceSystem, getDatasetLayout, getDatasetLayout, getDynamicParameters, getDynamicParameters, getImageLayout, getImageLayout, getInfo, getInfo, getNumOverviews, getNumOverviews, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getReadingResolutions, getReadingResolutions, getResolutionLevels, getResolutionLevels, read
dispose, getCurrentSubname, getGridCoverageNames, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getSource, hasMoreGridCoverages, listSubNames, skip
public static final String OVERRIDE_CRS_SWITCH
public GeoTiffReader(Object input) throws DataSourceException
input
- the GeoTiff fileDataSourceException
public GeoTiffReader(Object input, Hints uHints) throws DataSourceException
input
- the GeoTiff fileuHints
- user-supplied hints TODO currently are unusedDataSourceException
public Format getFormat()
GridCoverageReader
GridCoverageReader
.getFormat
in interface GridCoverageReader
GridCoverageReader.getFormat()
public GridCoverage2D read(GeneralParameterValue[] params) throws IOException
read
in interface GridCoverage2DReader
read
in interface GridCoverageReader
read
in class AbstractGridCoverage2DReader
params
- 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 MaskGridCoverage
IOException
public int getGridCoverageCount()
getGridCoverageCount
in interface GridCoverageReader
getGridCoverageCount
in class AbstractGridCoverage2DReader
GridCoverageReader.getGridCoverageCount()
public GroundControlPoints getGroundControlPoints()
AbstractGridCoverage2DReader
getGroundControlPoints
in class AbstractGridCoverage2DReader
protected List<FileGroupProvider.FileGroup> getFiles()
AbstractGridCoverage2DReader
getFiles
in class AbstractGridCoverage2DReader
Copyright © 1996–2019 Geotools. All rights reserved.