| |
|
| java.lang.Object org.geotools.coverage.io.AbstractGridCoverageReader org.geotools.coverage.io.ExoreferencedGridCoverageReader
ExoreferencedGridCoverageReader | public class ExoreferencedGridCoverageReader extends AbstractGridCoverageReader (Code) | | An implementation of
AbstractGridCoverageReader using informations parsed by a
MetadataBuilder object. This reader is typically used for format that
stores pixel values and geographic metadata in separated files. For example,
pixel values may be stored as a PNG images ou a RAW binary file, and geographic
metadata (coordinate system, geographic location, etc.) may be stored in a separated
text file. The text file is parsed by a
MetadataBuilder object, while the pixel
values are read by a
ImageReader object.
since: 2.2 version: $Id: ExoreferencedGridCoverageReader.java 25699 2007-05-31 15:55:07Z desruisseaux $ author: Martin Desruisseaux |
Method Summary | |
public synchronized CoordinateReferenceSystem | getCoordinateReferenceSystem(int index) Returns the coordinate system for the
GridCoverage to be read.
The default implementation invokes
.
.
Parameters: index - The index of the image to be queried. | public synchronized Envelope | getEnvelope(int index) Returns the envelope for the
GridCoverage to be read.
The default implementation invokes
.
.
Parameters: index - The index of the image to be queried. | public synchronized GridRange | getGridRange(int index) Returns the grid range for the
GridCoverage to be read.
The default implementation invokes
.
.
Parameters: index - The index of the image to be queried. | public synchronized GridSampleDimension[] | getSampleDimensions(int index) Returns the sample dimensions for each band of the
GridCoverage to be read. | public synchronized void | reset() Restores the coverage reader to its initial state. | public synchronized void | setInput(Object input, boolean seekForwardOnly) Sets the input source to the given object. | public synchronized void | setLocale(Locale locale) Sets the current
of this grid coverage reader to the given value. | protected String | toImageFileName(String filename) Returns the filename for image data. |
getCoordinateReferenceSystem | public synchronized CoordinateReferenceSystem getCoordinateReferenceSystem(int index) throws IOException(Code) | | Returns the coordinate system for the
GridCoverage to be read.
The default implementation invokes
.
.
Parameters: index - The index of the image to be queried. The coordinate system for the GridCoverage at the specified index. throws: IllegalStateException - if the input source has not been set. throws: IndexOutOfBoundsException - if the supplied index is out of bounds. throws: IOException - if an error occurs reading the width information fromthe input source. |
getEnvelope | public synchronized Envelope getEnvelope(int index) throws IOException(Code) | | Returns the envelope for the
GridCoverage to be read.
The default implementation invokes
.
.
Parameters: index - The index of the image to be queried. The envelope for the GridCoverage at the specified index. throws: IllegalStateException - if the input source has not been set. throws: IndexOutOfBoundsException - if the supplied index is out of bounds. throws: IOException - if an error occurs reading the width information fromthe input source. |
getGridRange | public synchronized GridRange getGridRange(int index) throws IOException(Code) | | Returns the grid range for the
GridCoverage to be read.
The default implementation invokes
.
.
Parameters: index - The index of the image to be queried. The grid range for the GridCoverage at the specified index. throws: IllegalStateException - if the input source has not been set. throws: IndexOutOfBoundsException - if the supplied index is out of bounds. throws: IOException - if an error occurs reading the width information fromthe input source. |
getSampleDimensions | public synchronized GridSampleDimension[] getSampleDimensions(int index) throws IOException(Code) | | Returns the sample dimensions for each band of the
GridCoverage to be read. If sample dimensions are not known, then this method returns
null . The default implementation invokes
.
.
Parameters: index - The index of the image to be queried. The category lists for the GridCoverage at the specified index.This array's length must be equals to the number of bands in GridCoverage. throws: IllegalStateException - if the input source has not been set. throws: IndexOutOfBoundsException - if the supplied index is out of bounds. throws: IOException - if an error occurs reading the width information fromthe input source. |
reset | public synchronized void reset() throws IOException(Code) | | Restores the coverage reader to its initial state.
throws: IOException - if an error occurs while disposing resources. |
setInput | public synchronized void setInput(Object input, boolean seekForwardOnly) throws IOException(Code) | | Sets the input source to the given object. The input must be
File or an
URL object. The input source must be the metadata file or URL.
The image file or URL will be derived from the metadata filename by a call to
ExoreferencedGridCoverageReader.toImageFileName , which may be overridden.
Parameters: input - The File or URL to be read. Parameters: seekForwardOnly - if true , grid coverages and metadata may onlybe read in ascending order from the input source. throws: IOException - if an I/O operation failed. throws: IllegalArgumentException - if input is not an instanceof a classe supported by this reader. |
setLocale | public synchronized void setLocale(Locale locale)(Code) | | Sets the current
of this grid coverage reader to the given value.
A value of
null removes any previous setting, and indicates that the reader should
localize as it sees fit.
|
|
|
|