Class SimpleFeatureCatalogue<D extends Dataset>
- java.lang.Object
-
- uk.ac.rdg.resc.edal.graphics.utils.SimpleFeatureCatalogue<D>
-
- All Implemented Interfaces:
FeatureCatalogue
public class SimpleFeatureCatalogue<D extends Dataset> extends Object implements FeatureCatalogue
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface uk.ac.rdg.resc.edal.graphics.utils.FeatureCatalogue
FeatureCatalogue.FeaturesAndMemberName
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
cacheEnabled
-
Constructor Summary
Constructors Constructor Description SimpleFeatureCatalogue(D dataset, boolean cacheEnabled)
SimpleFeatureCatalogue(Collection<D> datasets, boolean cacheEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
expireFromCache(String varId)
FeatureCatalogue.FeaturesAndMemberName
getFeaturesForLayer(String id, PlottingDomainParams params)
Given a singleString
identifier and a set ofPlottingDomainParams
, returns aCollection
ofDiscreteFeature
sprotected List<? extends DiscreteFeature<?,?>>
getMapFeature(PlottingDomainParams params, String varId, boolean cache)
-
-
-
Constructor Detail
-
SimpleFeatureCatalogue
public SimpleFeatureCatalogue(D dataset, boolean cacheEnabled)
-
SimpleFeatureCatalogue
public SimpleFeatureCatalogue(Collection<D> datasets, boolean cacheEnabled)
-
-
Method Detail
-
getFeaturesForLayer
public FeatureCatalogue.FeaturesAndMemberName getFeaturesForLayer(String id, PlottingDomainParams params) throws EdalException
Description copied from interface:FeatureCatalogue
Given a singleString
identifier and a set ofPlottingDomainParams
, returns aCollection
ofDiscreteFeature
s- Specified by:
getFeaturesForLayer
in interfaceFeatureCatalogue
- Parameters:
id
- The name of the layer to extractparams
- ThePlottingDomainParams
describing the domain to be plotted- Returns:
- A
FeatureCatalogue.FeaturesAndMemberName
object encapsulating the returnedDiscreteFeature
s - Throws:
EdalException
- if there is a problem with feature extraction.
-
expireFromCache
public void expireFromCache(String varId)
-
getMapFeature
protected List<? extends DiscreteFeature<?,?>> getMapFeature(PlottingDomainParams params, String varId, boolean cache) throws DataReadingException, VariableNotFoundException
-
-