Interface CoverageSource

  • All Known Subinterfaces:
    CoverageStore
    All Known Implementing Classes:
    DefaultCoverageSource, NetCDFSource

    public interface CoverageSource
    Allows read-only access to a Coverage.
    Author:
    Simone Giannecchini, GeoSolutions, Jody Garnett
    • Method Detail

      • getName

        Name getName​(ProgressListener listener)
        Name of the Coverage (ie data product) provided by this CoverageSource.
        Returns:
        Name of the Coverage (ie data product) provided.
        Since:
        2.5
      • getInfo

        ResourceInfo getInfo​(ProgressListener listener)
        Information describing the contents of this resource.

        Please note that for FeatureContent:

        • name - unique with in the context of a Service
        • schema - used to identify the type of resource; usually the format or data product being represented
        • getRangeType

          RangeType getRangeType​(ProgressListener listener)
                          throws IOException
          Retrieves a RangeType instance which can be used to describe the codomain for the underlying coverage.
          Returns:
          a RangeType instance which can be used to describe the codomain for the underlying coverage.
          Throws:
          IOException - in case something bad occurs
        • dispose

          void dispose()
          Closes this CoverageSource and releases any lock or cached information it holds.

          Once a CoverageAccess has been disposed it can be seen as being in unspecified state, hence calling a method on it may have unpredictable results.

        • getCapabilities

          EnumSet<CoverageCapabilities> getCapabilities()
          Set of supported CoverageCapabilities which can be used to discover capabilities of a certain CoverageSource.

          You can use set membership to quickly test abilities:

           if( getCapabilities().contains( CoverageCapabilities.READ_SUBSAMPLING ) ){
               ...
           }
           
          Returns:
          a EnumSet of CoverageCapabilities which can be used to discover capabilities of this CoverageSource.
        • getMetadataDomains

          Set<Name> getMetadataDomains()
        • getOverviewsLayouts

          List<? extends RasterLayout> getOverviewsLayouts​(ProgressListener listener)
                                                    throws IOException
          Throws:
          IOException
        • getOverviewsNumber

          int getOverviewsNumber​(ProgressListener listener)
                          throws IOException
          Throws:
          IOException
        • getDimensionDescriptors

          List<DimensionDescriptor> getDimensionDescriptors()
                                                     throws IOException
          Throws:
          IOException