public final class WorldImageReader extends AbstractGridCoverage2DReader implements GridCoverage2DReader
closeMe, coverageFactory, coverageName, crs, dtLayout, EPS, gzipped, highestRes, hints, inStream, inStreamSPI, numOverviews, offsets, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, scales, sourceELEVATION_DOMAIN, ELEVATION_DOMAIN_MAXIMUM, ELEVATION_DOMAIN_MINIMUM, ELEVATION_DOMAIN_RESOLUTION, FILE_SOURCE_PROPERTY, HAS_ELEVATION_DOMAIN, HAS_TIME_DOMAIN, MULTICRS_EPSGCODES, MULTICRS_READER, REPROJECTING_READER, SOURCE_URL_PROPERTY, TIME_DOMAIN, TIME_DOMAIN_MAXIMUM, TIME_DOMAIN_MINIMUM, TIME_DOMAIN_RESOLUTION| Constructor and Description |
|---|
WorldImageReader(Object input)
Class constructor.
|
WorldImageReader(Object input,
Hints hints)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExtension()
Returns the file extension of the image.
|
protected List<FileGroupProvider.FileGroup> |
getFiles()
Returns a list of files making up the source data for this reader (as a whole).
|
Format |
getFormat()
Returns the format that this Reader accepts.
|
int |
getGridCoverageCount()
Number of coverages for this reader is 1
|
GridCoverage2D |
read(GeneralParameterValue[] params)
Reads an image from a source stream.
|
addAllSiblings, addSiblings, checkName, collectScaleOffset, createImageCoverage, createImageCoverage, createImageCoverage, createImageCoverage, decimationOnReadingControl, dispose, finalize, getCoordinateReferenceSystem, getCoordinateReferenceSystem, getDatasetLayout, getDatasetLayout, getDynamicParameters, getDynamicParameters, getGridCoverageNames, getGroundControlPoints, getGroundControlPoints, getHighestRes, getImageLayout, getImageLayout, getInfo, getInfo, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getMultiLevelROIProvider, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getOverviewGridEnvelope, getOverviewGridEnvelope, getReadingResolutions, getReadingResolutions, getRescaledRasterToModel, getResolution, getResolutionLevels, getResolutionLevels, getSibling, getSource, getSourceAsFile, read, setlayout, setLayout, setReadParams, setReadParamsclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCoordinateReferenceSystem, getCoordinateReferenceSystem, getDatasetLayout, getDatasetLayout, getDynamicParameters, getDynamicParameters, getImageLayout, getImageLayout, getInfo, getInfo, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getReadingResolutions, getReadingResolutions, getResolutionLevels, getResolutionLevels, readdispose, getGridCoverageNames, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getSourcepublic WorldImageReader(Object input) throws DataSourceException
input - The source of a GridCoverage, can be a File, a URL or an input stream.DataSourceExceptionpublic WorldImageReader(Object input, Hints hints) throws DataSourceException
input - The source of a GridCoverage, can be a File, a URL or an input stream.DataSourceExceptionpublic Format getFormat()
getFormat in interface GridCoverageReaderpublic GridCoverage2D read(GeneralParameterValue[] params) throws IllegalArgumentException, IOException
read in interface GridCoverage2DReaderread in interface GridCoverageReaderread in class AbstractGridCoverage2DReaderparams - WorldImageReader supports no parameters, it just ignores them.InvalidParameterNameException - if a parameter in parameters doesn't have a
recognized name.InvalidParameterValueException - if a parameter in parameters doesn't have a
valid value.ParameterNotFoundException - if a parameter was required for the operation but was not
provided in the parameters list.IOException - if a read operation failed for some other input/output reason, including
FileNotFoundException if no file with the given name can be found, or
IIOException if an error was thrown by the underlying image
library.IllegalArgumentExceptionpublic int getGridCoverageCount()
getGridCoverageCount in interface GridCoverageReadergetGridCoverageCount in class AbstractGridCoverage2DReaderGridCoverageReader.getGridCoverageCount()public String getExtension()
protected List<FileGroupProvider.FileGroup> getFiles()
AbstractGridCoverage2DReadergetFiles in class AbstractGridCoverage2DReaderCopyright © 1996–2021 Geotools. All rights reserved.