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, wait
read
protected 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()
CoverageSource
CoverageSource.read(CoverageReadRequest, ProgressListener)
method.
getReadParameterInfo
in interface CoverageSource
Map
describing the Map
for CoverageSource.read(CoverageReadRequest,
ProgressListener)
.public MetadataNode getMetadata(String metadataDomain, ProgressListener listener)
getMetadata
in interface CoverageSource
public Set<Name> getMetadataDomains()
getMetadataDomains
in interface CoverageSource
public List<? extends RasterLayout> getOverviewsLayouts(ProgressListener listener) throws IOException
getOverviewsLayouts
in interface CoverageSource
IOException
public int getOverviewsNumber(ProgressListener listener) throws IOException
getOverviewsNumber
in interface CoverageSource
IOException
public Name getName(ProgressListener listener)
CoverageSource
getName
in interface CoverageSource
protected void ensureNotDisposed()
public EnumSet<CoverageCapabilities> getCapabilities()
CoverageSource
CoverageCapabilities
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 CoverageSource
EnumSet
of CoverageCapabilities which can be used to discover capabilities
of this CoverageSource
.public RangeType getRangeType(ProgressListener listener) throws IOException
CoverageSource
RangeType
instance which can be used to describe the codomain for the
underlying coverage.getRangeType
in interface CoverageSource
RangeType
instance which can be used to describe the codomain for the
underlying coverage.IOException
- in case something bad occurspublic CoordinateReferenceSystem getCoordinateReferenceSystem()
getCoordinateReferenceSystem
in interface CoverageSource
public CoverageSource.SpatialDomain getSpatialDomain() throws IOException
getSpatialDomain
in interface CoverageSource
IOException
public CoverageSource.TemporalDomain getTemporalDomain() throws IOException
getTemporalDomain
in interface CoverageSource
IOException
public CoverageSource.VerticalDomain getVerticalDomain() throws IOException
getVerticalDomain
in interface CoverageSource
IOException
public List<CoverageSource.AdditionalDomain> getAdditionalDomains() throws IOException
getAdditionalDomains
in interface CoverageSource
IOException
public List<DimensionDescriptor> getDimensionDescriptors() throws IOException
getDimensionDescriptors
in interface CoverageSource
IOException
public ResourceInfo getInfo(ProgressListener listener)
CoverageSource
Please note that for FeatureContent:
getInfo
in interface CoverageSource
public void dispose()
CoverageSource
CoverageSource
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 CoverageSource
Copyright © 1996–2019 Geotools. All rights reserved.