Interface FeatureCache

All Superinterfaces:
DataCache

public interface FeatureCache extends DataCache
This class represents a vectorial cache that is used to save and retrieve FeatureSets. First time that a FeatureStore have to retrieve data from a
invalid reference
FeatureStoreProvider
can save the 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 Type
    Method
    Description
    void
    addFeatures(FeatureSet featureSet, FeatureStore featureStore)
    Add a set of features contained in a envelope for a concrete scale.
    void
    delete(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.

    Methods inherited from interface org.gvsig.fmap.dal.DataCache

    deleteAll
  • Method Details

    • delete

      void delete(double scale) throws DataException
      Delete all the features for a concrete scale.
      Parameters:
      scale - The scale.
      Throws:
      DataException
    • addFeatures

      void addFeatures(FeatureSet featureSet, FeatureStore featureStore) throws DataException
      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