public class GeoTiffReader
extends org.geotools.coverage.grid.io.AbstractGridCoverage2DReader
implements org.geotools.coverage.grid.io.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, sourceELEVATION_DOMAIN, ELEVATION_DOMAIN_MAXIMUM, ELEVATION_DOMAIN_MINIMUM, ELEVATION_DOMAIN_RESOLUTION, FILE_SOURCE_PROPERTY, HAS_ELEVATION_DOMAIN, HAS_TIME_DOMAIN, REPROJECTING_READER, 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,
org.geotools.factory.Hints uHints)
Creates a new instance of GeoTiffReader
|
| Modifier and Type | Method and Description |
|---|---|
protected org.geotools.coverage.grid.GridCoverage2D |
createCoverage(javax.media.jai.PlanarImage image,
org.opengis.referencing.operation.MathTransform raster2Model,
javax.media.jai.ROI roi)
Creates a
GridCoverage for the provided PlanarImage using
the AbstractGridCoverage2DReader.raster2Model that was provided for this coverage. |
protected List<org.geotools.data.FileGroupProvider.FileGroup> |
getFiles() |
org.opengis.coverage.grid.Format |
getFormat() |
int |
getGridCoverageCount()
Number of coverages for this reader is 1
|
org.geotools.coverage.grid.io.GroundControlPoints |
getGroundControlPoints() |
org.geotools.coverage.grid.io.imageio.geotiff.GeoTiffIIOMetadataDecoder |
getMetadata()
Returns the geotiff metadata for this geotiff file.
|
org.geotools.coverage.grid.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.
|
addAllSiblings, addSiblings, checkName, createImageCoverage, createImageCoverage, createImageCoverage, createImageCoverage, decimationOnReadingControl, 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, readpublic static final String OVERRIDE_CRS_SWITCH
public GeoTiffReader(Object input) throws org.geotools.data.DataSourceException
input - the GeoTiff fileorg.geotools.data.DataSourceExceptionpublic GeoTiffReader(Object input, org.geotools.factory.Hints uHints) throws org.geotools.data.DataSourceException
input - the GeoTiff fileuHints - user-supplied hints TODO currently are unusedorg.geotools.data.DataSourceExceptionpublic org.opengis.coverage.grid.Format getFormat()
getFormat in interface org.opengis.coverage.grid.GridCoverageReaderGridCoverageReader.getFormat()public org.geotools.coverage.grid.GridCoverage2D read(org.opengis.parameter.GeneralParameterValue[] params)
throws IOException
read in interface org.geotools.coverage.grid.io.GridCoverage2DReaderread in interface org.opengis.coverage.grid.GridCoverageReaderread in class org.geotools.coverage.grid.io.AbstractGridCoverage2DReaderparams - currently ignored, potentially may be used for hints.IOException - on any IO related troublespublic org.geotools.coverage.grid.io.imageio.geotiff.GeoTiffIIOMetadataDecoder getMetadata()
protected final org.geotools.coverage.grid.GridCoverage2D createCoverage(javax.media.jai.PlanarImage image,
org.opengis.referencing.operation.MathTransform raster2Model,
javax.media.jai.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 org.opengis.coverage.grid.GridCoverageReadergetGridCoverageCount in class org.geotools.coverage.grid.io.AbstractGridCoverage2DReaderpublic org.geotools.coverage.grid.io.GroundControlPoints getGroundControlPoints()
getGroundControlPoints in class org.geotools.coverage.grid.io.AbstractGridCoverage2DReaderprotected List<org.geotools.data.FileGroupProvider.FileGroup> getFiles()
getFiles in class org.geotools.coverage.grid.io.AbstractGridCoverage2DReaderCopyright © 2017. All Rights Reserved.