public final class ArcGridReader extends AbstractGridCoverage2DReader implements GridCoverage2DReader
GridCoverage2D
from the data.closeMe, coverageFactory, coverageName, crs, dtLayout, EPS, gzipped, highestRes, hints, inStream, inStreamSPI, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source
ELEVATION_DOMAIN, ELEVATION_DOMAIN_MAXIMUM, ELEVATION_DOMAIN_MINIMUM, ELEVATION_DOMAIN_RESOLUTION, FILE_SOURCE_PROPERTY, HAS_ELEVATION_DOMAIN, HAS_TIME_DOMAIN, MULTICRS_READER, REPROJECTING_READER, SOURCE_URL_PROPERTY, TIME_DOMAIN, TIME_DOMAIN_MAXIMUM, TIME_DOMAIN_MINIMUM, TIME_DOMAIN_RESOLUTION
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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[]) . |
addAllSiblings, addSiblings, checkName, createImageCoverage, createImageCoverage, createImageCoverage, createImageCoverage, decimationOnReadingControl, dispose, finalize, getCoordinateReferenceSystem, getCoordinateReferenceSystem, getCrs, getCurrentSubname, getDatasetLayout, getDatasetLayout, getDynamicParameters, getDynamicParameters, getFiles, getGridCoverageNames, getGroundControlPoints, getGroundControlPoints, getHighestRes, getImageLayout, getImageLayout, getInfo, getInfo, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getMultiLevelROIProvider, getNumOverviews, getNumOverviews, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getOverviewGridEnvelope, getOverviewGridEnvelope, getReadingResolutions, getReadingResolutions, getRescaledRasterToModel, getResolution, getResolutionLevels, getResolutionLevels, getSibling, getSource, getSourceAsFile, hasMoreGridCoverages, listSubNames, read, setlayout, setLayout, setReadParams, setReadParams, skip
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCoordinateReferenceSystem, getCoordinateReferenceSystem, getDatasetLayout, getDatasetLayout, getDynamicParameters, getDynamicParameters, getImageLayout, getImageLayout, getInfo, getInfo, getNumOverviews, getNumOverviews, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getReadingResolutions, getReadingResolutions, getResolutionLevels, getResolutionLevels, read
dispose, getCurrentSubname, getGridCoverageNames, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getSource, hasMoreGridCoverages, listSubNames, skip
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
public Format getFormat()
GridCoverageReader
GridCoverageReader
.getFormat
in interface GridCoverageReader
GridCoverageReader.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 GridCoverage2DReader
read
in interface GridCoverageReader
read
in class AbstractGridCoverage2DReader
params
- 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.IllegalArgumentException
AbstractGridFormat
,
ArcGridFormat
,
GridCoverageReader.read(org.opengis.parameter.GeneralParameterValue[])
public int getGridCoverageCount()
getGridCoverageCount
in interface GridCoverageReader
getGridCoverageCount
in class AbstractGridCoverage2DReader
GridCoverageReader.getGridCoverageCount()
Copyright © 1996–2019 Geotools. All rights reserved.