|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.coverage.grid.io.AbstractGridCoverage2DReader
org.geotools.gce.geotiff.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 org.geotools.coverage.grid.io.AbstractGridCoverage2DReader |
---|
closeMe, coverageFactory, coverageName, crs, demColors, EPS, gzipped, highestRes, hints, inStream, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source |
Constructor Summary | |
---|---|
GeoTiffReader(java.lang.Object input)
Creates a new instance of GeoTiffReader |
|
GeoTiffReader(java.lang.Object input,
Hints uHints)
Creates a new instance of GeoTiffReader |
Method Summary | |
---|---|
protected GridCoverage2D |
createCoverage(javax.media.jai.PlanarImage image,
org.opengis.referencing.operation.MathTransform raster2Model)
Creates a GridCoverage for the provided PlanarImage using
the AbstractGridCoverage2DReader.raster2Model that was provided for this coverage. |
org.opengis.coverage.grid.Format |
getFormat()
|
int |
getGridCoverageCount()
Number of coverages for this reader is 1 |
GeoTiffIIOMetadataDecoder |
getMetadata()
Returns the geotiff metadata for this geotiff file. |
GridCoverage2D |
read(org.opengis.parameter.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 org.geotools.coverage.grid.io.AbstractGridCoverage2DReader |
---|
createImageCoverage, createImageCoverage, decimationOnReadingControl, dispose, finalize, getCrs, getCurrentSubname, getInfo, getMetadataNames, getMetadataValue, getOriginalEnvelope, getOriginalGridRange, getOriginalGridToWorld, getResolution, getSource, hasMoreGridCoverages, listSubNames, setReadParams, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opengis.coverage.grid.GridCoverageReader |
---|
dispose, getCurrentSubname, getMetadataNames, getMetadataValue, getSource, hasMoreGridCoverages, listSubNames, skip |
Constructor Detail |
---|
public GeoTiffReader(java.lang.Object input) throws DataSourceException
input
- the GeoTiff file
DataSourceException
public GeoTiffReader(java.lang.Object input, Hints uHints) throws DataSourceException
input
- the GeoTiff fileuHints
- user-supplied hints TODO currently are unused
DataSourceException
Method Detail |
---|
public org.opengis.coverage.grid.Format getFormat()
getFormat
in interface org.opengis.coverage.grid.GridCoverageReader
GridCoverageReader.getFormat()
public GridCoverage2D read(org.opengis.parameter.GeneralParameterValue[] params) throws java.io.IOException
read
in interface org.opengis.coverage.grid.GridCoverageReader
read
in class AbstractGridCoverage2DReader
params
- currently ignored, potentially may be used for hints.
java.io.IOException
- on any IO related troublespublic GeoTiffIIOMetadataDecoder getMetadata()
protected final GridCoverage2D createCoverage(javax.media.jai.PlanarImage image, org.opengis.referencing.operation.MathTransform raster2Model) throws java.io.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
java.io.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 |