Interface GranuleSource

    • Method Detail

      • getCount

        int getCount​(Query q)
              throws IOException
        Gets the number of the granules that would be returned by the given Query, taking into account any settings for max features and start index set on the Query.
        Parameters:
        q - the Query to select granules
        Returns:
        the number of granules
        Throws:
        IOException
      • getBounds

        ReferencedEnvelope getBounds​(Query q)
                              throws IOException
        Get the spatial bounds of the granules that would be returned by the given Query.
        Parameters:
        q - the Query to select granules
        Returns:
        The bounding envelope of the requested data
        Throws:
        IOException
      • dispose

        void dispose()
              throws IOException
        This will free/release any resource (cached granules, ...).
        Throws:
        IOException
      • getSupportedHints

        default Set<RenderingHints.Key> getSupportedHints()
        Returns the set of hints that this GranuleSource supports via Query requests.

        Note: the existence of a specific hint does not guarantee that it will always be honored by the implementing class.

        Returns:
        a set of RenderingHints#Key objects; may be empty but never null
        See Also:
        Hints#SGCR_FILE_VIEW