|
||||||||||
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 |
---|
Fields inherited from class AbstractGridCoverage2DReader |
---|
closeMe, coverageFactory, coverageName, crs, demColors, EPS, gzipped, highestRes, hints, inStream, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source |
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()
|
int |
getGridCoverageCount()
Number of coverages for this reader is 1 |
GridCoverage |
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 int getGridCoverageCount()
getGridCoverageCount
in class AbstractGridCoverage2DReader
org.opengis.coverage.grid.GridCoverageReader#getGridCoverageCount()
public Format getFormat()
getFormat
in interface GridCoverageReader
GridCoverageReader.getFormat()
public GridCoverage 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 GridCoverageReader
params
- an array of GeneralParameterValue
containing the
parameters to control this read process.
GridCoverage2D
.
IllegalArgumentException
IOException
AbstractGridFormat
,
ArcGridFormat
,
GridCoverageReader.read(org.opengis.parameter.GeneralParameterValue[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |