Class MaskOverviewProvider


  • public class MaskOverviewProvider
    extends Object
    Helper class used for handling Internal/External overviews and masks for a File
    Author:
    Nicola Lagomarsini GeoSolutions
    • Method Detail

      • getNumOverviews

        public int getNumOverviews​(SourceSPIProvider sourceSpiProvider)
      • getOverviewIndex

        public int getOverviewIndex​(int imageIndex)
        Returns the external/internal overview image index based on the initial imageindex value
      • hasMaskIndexForOverview

        public boolean hasMaskIndexForOverview​(int imageIndex)
        Returns true if there is a mask at the same resolution of the requested one
      • isExternalOverview

        public boolean isExternalOverview​(int imageIndex)
        Returns true if the defined index is related to an external image overview index
      • isExternalMask

        public boolean isExternalMask​(int imageIndex)
        Returns true if the defined index is related to an external image mask index
      • isExternalMaskOverviews

        public boolean isExternalMaskOverviews​(int imageIndex)
        Returns true if the defined index is related to an external image mask overview index
      • hasExternalMasks

        public boolean hasExternalMasks()
      • hasExternalMasksOverviews

        public boolean hasExternalMasksOverviews()
      • getOverviewResolutions

        public double[][] getOverviewResolutions​(double span0,
                                                 double span1)
        Returns a double[][] containing the resolutions for all the overviews
      • getExternalOverviewReaderSpi

        public ImageReaderSpi getExternalOverviewReaderSpi()
      • getExternalOverviewInputStreamSpi

        public ImageInputStreamSpi getExternalOverviewInputStreamSpi()
      • getSourceSpiProvider

        public SourceSPIProvider getSourceSpiProvider()
      • getLayout

        public DatasetLayout getLayout()
      • getNumOverviews

        public int getNumOverviews()
      • getNumInternalOverviews

        public int getNumInternalOverviews()
      • getNumExternalOverviews

        public int getNumExternalOverviews()
      • getNumInternalMasks

        public int getNumInternalMasks()
      • getNumExternalMasks

        public int getNumExternalMasks()
      • getNumExternalMasksOverviews

        public int getNumExternalMasksOverviews()
      • getFileURL

        public URL getFileURL()
      • getOvrURL

        public URL getOvrURL()
      • getMaskURL

        public URL getMaskURL()
      • getMaskOvrURL

        public URL getMaskOvrURL()
      • isSkipExternalLookup

        public boolean isSkipExternalLookup()