Package uk.ac.rdg.resc.edal.dataset
Interface FeatureIndexer
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
PRTreeFeatureIndexer
public interface FeatureIndexer extends Serializable
A class representing a spatial indexer for features.- Author:
- Guy Griffiths
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
FeatureIndexer.FeatureBounds
A class representing the spatial bounds of a feature with a single point.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addFeatures(List<FeatureIndexer.FeatureBounds> features)
Adds features to this indexer.Collection<String>
findFeatureIds(BoundingBox horizontalExtent, Extent<Double> verticalExtent, Extent<org.joda.time.DateTime> timeExtent, Collection<String> variableIds)
Finds the IDs of features with the given spatio-temporal constraints.Set<String>
getAllFeatureIds()
-
-
-
Method Detail
-
findFeatureIds
Collection<String> findFeatureIds(BoundingBox horizontalExtent, Extent<Double> verticalExtent, Extent<org.joda.time.DateTime> timeExtent, Collection<String> variableIds)
Finds the IDs of features with the given spatio-temporal constraints. If any constraint isnull
it is considered to be unconstrained in that dimension.- Parameters:
horizontalExtent
- TheBoundingBox
which features must have positions in.verticalExtent
- The vertical range which features must have positions in.timeExtent
- The time range which features must have positions in.variableIds
- The variable IDs which features must contain- Returns:
- A
Collection
of IDs for features which match all of the given constraints
-
getAllFeatureIds
Set<String> getAllFeatureIds()
- Returns:
- All feature IDs present in this
FeatureIndexer
-
addFeatures
void addFeatures(List<FeatureIndexer.FeatureBounds> features)
Adds features to this indexer. Features are defined in terms ofFeatureIndexer.FeatureBounds
objects which define the spatial boundaries of point features- Parameters:
features
-
-
-