|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractGridCoverage2DReader
ArcGridReader
public final class ArcGridReader
This class can read an arc grid data source (ArcGrid or GRASS ASCII) and
create a GridCoverage2D from the data.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
ArcGridReader(Object input)
Creates a new instance of an ArcGridReader basing the decision on whether the file is compressed or not. |
|
ArcGridReader(Object input,
Hints hints)
Creates a new instance of an ArcGridReader basing the decision on whether the file is compressed or not. |
|
| Method Summary | |
|---|---|
Format |
getFormat()
Returns the format handled by this GridCoverageReader. |
int |
getGridCoverageCount()
Number of coverages for this reader is 1 |
GridCoverage2D |
read(GeneralParameterValue[] params)
Reads a GridCoverage2D possibly matching as close as possible the
resolution computed by using the input params provided by using the
parameters for this read(GeneralParameterValue[]). |
| 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 ArcGridReader(Object input)
throws DataSourceException
input - Source object for which we want to build an ArcGridReader.
DataSourceException
public ArcGridReader(Object input,
Hints hints)
throws DataSourceException
input - Source object for which we want to build an ArcGridReader.hints - Hints to be used by this reader throughout his life.
DataSourceException| Method Detail |
|---|
public Format getFormat()
GridCoverageReaderGridCoverageReader.
getFormat in interface GridCoverageReaderGridCoverageReader.getFormat()
public GridCoverage2D read(GeneralParameterValue[] params)
throws IllegalArgumentException,
IOException
GridCoverage2D possibly matching as close as possible the
resolution computed by using the input params provided by using the
parameters for this read(GeneralParameterValue[]).
To have an idea about the possible read parameters take a look at
AbstractGridFormat class and ArcGridFormat class.
read in interface GridCoverageReaderread in class AbstractGridCoverage2DReaderparams - an array of GeneralParameterValue containing the
parameters to control this read process.
GridCoverage2D.
InvalidParameterNameException - if a parameter in parameters
doesn't have a recognized name.
InvalidParameterValueException - if a parameter in parameters
doesn't have a valid value.
ParameterNotFoundException - if a parameter was required for the operation but was
not provided in the parameters list.
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.
IllegalArgumentExceptionAbstractGridFormat,
ArcGridFormat,
GridCoverageReader.read(org.opengis.parameter.GeneralParameterValue[])public int getGridCoverageCount()
getGridCoverageCount in class AbstractGridCoverage2DReaderorg.opengis.coverage.grid.GridCoverageReader#getGridCoverageCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||