| java.lang.Object org.geotools.coverage.grid.io.AbstractGridCoverage2DReader org.geotools.gce.image.WorldImageReader
WorldImageReader | final public class WorldImageReader extends AbstractGridCoverage2DReader implements GridCoverageReader(Code) | | 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).
author: simone giannecchini author: alessio fabiani author: rgould |
Method Summary | |
public Format | getFormat() Returns the format that this Reader accepts. | public GridCoverage | read(GeneralParameterValue[] params) Reads an image from a source stream. |
WorldImageReader | public WorldImageReader(Object input) throws DataSourceException(Code) | | Class constructor. Construct a new ImageWorldReader to read a
GridCoverage from the source object. The source must point to the raster
file itself, not the world file. If the source is a Java URL it checks if
it is ponting to a file and if so it converts the url into a file.
Parameters: input - The source of a GridCoverage, can be a File, a URL or an inputstream. throws: DataSourceException - |
WorldImageReader | public WorldImageReader(Object input, Hints hints) throws DataSourceException(Code) | | Class constructor. Construct a new ImageWorldReader to read a
GridCoverage from the source object. The source must point to the raster
file itself, not the world file. If the source is a Java URL it checks if
it is ponting to a file and if so it converts the url into a file.
Parameters: input - The source of a GridCoverage, can be a File, a URL or an inputstream. throws: DataSourceException - |
getFormat | public Format getFormat()(Code) | | Returns the format that this Reader accepts.
a new WorldImageFormat class |
read | public GridCoverage read(GeneralParameterValue[] params) throws IllegalArgumentException, IOException(Code) | | Reads an image from a source stream. Loads an image from a source stream,
then loads the values from the world file and constructs a new
GridCoverage from this information. When reading from a remote stream we
do not look for a world fiel but we suppose those information comes from
a different way (xml, gml, pigeon?)
Parameters: params - WorldImageReader supports no parameters, it just ignores them. a new GridCoverage read from the source. throws: IllegalArgumentException - DOCUMENT ME! throws: IOException - DOCUMENT ME! |
|
|