Package org.geotools.gce.imagemosaic
Interface GranuleAccessProvider
-
- All Known Implementing Classes:
CogGranuleAccessProvider
public interface GranuleAccessProvider
An interface providing multiple types of entities involved when getting access to a Granule.- An ImageReaderSpi to create an ImageReader to decode that granule
- An ImageInputStreamSpi to create a stream for the granule
- An AbstractGridFormat supporting the type of format of that granule
- An AbstractGridCoverage2DReader able to read that granule
- A MaskOverviewProvider with details on mask and overviews for that granule
-
-
Field Summary
Fields Modifier and Type Field Description static Hints.Key
GRANULE_ACCESS_PROVIDER
static Hints.Key
SUGGESTED_FORMAT
static Hints.Key
SUGGESTED_READER_SPI
static Hints.Key
SUGGESTED_STREAM_SPI
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GranuleAccessProvider
copyProviders()
Get a copy of this GranuleAccessProviders with same SPIs, factories and configAbstractGridFormat
getFormat()
Return the AbstractGridFormat supporting the type of the input granuleAbstractGridCoverage2DReader
getGridCoverageReader()
Return a GridCoverageReader supporting the type of the input granuleImageInputStream
getImageInputStream()
ImageReader
getImageReader()
ImageReaderSpi
getImageReaderSpi()
Return an ImageReaderSpi to create readers on the input granuleImageInputStreamSpi
getInputStreamSpi()
Return an ImageInputStreamSpi to create streams on the input granuleMaskOverviewProvider
getMaskOverviewsProvider()
void
setGranuleInput(Object input)
Input to be set before invoking any method of the provider
-
-
-
Method Detail
-
setGranuleInput
void setGranuleInput(Object input) throws IOException
Input to be set before invoking any method of the provider- Throws:
IOException
-
getFormat
AbstractGridFormat getFormat() throws IOException
Return the AbstractGridFormat supporting the type of the input granule- Throws:
IOException
-
getGridCoverageReader
AbstractGridCoverage2DReader getGridCoverageReader() throws IOException
Return a GridCoverageReader supporting the type of the input granule- Throws:
IOException
-
getInputStreamSpi
ImageInputStreamSpi getInputStreamSpi() throws IOException
Return an ImageInputStreamSpi to create streams on the input granule- Throws:
IOException
-
getImageReaderSpi
ImageReaderSpi getImageReaderSpi() throws IOException
Return an ImageReaderSpi to create readers on the input granule- Throws:
IOException
-
getMaskOverviewsProvider
MaskOverviewProvider getMaskOverviewsProvider() throws IOException
- Throws:
IOException
-
getImageInputStream
ImageInputStream getImageInputStream() throws IOException
- Throws:
IOException
-
getImageReader
ImageReader getImageReader() throws IOException
- Throws:
IOException
-
copyProviders
GranuleAccessProvider copyProviders()
Get a copy of this GranuleAccessProviders with same SPIs, factories and config
-
-