Package org.geotools.imageio
Class GeoSpatialImageReader
Object
ImageReader
GeoSpatialImageReader
- All Implemented Interfaces:
InitializingReader,FileSetManager
- Direct Known Subclasses:
NetCDFImageReader
public abstract class GeoSpatialImageReader
extends ImageReader
implements FileSetManager, InitializingReader
- Author:
- Daniele Romagnoli, GeoSolutions SAS, Simone Giannecchini, GeoSolutions SAS
-
Field Summary
FieldsFields inherited from class ImageReader
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGeoSpatialImageReader(ImageReaderSpi originatingProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckImageIndex(int imageIndex) Simple check of the specified image index.voiddispose()protected voidfinalize()Returns the underlying slicesCatalog.abstract CoverageSourceDescriptorgetCoverageDescriptor(Name name) abstract Collection<Name>Return the name of coverages made available by this providerabstract intThe number of coverages made available by this provider.getImageIndex(Query filterQuery) Return the list of imageIndex related to the feature in the slicesCatalog which result from the specified query.getImageMetadata(int imageIndex) intgetNumImages(boolean allowSearch) booleaninit(RenderingHints hints) protected voidinitCatalog(DataStoreConfiguration datastoreConfig) Initialize a slicesCatalog on top of the providedDataStoreConfigurationinstancevoidsetAuxiliaryDatastorePath(String auxiliaryDatastorePath) voidsetAuxiliaryFilesPath(String auxiliaryFilesPath) protected voidsetCatalog(CoverageSlicesCatalog catalog) voidsetRepository(Repository repository) Methods inherited from class ImageReader
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, getAspectRatio, getAvailableLocales, getDefaultReadParam, getDestination, getFormatName, getHeight, getImageMetadata, getImageTypes, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, hasThumbnails, isIgnoringMetadata, isImageTiled, isRandomAccessEasy, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, read, readAll, readAll, readAsRenderedImage, readerSupportsThumbnails, readRaster, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, reset, setInput, setInput, setInput, setLocaleMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FileSetManager
addFile, list, purge, removeFile
-
Field Details
-
file
The source file -
numImages
protected int numImages
-
-
Constructor Details
-
GeoSpatialImageReader
-
-
Method Details
-
getImageMetadata
- Specified by:
getImageMetadatain classImageReader- Throws:
IOException
-
dispose
public void dispose()- Overrides:
disposein classImageReader
-
getStreamMetadata
- Specified by:
getStreamMetadatain classImageReader- Throws:
IOException
-
checkImageIndex
protected void checkImageIndex(int imageIndex) Simple check of the specified image index. Valid indexes are belonging the range [0 - numRasters]. In case this constraint is not respected, anIndexOutOfBoundsExceptionis thrown.- Parameters:
imageIndex- the index to be checked
-
getNumImages
- Specified by:
getNumImagesin classImageReader- Throws:
IOException
-
getCoveragesNames
Return the name of coverages made available by this provider -
getCoveragesNumber
public abstract int getCoveragesNumber()The number of coverages made available by this provider. -
getCoverageDescriptor
-
setCatalog
-
getImageIndex
Return the list of imageIndex related to the feature in the slicesCatalog which result from the specified query.- Parameters:
filterQuery- the filter query (temporal, vertical, name selection) to restrict the requested imageIndexes- Throws:
IOException
-
getAuxiliaryFilesPath
-
setAuxiliaryFilesPath
-
getAuxiliaryDatastorePath
-
setAuxiliaryDatastorePath
-
setRepository
-
getCatalog
Returns the underlying slicesCatalog. -
initCatalog
Initialize a slicesCatalog on top of the providedDataStoreConfigurationinstance- Throws:
IOException
-
finalize
-
init
- Specified by:
initin interfaceInitializingReader
-