|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractGridCoverage2DReader
WorldImageReader
public final class WorldImageReader
Reads a GridCoverage from a given source. WorldImage sources only support one GridCoverage so hasMoreGridCoverages() will return true until the only GridCoverage is read. No metadata is currently supported, so all related methods return null. In the early future we will start (hopefully supporting them).
modules/plugin/image (gt-image.jar)
Field Summary |
---|
Fields inherited from class AbstractGridCoverage2DReader |
---|
closeMe, coverageFactory, coverageName, crs, demColors, EPS, gzipped, highestRes, hints, inStream, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source |
Constructor Summary | |
---|---|
WorldImageReader(Object input)
Class constructor. |
|
WorldImageReader(Object input,
Hints hints)
Class constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface GridCoverageReader |
---|
dispose, getCurrentSubname, getMetadataNames, getMetadataValue, getSource, hasMoreGridCoverages, listSubNames, skip |
Constructor Detail |
---|
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
Method Detail |
---|
public Format getFormat()
getFormat
in interface GridCoverageReader
public GridCoverage2D read(GeneralParameterValue[] params) throws IllegalArgumentException, IOException
read
in interface GridCoverageReader
read
in class AbstractGridCoverage2DReader
params
- WorldImageReader supports no parameters, it just ignores them.
IllegalArgumentException
- DOCUMENT ME!
IOException
- DOCUMENT ME!public int getGridCoverageCount()
getGridCoverageCount
in class AbstractGridCoverage2DReader
org.opengis.coverage.grid.GridCoverageReader#getGridCoverageCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |