public final class BaseNetCDFImageReader extends BaseImageReader
BaseNetCDFImageReader is a ImageReader able to create
RenderedImage from NetCDF-CF sources.| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOGGER |
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales| Constructor and Description |
|---|
BaseNetCDFImageReader(ImageReaderSpi originatingProvider)
Explicit Constructor getting
ImageReaderSpi originatingProvider
as actual parameter. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Allows any resources held by this reader to be released.
|
NetCDFUtilities.KeyValuePair |
getAttribute(int imageIndex,
int attributeIndex) |
String |
getAttributeAsString(int imageIndex,
String attributeName) |
String |
getAttributeAsString(int imageIndex,
String attributeName,
boolean isUnsigned) |
ucar.nc2.dataset.NetcdfDataset |
getDataset() |
NetCDFUtilities.KeyValuePair |
getGlobalAttribute(int attributeIndex) |
int |
getHeight(int imageIndex) |
IIOMetadata |
getImageMetadata(int imageIndex) |
Iterator<ImageTypeSpecifier> |
getImageTypes(int imageIndex) |
Map<ucar.ma2.Range,?> |
getIndexMap() |
int |
getNumAttributes(int imageIndex) |
int |
getNumGlobalAttributes() |
IIOMetadata |
getStreamMetadata() |
String |
getVariableName(int imageIndex) |
BaseVariableWrapper |
getVariableWrapper(int imageIndex) |
int |
getWidth(int imageIndex) |
protected void |
initialize() |
BufferedImage |
read(int imageIndex,
ImageReadParam param) |
void |
reset()
Reset the status of this reader
|
void |
setIndexMap(Map<ucar.ma2.Range,? extends BaseVariableWrapper> indexMap) |
void |
setInput(Object input)
Sets the input source to use within this reader.
|
void |
setInput(Object input,
boolean seekForwardOnly)
Sets the input source to use within this reader.
|
void |
setInput(Object input,
boolean seekForwardOnly,
boolean ignoreMetadata)
Sets the input source to use within this reader.
|
void |
setNumGlobalAttributes(int numGlobalAttributes) |
checkImageIndex, getNumImages, setNumImagesabort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, getAspectRatio, getAvailableLocales, getDefaultReadParam, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, hasThumbnails, isIgnoringMetadata, isImageTiled, isRandomAccessEasy, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readAsRenderedImage, readerSupportsThumbnails, readRaster, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, setLocaleprotected static final Logger LOGGER
public BaseNetCDFImageReader(ImageReaderSpi originatingProvider)
ImageReaderSpi originatingProvider
as actual parameter.originatingProvider - ImageReaderSpipublic Map<ucar.ma2.Range,?> getIndexMap()
public void setIndexMap(Map<ucar.ma2.Range,? extends BaseVariableWrapper> indexMap)
public ucar.nc2.dataset.NetcdfDataset getDataset()
public void setNumGlobalAttributes(int numGlobalAttributes)
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
URIs,
Files, Strings, URLs, ImageInputStreams
are accepted input types.seekForwardOnly and ignoreMetadata)
are actually ignored.setInput in class ImageReaderinput - the Object to be set as input of this reader.exception - IllegalArgumentException in case the provided
input Object cannot be properly parsed and used
as input for the reader.protected void initialize()
public void setInput(Object input, boolean seekForwardOnly)
URIs,
Files (also representing a Directory), Strings (also
representing the path of a Directory), URLs,
ImageInputStreams are accepted input types.seekForwardOnly is actually ignored.setInput in class ImageReaderinput - the Object to be set as input of this reader.{@link - IllegalArgumentException}
in case the provided input Object cannot be
properly parsed and used as input for the reader.public void setInput(Object input)
URIs,
Files (also representing a Directory), Strings (also
representing the path of a Directory), URLs,
ImageInputStreams are accepted input types.setInput in class ImageReaderinput - the Object to be set as input of this reader.{@link - IllegalArgumentException}
in case the provided input Object cannot be
properly parsed and used as input for the reader.public int getHeight(int imageIndex)
throws IOException
getHeight in class ImageReaderIOExceptionImageReader.getHeight(int)public BaseVariableWrapper getVariableWrapper(int imageIndex)
public Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex) throws IOException
getImageTypes in class ImageReaderIOExceptionpublic int getWidth(int imageIndex)
throws IOException
getWidth in class ImageReaderIOExceptionpublic void dispose()
dispose in class BaseImageReaderIOExceptionpublic void reset()
reset in class ImageReaderpublic String getAttributeAsString(int imageIndex, String attributeName, boolean isUnsigned)
public NetCDFUtilities.KeyValuePair getAttribute(int imageIndex, int attributeIndex) throws IOException
IOExceptionpublic String getVariableName(int imageIndex)
public int getNumGlobalAttributes()
public int getNumAttributes(int imageIndex)
public NetCDFUtilities.KeyValuePair getGlobalAttribute(int attributeIndex) throws IOException
IOExceptionpublic IIOMetadata getImageMetadata(int imageIndex) throws IOException
getImageMetadata in class ImageReaderIOExceptionpublic IIOMetadata getStreamMetadata() throws IOException
getStreamMetadata in class ImageReaderIOExceptionpublic BufferedImage read(int imageIndex, ImageReadParam param)
read in class ImageReaderCopyright © 2006–2019 GeoSolutions. All rights reserved.