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 classFeatureIndexer.FeatureBoundsA 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 voidaddFeatures(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 isnullit is considered to be unconstrained in that dimension.- Parameters:
horizontalExtent- TheBoundingBoxwhich 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
Collectionof 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.FeatureBoundsobjects which define the spatial boundaries of point features- Parameters:
features-
-
-