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 classstatic enumstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Closes thisCoverageSourceand releases any lock or cached information it holds.Set of supportedCoverageCapabilitieswhich 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) intgetOverviewsNumber(ProgressListener listener) getRangeType(ProgressListener listener) Retrieves aRangeTypeinstance 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
Mapdescribing theMapforread(CoverageReadRequest, ProgressListener).
-
read
- Parameters:
request- the inputDefaultCoverageRequest.- Throws:
IOException
-
getRangeType
Retrieves aRangeTypeinstance which can be used to describe the codomain for the underlying coverage.- Returns:
- a
RangeTypeinstance which can be used to describe the codomain for the underlying coverage. - Throws:
IOException- in case something bad occurs
-
dispose
void dispose()Closes thisCoverageSourceand releases any lock or cached information it holds.Once a
CoverageAccesshas 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 supportedCoverageCapabilitieswhich 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
EnumSetof 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
-