public abstract class DefaultCoverageSource extends Object implements CoverageSource
CoverageSource.CoverageSource.AdditionalDomain, CoverageSource.DomainType, CoverageSource.SpatialDomain, CoverageSource.TemporalDomain, CoverageSource.VerticalDomain| Modifier and Type | Field and Description |
|---|---|
protected static EnumSet<CoverageCapabilities> |
CAPABILITIES |
protected CoverageSourceDescriptor |
coverageDescriptor |
protected Name |
name |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultCoverageSource(Name name,
CoverageSourceDescriptor descriptor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadprotected static final EnumSet<CoverageCapabilities> CAPABILITIES
protected final Name name
protected final CoverageSourceDescriptor coverageDescriptor
protected DefaultCoverageSource(Name name, CoverageSourceDescriptor descriptor)
name - coverageDescriptor - public Map<String,Parameter<?>> getReadParameterInfo()
CoverageSourceCoverageSource.read(CoverageReadRequest, ProgressListener) method.
getReadParameterInfo in interface CoverageSourceMap describing the Map for CoverageSource.read(CoverageReadRequest,
ProgressListener).public MetadataNode getMetadata(String metadataDomain, ProgressListener listener)
getMetadata in interface CoverageSourcepublic Set<Name> getMetadataDomains()
getMetadataDomains in interface CoverageSourcepublic List<? extends RasterLayout> getOverviewsLayouts(ProgressListener listener) throws IOException
getOverviewsLayouts in interface CoverageSourceIOExceptionpublic int getOverviewsNumber(ProgressListener listener) throws IOException
getOverviewsNumber in interface CoverageSourceIOExceptionpublic Name getName(ProgressListener listener)
CoverageSourcegetName in interface CoverageSourceprotected void ensureNotDisposed()
public EnumSet<CoverageCapabilities> getCapabilities()
CoverageSourceCoverageCapabilities 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 ) ){
...
}
getCapabilities in interface CoverageSourceEnumSet of CoverageCapabilities which can be used to discover capabilities
of this CoverageSource.public RangeType getRangeType(ProgressListener listener) throws IOException
CoverageSourceRangeType instance which can be used to describe the codomain for the
underlying coverage.getRangeType in interface CoverageSourceRangeType instance which can be used to describe the codomain for the
underlying coverage.IOException - in case something bad occurspublic CoordinateReferenceSystem getCoordinateReferenceSystem()
getCoordinateReferenceSystem in interface CoverageSourcepublic CoverageSource.SpatialDomain getSpatialDomain() throws IOException
getSpatialDomain in interface CoverageSourceIOExceptionpublic CoverageSource.TemporalDomain getTemporalDomain() throws IOException
getTemporalDomain in interface CoverageSourceIOExceptionpublic CoverageSource.VerticalDomain getVerticalDomain() throws IOException
getVerticalDomain in interface CoverageSourceIOExceptionpublic List<CoverageSource.AdditionalDomain> getAdditionalDomains() throws IOException
getAdditionalDomains in interface CoverageSourceIOExceptionpublic List<DimensionDescriptor> getDimensionDescriptors() throws IOException
getDimensionDescriptors in interface CoverageSourceIOExceptionpublic ResourceInfo getInfo(ProgressListener listener)
CoverageSourcePlease note that for FeatureContent:
getInfo in interface CoverageSourcepublic void dispose()
CoverageSourceCoverageSource 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.
dispose in interface CoverageSourceCopyright © 1996–2019 Geotools. All rights reserved.