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, source
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 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, getHighestRes, getImageLayout, getImageLayout, getInfo, getInfo, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getMultiLevelROIProvider, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getOverviewGridEnvelope, getOverviewGridEnvelope, getPamDataset, getPamDataset, getReadingResolutions, getReadingResolutions, getRescaledRasterToModel, getResolution, getResolutionLevels, getResolutionLevels, getSibling, getSource, getSourceAsFile, read, setlayout, setLayout, setReadParams, setReadParams
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCoordinateReferenceSystem, getCoordinateReferenceSystem, getDatasetLayout, getDatasetLayout, getDynamicParameters, getDynamicParameters, getImageLayout, getImageLayout, getInfo, getInfo, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getReadingResolutions, getReadingResolutions, getResolutionLevels, getResolutionLevels, read
dispose, getGridCoverageNames, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getSource
public WorldImageReader(Object input) throws DataSourceException
input
- The source of a GridCoverage, can be a File, a URL or an input stream.DataSourceException
public WorldImageReader(Object input, Hints hints) throws DataSourceException
input
- The source of a GridCoverage, can be a File, a URL or an input stream.DataSourceException
public Format getFormat()
getFormat
in interface GridCoverageReader
public GridCoverage2D read(GeneralParameterValue[] params) throws IllegalArgumentException, IOException
read
in interface GridCoverage2DReader
read
in interface GridCoverageReader
read
in class AbstractGridCoverage2DReader
params
- 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.IllegalArgumentException
public int getGridCoverageCount()
getGridCoverageCount
in interface GridCoverageReader
getGridCoverageCount
in class AbstractGridCoverage2DReader
GridCoverageReader.getGridCoverageCount()
public String getExtension()
protected List<FileGroupProvider.FileGroup> getFiles()
AbstractGridCoverage2DReader
getFiles
in class AbstractGridCoverage2DReader
Copyright © 1996–2023 Geotools. All rights reserved.