Package org.geotools.coverage.io.impl
Class DefaultCoverageSource
Object
DefaultCoverageSource
- All Implemented Interfaces:
CoverageSource
- Direct Known Subclasses:
NetCDFSource
Default implementation of
CoverageSource
.- Author:
- Daniele Romagnoli, GeoSolutions SAS
-
Nested Class Summary
Nested classes/interfaces inherited from interface CoverageSource
CoverageSource.AdditionalDomain, CoverageSource.DomainType, CoverageSource.SpatialDomain, CoverageSource.TemporalDomain, CoverageSource.VerticalDomain
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final EnumSet<CoverageCapabilities>
protected final CoverageSourceDescriptor
protected final Name
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DefaultCoverageSource
(Name name, CoverageSourceDescriptor descriptor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Closes thisCoverageSource
and releases any lock or cached information it holds.protected void
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 theCoverageSource.read(CoverageReadRequest, ProgressListener)
method.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface CoverageSource
read
-
Field Details
-
CAPABILITIES
-
name
-
coverageDescriptor
-
-
Constructor Details
-
DefaultCoverageSource
-
-
Method Details
-
getReadParameterInfo
Description copied from interface:CoverageSource
Describes the required (and optional) parameters that can be passed to theCoverageSource.read(CoverageReadRequest, ProgressListener)
method.- Specified by:
getReadParameterInfo
in interfaceCoverageSource
- Returns:
- Param a
Map
describing theMap
forCoverageSource.read(CoverageReadRequest, ProgressListener)
.
-
getMetadata
- Specified by:
getMetadata
in interfaceCoverageSource
-
getMetadataDomains
- Specified by:
getMetadataDomains
in interfaceCoverageSource
-
getOverviewsLayouts
public List<? extends RasterLayout> getOverviewsLayouts(ProgressListener listener) throws IOException - Specified by:
getOverviewsLayouts
in interfaceCoverageSource
- Throws:
IOException
-
getOverviewsNumber
- Specified by:
getOverviewsNumber
in interfaceCoverageSource
- Throws:
IOException
-
getName
Description copied from interface:CoverageSource
Name of the Coverage (ie data product) provided by this CoverageSource.- Specified by:
getName
in interfaceCoverageSource
- Returns:
- Name of the Coverage (ie data product) provided.
-
ensureNotDisposed
protected void ensureNotDisposed() -
getCapabilities
Description copied from interface:CoverageSource
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 ) ){ ... }
- Specified by:
getCapabilities
in interfaceCoverageSource
- Returns:
- a
EnumSet
of CoverageCapabilities which can be used to discover capabilities of thisCoverageSource
.
-
getRangeType
Description copied from interface:CoverageSource
Retrieves aRangeType
instance which can be used to describe the codomain for the underlying coverage.- Specified by:
getRangeType
in interfaceCoverageSource
- Returns:
- a
RangeType
instance which can be used to describe the codomain for the underlying coverage. - Throws:
IOException
- in case something bad occurs
-
getCoordinateReferenceSystem
- Specified by:
getCoordinateReferenceSystem
in interfaceCoverageSource
-
getSpatialDomain
- Specified by:
getSpatialDomain
in interfaceCoverageSource
- Throws:
IOException
-
getTemporalDomain
- Specified by:
getTemporalDomain
in interfaceCoverageSource
- Throws:
IOException
-
getVerticalDomain
- Specified by:
getVerticalDomain
in interfaceCoverageSource
- Throws:
IOException
-
getAdditionalDomains
- Specified by:
getAdditionalDomains
in interfaceCoverageSource
- Throws:
IOException
-
getDimensionDescriptors
- Specified by:
getDimensionDescriptors
in interfaceCoverageSource
- Throws:
IOException
-
getInfo
Description copied from interface:CoverageSource
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
- Specified by:
getInfo
in interfaceCoverageSource
-
dispose
public void dispose()Description copied from interface:CoverageSource
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.- Specified by:
dispose
in interfaceCoverageSource
-