Package org.geotools.coverage.io
Interface CoverageSource
-
- All Known Subinterfaces:
CoverageStore
- All Known Implementing Classes:
DefaultCoverageSource,NetCDFSource
public interface CoverageSourceAllows read-only access to a Coverage.- Author:
- Simone Giannecchini, GeoSolutions, Jody Garnett
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCoverageSource.AdditionalDomainstatic classCoverageSource.DomainTypestatic classCoverageSource.SpatialDomainstatic classCoverageSource.TemporalDomainstatic classCoverageSource.VerticalDomain
-
Method Summary
-
-
-
Method Detail
-
getName
Name getName(ProgressListener listener)
Name of the Coverage (ie data product) provided by this CoverageSource.- Returns:
- Name of the Coverage (ie data product) provided.
- Since:
- 2.5
-
getInfo
ResourceInfo getInfo(ProgressListener listener)
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
Map<String,Parameter<?>> getReadParameterInfo()
Describes the required (and optional) parameters that can be passed to theread(CoverageReadRequest, ProgressListener)method.- Returns:
- Param a
Mapdescribing theMapforread(CoverageReadRequest, ProgressListener).
-
read
CoverageResponse read(CoverageReadRequest request, ProgressListener listener) throws IOException
- Parameters:
request- the inputDefaultCoverageRequest.- Throws:
IOException
-
getRangeType
RangeType getRangeType(ProgressListener listener) throws IOException
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
MetadataNode getMetadata(String metadataDomain, ProgressListener listener)
-
getCoordinateReferenceSystem
CoordinateReferenceSystem getCoordinateReferenceSystem()
-
getSpatialDomain
CoverageSource.SpatialDomain getSpatialDomain() throws IOException
- Throws:
IOException
-
getTemporalDomain
CoverageSource.TemporalDomain getTemporalDomain() throws IOException
- Throws:
IOException
-
getVerticalDomain
CoverageSource.VerticalDomain getVerticalDomain() throws IOException
- Throws:
IOException
-
getAdditionalDomains
List<CoverageSource.AdditionalDomain> getAdditionalDomains() throws IOException
- Throws:
IOException
-
getOverviewsLayouts
List<? extends RasterLayout> getOverviewsLayouts(ProgressListener listener) throws IOException
- Throws:
IOException
-
getOverviewsNumber
int getOverviewsNumber(ProgressListener listener) throws IOException
- Throws:
IOException
-
getDimensionDescriptors
List<DimensionDescriptor> getDimensionDescriptors() throws IOException
- Throws:
IOException
-
-