|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractGridCoverage2DReader
GeoTiffReader
public 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 | |
|---|---|
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 |
| 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()
Returns the format handled by this GridCoverageReader. |
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 |
| Field Detail |
|---|
public static final String OVERRIDE_CRS_SWITCH
| 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()
GridCoverageReaderGridCoverageReader.
getFormat in interface GridCoverageReaderGridCoverageReader.getFormat()
public GridCoverage2D read(GeneralParameterValue[] params)
throws IOException
read 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)
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
IOExceptionpublic int getGridCoverageCount()
getGridCoverageCount in class AbstractGridCoverage2DReaderorg.opengis.coverage.grid.GridCoverageReader#getGridCoverageCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||