|
||||||||||
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 |
---|
Fields inherited from class AbstractGridCoverage2DReader |
---|
closeMe, coverageFactory, crs, demColors, EPS, gzipped, highestRes, hints, inStream, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source |
Constructor Summary | |
---|---|
protected |
BaseGridCoverage2DReader(Object input,
Hints hints,
String worldFileExtension,
ImageReaderSpi formatSpecificSpi)
Creates a new instance of a BaseGridCoverage2DReader . |
Method Summary | |
---|---|
protected CoordinateReferenceSystem |
getCoverageCRS()
|
protected GeneralEnvelope |
getCoverageEnvelope()
|
protected GridEnvelope2D |
getCoverageGridRange()
|
String |
getCoverageName()
|
int |
getGridCoverageCount()
|
ServiceInfo |
getInfo()
Information about this source. |
ResourceInfo |
getInfo(String subname)
Information about the named gridcoverage. |
protected File |
getInputFile()
|
boolean |
hasMoreGridCoverages()
|
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 void |
setCoverageCRS(CoordinateReferenceSystem coverageCRS)
|
protected void |
setCoverageEnvelope(GeneralEnvelope coverageEnvelope)
|
protected void |
setCoverageGridRange(GridEnvelope2D coverageGridRange)
|
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 GridCoverageReader
read
in class AbstractGridCoverage2DReader
params
- a GeneralParameterValue
array to customize the
read operation.
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
protected void parsePRJFile()
GridCoverage
by looking for a related PRJ.
protected void parseWorldFile()
IllegalStateException
IOException
public ServiceInfo getInfo()
getInfo
in class AbstractGridCoverage2DReader
public ResourceInfo getInfo(String subname)
subname
- Name indicing grid coverage to describe
protected void setCoverageCRS(CoordinateReferenceSystem coverageCRS)
nativeCRS
- the nativeCRS to setprotected CoordinateReferenceSystem getCoverageCRS()
protected void setCoverageEnvelope(GeneralEnvelope coverageEnvelope)
nativeEnvelope
- the nativeEnvelope to setprotected GeneralEnvelope getCoverageEnvelope()
protected void setCoverageGridRange(GridEnvelope2D coverageGridRange)
nativeGridRange
- the nativeGridRange to setprotected GridEnvelope2D getCoverageGridRange()
protected File getInputFile()
public String getCoverageName()
public int getGridCoverageCount()
getGridCoverageCount
in class AbstractGridCoverage2DReader
org.opengis.coverage.grid.GridCoverageReader#getGridCoverageCount()
public boolean hasMoreGridCoverages()
hasMoreGridCoverages
in interface GridCoverageReader
hasMoreGridCoverages
in class AbstractGridCoverage2DReader
GridCoverageReader.hasMoreGridCoverages()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |