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 booleancacheEnabled
-
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 voidexpireFromCache(String varId)FeatureCatalogue.FeaturesAndMemberNamegetFeaturesForLayer(String id, PlottingDomainParams params)Given a singleStringidentifier and a set ofPlottingDomainParams, returns aCollectionofDiscreteFeaturesprotected 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:FeatureCatalogueGiven a singleStringidentifier and a set ofPlottingDomainParams, returns aCollectionofDiscreteFeatures- Specified by:
getFeaturesForLayerin interfaceFeatureCatalogue- Parameters:
id- The name of the layer to extractparams- ThePlottingDomainParamsdescribing the domain to be plotted- Returns:
- A
FeatureCatalogue.FeaturesAndMemberNameobject encapsulating the returnedDiscreteFeatures - 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
-
-