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 Details

    • file

      protected File file
      The source file
    • numImages

      protected int numImages
  • Constructor Details

    • GeoSpatialImageReader

      protected GeoSpatialImageReader(ImageReaderSpi originatingProvider)
  • Method Details

    • getImageMetadata

      public IIOMetadata getImageMetadata(int imageIndex) throws IOException
      Specified by:
      getImageMetadata in class ImageReader
      Throws:
      IOException
    • dispose

      public void dispose()
      Overrides:
      dispose in class ImageReader
    • getStreamMetadata

      public IIOMetadata getStreamMetadata() throws IOException
      Specified by:
      getStreamMetadata in class ImageReader
      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, an IndexOutOfBoundsException is thrown.
      Parameters:
      imageIndex - the index to be checked
    • getNumImages

      public int getNumImages(boolean allowSearch) throws IOException
      Specified by:
      getNumImages in class ImageReader
      Throws:
      IOException
    • getCoveragesNames

      public abstract Collection<Name> 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

      public abstract CoverageSourceDescriptor getCoverageDescriptor(Name name)
    • setCatalog

      protected void setCatalog(CoverageSlicesCatalog catalog)
    • getImageIndex

      public List<Integer> getImageIndex(Query filterQuery) throws IOException
      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

      public String getAuxiliaryFilesPath()
    • setAuxiliaryFilesPath

      public void setAuxiliaryFilesPath(String auxiliaryFilesPath)
    • getAuxiliaryDatastorePath

      public String getAuxiliaryDatastorePath()
    • setAuxiliaryDatastorePath

      public void setAuxiliaryDatastorePath(String auxiliaryDatastorePath)
    • setRepository

      public void setRepository(Repository repository)
    • getCatalog

      public CoverageSlicesCatalog getCatalog()
      Returns the underlying slicesCatalog.
    • initCatalog

      protected void initCatalog(DataStoreConfiguration datastoreConfig) throws IOException
      Initialize a slicesCatalog on top of the provided DataStoreConfiguration instance
      Throws:
      IOException
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • init

      public boolean init(RenderingHints hints)
      Specified by:
      init in interface InitializingReader