|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractGridCoverage2DReader
GeoTiffReader
public final class GeoTiffReader
this class is responsible for exposing the data and the Georeferencing metadata available to the Geotools library. This reader is heavily based on the capabilities provided by the ImageIO tools and JAI libraries.
Field Summary |
---|
Fields inherited from class AbstractGridCoverage2DReader |
---|
closeMe, coverageFactory, coverageName, crs, demColors, EPS, gzipped, highestRes, hints, inStream, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source |
Constructor Summary | |
---|---|
GeoTiffReader(Object input)
Creates a new instance of GeoTiffReader |
|
GeoTiffReader(Object input,
Hints uHints)
Creates a new instance of GeoTiffReader |
Method Summary | |
---|---|
protected GridCoverage2D |
createCoverage(PlanarImage image,
MathTransform raster2Model)
Creates a GridCoverage for the provided PlanarImage using
the AbstractGridCoverage2DReader.raster2Model that was provided for this coverage. |
Format |
getFormat()
|
int |
getGridCoverageCount()
Number of coverages for this reader is 1 |
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. |
Methods inherited from class Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface GridCoverageReader |
---|
dispose, getCurrentSubname, getMetadataNames, getMetadataValue, getSource, hasMoreGridCoverages, listSubNames, skip |
Constructor Detail |
---|
public GeoTiffReader(Object input) throws DataSourceException
input
- the GeoTiff file
DataSourceException
public GeoTiffReader(Object input, Hints uHints) throws DataSourceException
input
- the GeoTiff fileuHints
- user-supplied hints TODO currently are unused
DataSourceException
Method Detail |
---|
public Format getFormat()
getFormat
in interface GridCoverageReader
GridCoverageReader.getFormat()
public GridCoverage2D read(GeneralParameterValue[] params) throws IOException
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) 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.
GridCoverage
IOException
public int getGridCoverageCount()
getGridCoverageCount
in class AbstractGridCoverage2DReader
org.opengis.coverage.grid.GridCoverageReader#getGridCoverageCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |