|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractGridCoverage2DReader
BaseGridCoverage2DReader
public abstract class BaseGridCoverage2DReader
Base class for GridCoverage data access
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
protected |
BaseGridCoverage2DReader(Object input,
Hints hints,
String worldFileExtension,
ImageReaderSpi formatSpecificSpi)
Creates a new instance of a BaseGridCoverage2DReader. |
| Method Summary | |
|---|---|
String |
getCoverageName()
|
int |
getGridCoverageCount()
|
ServiceInfo |
getInfo()
Information about this source. |
ResourceInfo |
getInfo(String subname)
Information about the named gridcoverage. |
protected File |
getInputFile()
|
boolean |
hasMoreGridCoverages()
Returns true if there is at least one more grid coverage
available on the stream. |
protected void |
parsePRJFile()
Gets the coordinate reference system that will be associated to the GridCoverage by looking for a related PRJ. |
protected void |
parseWorldFile()
Checks whether a world file is associated with the data source. |
GridCoverage2D |
read(GeneralParameterValue[] params)
Returns a GridCoverage from this reader in compliance with the
specified parameters. |
protected abstract void |
setCoverageProperties(ImageReader reader)
Implement this method to setup the coverage properties (Envelope, CRS, GridRange) using the provided ImageReader |
| Methods inherited from class Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface GridCoverageReader |
|---|
dispose, getCurrentSubname, getFormat, getMetadataNames, getMetadataValue, getSource, listSubNames, skip |
| Constructor Detail |
|---|
protected BaseGridCoverage2DReader(Object input,
Hints hints,
String worldFileExtension,
ImageReaderSpi formatSpecificSpi)
throws DataSourceException
BaseGridCoverage2DReader. I assume
nothing about file extension.
input - Source object for which we want to build a
BaseGridCoverage2DReader.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 proper ImageReaderSpi.
DataSourceException| Method Detail |
|---|
protected abstract void setCoverageProperties(ImageReader reader)
throws IOException
ImageReader
IOException
public GridCoverage2D read(GeneralParameterValue[] params)
throws IllegalArgumentException,
IOException
GridCoverage from this reader in compliance with the
specified parameters.
read in interface GridCoverageReaderread in class AbstractGridCoverage2DReaderparams - a GeneralParameterValue array to customize the
read operation.
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.
IllegalArgumentExceptionprotected void parsePRJFile()
GridCoverage by looking for a related PRJ.
protected void parseWorldFile()
IllegalStateException
IOExceptionpublic ServiceInfo getInfo()
getInfo in class AbstractGridCoverage2DReaderpublic ResourceInfo getInfo(String subname)
subname - Name indicing grid coverage to describe
protected File getInputFile()
public String getCoverageName()
public int getGridCoverageCount()
getGridCoverageCount in class AbstractGridCoverage2DReaderorg.opengis.coverage.grid.GridCoverageReader#getGridCoverageCount()public boolean hasMoreGridCoverages()
GridCoverageReadertrue if there is at least one more grid coverage
available on the stream.
hasMoreGridCoverages in interface GridCoverageReaderhasMoreGridCoverages in class AbstractGridCoverage2DReaderGridCoverageReader.hasMoreGridCoverages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||