Package org.geotools.coverage.io
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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static enum
static class
static class
static class
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Closes thisCoverageSource
and releases any lock or cached information it holds.Set of supportedCoverageCapabilities
which can be used to discover capabilities of a certainCoverageSource
.getInfo
(ProgressListener listener) Information describing the contents of this resource.getMetadata
(String metadataDomain, ProgressListener listener) getName
(ProgressListener listener) Name of the Coverage (ie data product) provided by this CoverageSource.List<? extends RasterLayout>
getOverviewsLayouts
(ProgressListener listener) int
getOverviewsNumber
(ProgressListener listener) getRangeType
(ProgressListener listener) Retrieves aRangeType
instance which can be used to describe the codomain for the underlying coverage.Describes the required (and optional) parameters that can be passed to theread(CoverageReadRequest, ProgressListener)
method.read
(CoverageReadRequest request, ProgressListener listener)
-
Method Details
-
getName
Name of the Coverage (ie data product) provided by this CoverageSource.- Returns:
- Name of the Coverage (ie data product) provided.
- Since:
- 2.5
-
getInfo
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
-
getReadParameterInfo
Describes the required (and optional) parameters that can be passed to theread(CoverageReadRequest, ProgressListener)
method.- Returns:
- Param a
Map
describing theMap
forread(CoverageReadRequest, ProgressListener)
.
-
read
- Parameters:
request
- the inputDefaultCoverageRequest
.- Throws:
IOException
-
getRangeType
Retrieves aRangeType
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 thisCoverageSource
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 supportedCoverageCapabilities
which can be used to discover capabilities of a certainCoverageSource
.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 thisCoverageSource
.
-
getMetadata
-
getMetadataDomains
-
getCoordinateReferenceSystem
CoordinateReferenceSystem getCoordinateReferenceSystem() -
getSpatialDomain
- Throws:
IOException
-
getTemporalDomain
- Throws:
IOException
-
getVerticalDomain
- Throws:
IOException
-
getAdditionalDomains
- Throws:
IOException
-
getOverviewsLayouts
- Throws:
IOException
-
getOverviewsNumber
- Throws:
IOException
-
getDimensionDescriptors
- Throws:
IOException
-