Package org.geotools.coverageio.gdal
Class BaseGDALGridCoverage2DReader
- Object
-
- AbstractGridCoverage2DReader
-
- BaseGridCoverage2DReader
-
- BaseGDALGridCoverage2DReader
-
- All Implemented Interfaces:
GridCoverageReader
,GridCoverage2DReader
- Direct Known Subclasses:
AIGReader
,DTEDReader
,ECWReader
,EnviHdrReader
,ErdasImgReader
,EsriHdrReader
,IDRISIReader
,JP2ECWReader
,JP2KReader
,JP2MrSIDReader
,MrSIDReader
,NITFReader
,RPFTOCReader
,SRPReader
,VRTReader
,VSIReader
public abstract class BaseGDALGridCoverage2DReader extends BaseGridCoverage2DReader implements GridCoverage2DReader
Base class for GridCoverage data access, leveraging on GDAL Java bindings provided by the ImageIO-Ext project. See ImageIO-Ext project.- Author:
- Daniele Romagnoli, GeoSolutions, Simone Giannecchini, GeoSolutions
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DEFAULT_WORLDFILE_EXT
-
Fields inherited from class BaseGridCoverage2DReader
multiLevelRoi, nodata, resourceInfo
-
Fields inherited from class AbstractGridCoverage2DReader
closeMe, coverageFactory, coverageName, crs, dtLayout, EPS, gzipped, highestRes, hints, inStream, inStreamSPI, numOverviews, offsets, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, scales, source
-
Fields inherited from interface GridCoverage2DReader
ELEVATION_DOMAIN, ELEVATION_DOMAIN_MAXIMUM, ELEVATION_DOMAIN_MINIMUM, ELEVATION_DOMAIN_RESOLUTION, FILE_SOURCE_PROPERTY, HAS_ELEVATION_DOMAIN, HAS_TIME_DOMAIN, MULTICRS_EPSGCODES, MULTICRS_READER, PAM_DATASET, REPROJECTING_READER, SOURCE_URL_PROPERTY, TIME_DOMAIN, TIME_DOMAIN_MAXIMUM, TIME_DOMAIN_MINIMUM, TIME_DOMAIN_RESOLUTION
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseGDALGridCoverage2DReader(Object input, Hints hints, String worldFileExtension, ImageReaderSpi formatSpecificSpi)
Creates a new instance of aBaseGDALGridCoverage2DReader
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceInfo
getInfo(String subname)
Information about the named gridcoverage.protected void
setCoverageProperties(ImageReader reader)
Setting Envelope, GridRange and CRS from the givenImageReader
-
Methods inherited from class BaseGridCoverage2DReader
getCoverageName, getGridCoverageCount, getHighestRes, getInfo, getInputFile, getMultiLevelRoi, getMultiLevelROIProvider, getNodata, parsePRJFile, parseWorldFile, read
-
Methods inherited from class AbstractGridCoverage2DReader
addAllSiblings, addSiblings, checkName, collectScaleOffset, createImageCoverage, createImageCoverage, createImageCoverage, createImageCoverage, decimationOnReadingControl, dispose, finalize, getCoordinateReferenceSystem, getCoordinateReferenceSystem, getDatasetLayout, getDatasetLayout, getDynamicParameters, getDynamicParameters, getFiles, getGridCoverageNames, getGroundControlPoints, getGroundControlPoints, getHighestRes, getImageLayout, getImageLayout, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getOverviewGridEnvelope, getOverviewGridEnvelope, getPamDataset, getPamDataset, getReadingResolutions, getReadingResolutions, getRescaledRasterToModel, getResolution, getResolutionLevels, getResolutionLevels, getSibling, getSource, getSourceAsFile, read, setlayout, setLayout, setReadParams, setReadParams
-
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface GridCoverage2DReader
getCoordinateReferenceSystem, getCoordinateReferenceSystem, getDatasetLayout, getDatasetLayout, getDynamicParameters, getDynamicParameters, getImageLayout, getImageLayout, getInfo, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getReadingResolutions, getReadingResolutions, getResolutionLevels, getResolutionLevels, read, read
-
Methods inherited from interface GridCoverageReader
dispose, getFormat, getGridCoverageCount, getGridCoverageNames, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getSource
-
-
-
-
Field Detail
-
DEFAULT_WORLDFILE_EXT
protected static final String DEFAULT_WORLDFILE_EXT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BaseGDALGridCoverage2DReader
protected BaseGDALGridCoverage2DReader(Object input, Hints hints, String worldFileExtension, ImageReaderSpi formatSpecificSpi) throws DataSourceException
Creates a new instance of aBaseGDALGridCoverage2DReader
. I assume nothing about file extension.- Parameters:
input
- Source object for which we want to build aBaseGDALGridCoverage2DReader
.hints
- Hints to be used by this reader throughout his life.worldFileExtension
- the specific world file extension of the underlying formatformatSpecificSpi
- an instance of a properImageReaderSpi
.- Throws:
DataSourceException
-
-
Method Detail
-
setCoverageProperties
protected void setCoverageProperties(ImageReader reader) throws IOException
Setting Envelope, GridRange and CRS from the givenImageReader
- Specified by:
setCoverageProperties
in classBaseGridCoverage2DReader
- Parameters:
reader
- theImageReader
from which to retrieve metadata (if available) for setting properties- Throws:
IOException
-
getInfo
public ResourceInfo getInfo(String subname)
Description copied from class:BaseGridCoverage2DReader
Information about the named gridcoverage.- Specified by:
getInfo
in interfaceGridCoverage2DReader
- Overrides:
getInfo
in classBaseGridCoverage2DReader
- Parameters:
subname
- Name indicing grid coverage to describe- Returns:
- ResourceInfo describing grid coverage indicated
-
-