|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.coverage.grid.io.AbstractGridCoverage2DReader
org.geotools.gce.image.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).
Field Summary |
---|
Fields inherited from class org.geotools.coverage.grid.io.AbstractGridCoverage2DReader |
---|
closeMe, coverageFactory, coverageName, crs, demColors, EPS, gzipped, highestRes, hints, inStream, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source |
Constructor Summary | |
---|---|
WorldImageReader(java.lang.Object input)
Class constructor. |
|
WorldImageReader(java.lang.Object input,
Hints hints)
Class constructor. |
Method Summary | |
---|---|
java.lang.String |
getExtension()
Returns the file extension of the image. |
org.opengis.coverage.grid.Format |
getFormat()
Returns the format that this Reader accepts. |
int |
getGridCoverageCount()
Number of coverages for this reader is 1 |
GridCoverage2D |
read(org.opengis.parameter.GeneralParameterValue[] params)
Reads an image from a source stream. |
Methods inherited from class org.geotools.coverage.grid.io.AbstractGridCoverage2DReader |
---|
createImageCoverage, createImageCoverage, decimationOnReadingControl, dispose, finalize, getCrs, getCurrentSubname, getInfo, getMetadataNames, getMetadataValue, getOriginalEnvelope, getOriginalGridRange, getOriginalGridToWorld, getResolution, getSource, hasMoreGridCoverages, listSubNames, setReadParams, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opengis.coverage.grid.GridCoverageReader |
---|
dispose, getCurrentSubname, getMetadataNames, getMetadataValue, getSource, hasMoreGridCoverages, listSubNames, skip |
Constructor Detail |
---|
public WorldImageReader(java.lang.Object input) throws DataSourceException
input
- The source of a GridCoverage, can be a File, a URL or an input
stream.
DataSourceException
public WorldImageReader(java.lang.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 org.opengis.coverage.grid.Format getFormat()
getFormat
in interface org.opengis.coverage.grid.GridCoverageReader
public GridCoverage2D read(org.opengis.parameter.GeneralParameterValue[] params) throws java.lang.IllegalArgumentException, java.io.IOException
read
in interface org.opengis.coverage.grid.GridCoverageReader
read
in class AbstractGridCoverage2DReader
params
- WorldImageReader supports no parameters, it just ignores them.
java.lang.IllegalArgumentException
- DOCUMENT ME!
java.io.IOException
- DOCUMENT ME!public int getGridCoverageCount()
getGridCoverageCount
in class AbstractGridCoverage2DReader
org.opengis.coverage.grid.GridCoverageReader#getGridCoverageCount()
public java.lang.String getExtension()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |