Package org.geotools.gce.imagemosaic
Class CogGranuleAccessProvider
- Object
-
- CogGranuleAccessProvider
-
- All Implemented Interfaces:
GranuleAccessProvider
,GranuleDescriptorModifier
public class CogGranuleAccessProvider extends Object implements GranuleAccessProvider
GranuleAccessProvider for COG Granules.
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractGridFormat
format
protected AbstractGridCoverage2DReader
gcReader
protected Hints
hints
protected ImageInputStreamSpi
imageInputStreamSpi
protected ImageReaderSpi
imageReaderSpi
protected Object
input
protected URL
inputURL
protected MaskOverviewProvider
ovrProvider
protected boolean
skipExternalOverviews
protected MaskOverviewProvider.SpiHelper
spiHelper
protected AbstractGridFormat
suggestedFormat
-
Fields inherited from interface GranuleAccessProvider
GRANULE_ACCESS_PROVIDER, SUGGESTED_FORMAT, SUGGESTED_READER_SPI, SUGGESTED_STREAM_SPI
-
-
Constructor Summary
Constructors Constructor Description CogGranuleAccessProvider(CatalogConfigurationBean bean)
CogGranuleAccessProvider(Hints hints)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GranuleAccessProvider
copyProviders()
Get a copy of this GranuleAccessProviders with same SPIs, factories and configstatic AbstractGridFormat
createFormatInstance(String formatClass)
static ImageInputStreamSpi
createImageInputStreamSpiInstance(String spiClass)
static ImageReaderSpi
createImageReaderSpiInstance(String spiClass)
AbstractGridFormat
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 granuleURL
getInputURL()
MaskOverviewProvider
getMaskOverviewsProvider()
void
setGranuleInput(Object input)
Input to be set before invoking any method of the providervoid
update(GranuleDescriptor granuleDescriptor, Hints hints)
-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface GranuleAccessProvider
getFormat, getGridCoverageReader, getImageReader
-
-
-
-
Field Detail
-
imageInputStreamSpi
protected ImageInputStreamSpi imageInputStreamSpi
-
suggestedFormat
protected AbstractGridFormat suggestedFormat
-
format
protected AbstractGridFormat format
-
imageReaderSpi
protected ImageReaderSpi imageReaderSpi
-
gcReader
protected AbstractGridCoverage2DReader gcReader
-
ovrProvider
protected MaskOverviewProvider ovrProvider
-
spiHelper
protected MaskOverviewProvider.SpiHelper spiHelper
-
input
protected Object input
-
inputURL
protected URL inputURL
-
hints
protected Hints hints
-
skipExternalOverviews
protected boolean skipExternalOverviews
-
-
Constructor Detail
-
CogGranuleAccessProvider
public CogGranuleAccessProvider(CatalogConfigurationBean bean)
-
CogGranuleAccessProvider
public CogGranuleAccessProvider(Hints hints)
-
-
Method Detail
-
setGranuleInput
public void setGranuleInput(Object input) throws IOException
Description copied from interface:GranuleAccessProvider
Input to be set before invoking any method of the provider- Specified by:
setGranuleInput
in interfaceGranuleAccessProvider
- Throws:
IOException
-
getMaskOverviewsProvider
public MaskOverviewProvider getMaskOverviewsProvider() throws IOException
- Specified by:
getMaskOverviewsProvider
in interfaceGranuleAccessProvider
- Throws:
IOException
-
getInputStreamSpi
public ImageInputStreamSpi getInputStreamSpi() throws IOException
Description copied from interface:GranuleAccessProvider
Return an ImageInputStreamSpi to create streams on the input granule- Specified by:
getInputStreamSpi
in interfaceGranuleAccessProvider
- Throws:
IOException
-
getImageReaderSpi
public ImageReaderSpi getImageReaderSpi() throws IOException
Description copied from interface:GranuleAccessProvider
Return an ImageReaderSpi to create readers on the input granule- Specified by:
getImageReaderSpi
in interfaceGranuleAccessProvider
- Throws:
IOException
-
getImageInputStream
public ImageInputStream getImageInputStream() throws IOException
- Specified by:
getImageInputStream
in interfaceGranuleAccessProvider
- Throws:
IOException
-
copyProviders
public GranuleAccessProvider copyProviders()
Description copied from interface:GranuleAccessProvider
Get a copy of this GranuleAccessProviders with same SPIs, factories and config- Specified by:
copyProviders
in interfaceGranuleAccessProvider
-
getInputURL
public URL getInputURL()
-
getFormat
public AbstractGridFormat getFormat() throws IOException
Description copied from interface:GranuleAccessProvider
Return the AbstractGridFormat supporting the type of the input granule- Specified by:
getFormat
in interfaceGranuleAccessProvider
- Throws:
IOException
-
getGridCoverageReader
public AbstractGridCoverage2DReader getGridCoverageReader() throws IOException
Description copied from interface:GranuleAccessProvider
Return a GridCoverageReader supporting the type of the input granule- Specified by:
getGridCoverageReader
in interfaceGranuleAccessProvider
- Throws:
IOException
-
getImageReader
public ImageReader getImageReader() throws IOException
- Specified by:
getImageReader
in interfaceGranuleAccessProvider
- Throws:
IOException
-
createImageReaderSpiInstance
public static ImageReaderSpi createImageReaderSpiInstance(String spiClass)
-
createImageInputStreamSpiInstance
public static ImageInputStreamSpi createImageInputStreamSpiInstance(String spiClass)
-
createFormatInstance
public static AbstractGridFormat createFormatInstance(String formatClass)
-
update
public void update(GranuleDescriptor granuleDescriptor, Hints hints)
- Specified by:
update
in interfaceGranuleDescriptorModifier
-
-