public class NetCDFImageReader extends BaseImageReader implements ucar.nc2.util.CancelTask
NetCDFImageReader
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 |
---|
NetCDFImageReader(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.
|
int |
getHeight(int imageIndex) |
IIOMetadata |
getImageMetadata(int imageIndex) |
Iterator<ImageTypeSpecifier> |
getImageTypes(int imageIndex) |
IIOMetadata |
getStreamMetadata() |
protected it.geosolutions.imageio.plugins.netcdf.NetCDFImageReader.NetCDFVariableWrapper |
getVariableWrapper(int imageIndex) |
int |
getWidth(int imageIndex) |
protected void |
initialize()
Initialize main properties for this reader.
|
boolean |
isCancel()
Invoked by the NetCDF library during read operation in order to check if
the task has been canceled.
|
BufferedImage |
read(int imageIndex,
ImageReadParam param) |
void |
setError(String message)
Invoked by the NetCDF library when an error occurred during the read
operation.
|
void |
setInput(Object input) |
void |
setInput(Object input,
boolean seekForwardOnly) |
void |
setInput(Object input,
boolean seekForwardOnly,
boolean ignoreMetadata) |
checkImageIndex, getNumImages, setNumImages
abort, 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, reset, setLocale
protected static final Logger LOGGER
public NetCDFImageReader(ImageReaderSpi originatingProvider)
ImageReaderSpi
originatingProvider
as actual parameter.originatingProvider
- ImageReaderSpi
protected void initialize()
exception
- InvalidRangeException
protected it.geosolutions.imageio.plugins.netcdf.NetCDFImageReader.NetCDFVariableWrapper getVariableWrapper(int imageIndex)
public IIOMetadata getImageMetadata(int imageIndex) throws IOException
getImageMetadata
in class ImageReader
IOException
ImageReader.getImageMetadata(int)
public IIOMetadata getStreamMetadata() throws IOException
getStreamMetadata
in class ImageReader
IOException
public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException
read
in class ImageReader
IOException
ImageReader.read(int, javax.imageio.ImageReadParam)
public void dispose()
dispose
in class BaseImageReader
IOException
public void setError(String message)
setError
in interface ucar.nc2.util.CancelTask
public boolean isCancel()
isCancel
in interface ucar.nc2.util.CancelTask
public int getHeight(int imageIndex) throws IOException
getHeight
in class ImageReader
IOException
public Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex) throws IOException
getImageTypes
in class ImageReader
IOException
public int getWidth(int imageIndex) throws IOException
getWidth
in class ImageReader
IOException
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
setInput
in class ImageReader
public void setInput(Object input, boolean seekForwardOnly)
setInput
in class ImageReader
public void setInput(Object input)
setInput
in class ImageReader
Copyright © 2006–2014 GeoSolutions. All rights reserved.