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 CoverageSourceDescriptorprotected final Name -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultCoverageSource(Name name, CoverageSourceDescriptor descriptor) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Closes thisCoverageSourceand releases any lock or cached information it holds.protected voidSet 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 theCoverageSource.read(CoverageReadRequest, ProgressListener)method.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CoverageSource
read
-
Field Details
-
CAPABILITIES
-
name
-
coverageDescriptor
-
-
Constructor Details
-
DefaultCoverageSource
-
-
Method Details
-
getReadParameterInfo
Description copied from interface:CoverageSourceDescribes the required (and optional) parameters that can be passed to theCoverageSource.read(CoverageReadRequest, ProgressListener)method.- Specified by:
getReadParameterInfoin interfaceCoverageSource- Returns:
- Param a
Mapdescribing theMapforCoverageSource.read(CoverageReadRequest, ProgressListener).
-
getMetadata
- Specified by:
getMetadatain interfaceCoverageSource
-
getMetadataDomains
- Specified by:
getMetadataDomainsin interfaceCoverageSource
-
getOverviewsLayouts
public List<? extends RasterLayout> getOverviewsLayouts(ProgressListener listener) throws IOException - Specified by:
getOverviewsLayoutsin interfaceCoverageSource- Throws:
IOException
-
getOverviewsNumber
- Specified by:
getOverviewsNumberin interfaceCoverageSource- Throws:
IOException
-
getName
Description copied from interface:CoverageSourceName of the Coverage (ie data product) provided by this CoverageSource.- Specified by:
getNamein interfaceCoverageSource- Returns:
- Name of the Coverage (ie data product) provided.
-
ensureNotDisposed
protected void ensureNotDisposed() -
getCapabilities
Description copied from interface:CoverageSourceSet 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 ) ){ ... }- Specified by:
getCapabilitiesin interfaceCoverageSource- Returns:
- a
EnumSetof CoverageCapabilities which can be used to discover capabilities of thisCoverageSource.
-
getRangeType
Description copied from interface:CoverageSourceRetrieves aRangeTypeinstance which can be used to describe the codomain for the underlying coverage.- Specified by:
getRangeTypein interfaceCoverageSource- Returns:
- a
RangeTypeinstance which can be used to describe the codomain for the underlying coverage. - Throws:
IOException- in case something bad occurs
-
getCoordinateReferenceSystem
- Specified by:
getCoordinateReferenceSystemin interfaceCoverageSource
-
getSpatialDomain
- Specified by:
getSpatialDomainin interfaceCoverageSource- Throws:
IOException
-
getTemporalDomain
- Specified by:
getTemporalDomainin interfaceCoverageSource- Throws:
IOException
-
getVerticalDomain
- Specified by:
getVerticalDomainin interfaceCoverageSource- Throws:
IOException
-
getAdditionalDomains
- Specified by:
getAdditionalDomainsin interfaceCoverageSource- Throws:
IOException
-
getDimensionDescriptors
- Specified by:
getDimensionDescriptorsin interfaceCoverageSource- Throws:
IOException
-
getInfo
Description copied from interface:CoverageSourceInformation 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:
getInfoin interfaceCoverageSource
-
dispose
public void dispose()Description copied from interface:CoverageSourceCloses 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.- Specified by:
disposein interfaceCoverageSource
-