public class PGRasterReader extends AbstractGridCoverage2DReader
closeMe, coverageFactory, coverageName, crs, dtLayout, EPS, gzipped, highestRes, hints, inStream, inStreamSPI, numOverviews, offsets, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, scales, sourceELEVATION_DOMAIN, ELEVATION_DOMAIN_MAXIMUM, ELEVATION_DOMAIN_MINIMUM, ELEVATION_DOMAIN_RESOLUTION, FILE_SOURCE_PROPERTY, HAS_ELEVATION_DOMAIN, HAS_TIME_DOMAIN, MULTICRS_EPSGCODES, MULTICRS_READER, REPROJECTING_READER, SOURCE_URL_PROPERTY, TIME_DOMAIN, TIME_DOMAIN_MAXIMUM, TIME_DOMAIN_MINIMUM, TIME_DOMAIN_RESOLUTION| Constructor and Description |
|---|
PGRasterReader(PGRasterConfig config,
PGRasterFormat format,
Hints hints) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes this reader.
|
Format |
getFormat()
Returns the format handled by this
GridCoverageReader. |
String[] |
getMetadataNames()
Returns the list of metadata keywords associated with the input
source as a whole (not associated with any particular grid coverage).
|
String |
getMetadataValue(String coverageName,
String name)
Retrieve the metadata value for a given metadata name for a specified coverage.
|
String |
name() |
GridCoverage2D |
read(GeneralParameterValue[] params)
Read the current grid coverage from the stream.
|
addAllSiblings, addSiblings, checkName, collectScaleOffset, createImageCoverage, createImageCoverage, createImageCoverage, createImageCoverage, decimationOnReadingControl, finalize, getCoordinateReferenceSystem, getCoordinateReferenceSystem, getDatasetLayout, getDatasetLayout, getDynamicParameters, getDynamicParameters, getFiles, getGridCoverageCount, getGridCoverageNames, getGroundControlPoints, getGroundControlPoints, getHighestRes, getImageLayout, getImageLayout, getInfo, getInfo, getMetadataNames, getMetadataValue, getMultiLevelROIProvider, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getOverviewGridEnvelope, getOverviewGridEnvelope, getReadingResolutions, getReadingResolutions, getRescaledRasterToModel, getResolution, getResolutionLevels, getResolutionLevels, getSibling, getSource, getSourceAsFile, read, setlayout, setLayout, setReadParams, setReadParamspublic PGRasterReader(PGRasterConfig config,
PGRasterFormat format,
Hints hints)
throws IOException
IOExceptionpublic String name()
public Format getFormat()
GridCoverageReaderGridCoverageReader.public String[] getMetadataNames()
GridCoverageReadergetMetadataNames in interface GridCoverageReadergetMetadataNames in class AbstractGridCoverage2DReaderGridCoverageReader.getMetadataNames()public String getMetadataValue(String coverageName, String name)
GridCoverageReadergetMetadataValue in interface GridCoverageReadergetMetadataValue in class AbstractGridCoverage2DReadername - Metadata keyword for which to retrieve metadata.GridCoverageReader.getMetadataNames().public GridCoverage2D read(GeneralParameterValue[] params) throws IllegalArgumentException, IOException
AbstractGridCoverage2DReaderExample:
read in interface GridCoverage2DReaderread in interface GridCoverageReaderread in class AbstractGridCoverage2DReaderparams - Optional parameters matching Format.getReadParameters().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.IllegalArgumentExceptionpublic void dispose()
AbstractGridCoverage2DReaderThis method just tries to close the underlying ImageInputStream.
dispose in interface GridCoverageReaderdispose in class AbstractGridCoverage2DReaderCopyright © 1996–2021 Geotools. All rights reserved.