Package org.gvsig.fmap.dal.feature
Interface FeatureCache
- All Superinterfaces:
DataCache
This class represents a vectorial cache that is used to save and retrieve
can save the
FeatureSets. First time that a FeatureStore have to retrieve
data from a
invalid reference
FeatureStoreProvider
FeatureSet in
the cache with its envelope. Next time that the store has to access to a envelope
contained in the previous envelope can retrieve the features directly
from the cache and it is not necessary to retrieve data from the provider.
The cache supports different scales and creates- Author:
- Jorge Piera
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddFeatures(FeatureSet featureSet, FeatureStore featureStore) Add a set of features contained in a envelope for a concrete scale.voiddelete(double scale) Delete all the features for a concrete scale.getFeatureSet(org.gvsig.fmap.geom.primitive.Envelope envelope, double scale) Return a feature set form a concrete envelope and a scale.
-
Method Details
-
delete
Delete all the features for a concrete scale.- Parameters:
scale- The scale.- Throws:
DataException
-
addFeatures
Add a set of features contained in a envelope for a concrete scale.- Parameters:
featureSet- The feature set retrieved from the server.featureStore-- Throws:
DataException
-
getFeatureSet
FeatureSet getFeatureSet(org.gvsig.fmap.geom.primitive.Envelope envelope, double scale) throws DataException Return a feature set form a concrete envelope and a scale.- Parameters:
envelope- The envelope.scale- The scale.- Returns:
- A feature set contained in the evelope.
- Throws:
DataException
-