C# Class GeoCache.Cache.InMemoryCache

InMemeory implementation of ICache
Inheritance: ICache
Afficher le fichier Open project: OliveiraThales/GeoCache Class Usage Examples

Méthodes publiques

Méthode Description
BuildAllCache ( ) : void

Build the cache for a featureclass

BuildCursor ( IEnumerable geometries ) : void

Build cache based on cursor

BuildEnvelope ( IEnvelope envelope ) : void

Build a cache for a especific featureClass and extent

InMemoryCache ( IRepository repository, IEnvelope fullExtent, string featureClass ) : System

Constructor

RetriveData ( IEnvelope envelop, IList &outerData, IEnvelope &affectedEnvelop ) : bool

Retrive data from cache

Private Methods

Méthode Description
AddGeometries ( IEnumerable geometries ) : void

Add geometries to cache

BuildGrid ( IEnvelope envelop ) : void

Build the grid based on Quadtree algorithm

BuildQuarter ( BoundingBox envelope, int level, List &order ) : void

Build a quarter for index

CreateSpatialIndex ( IEnvelope envelop ) : QuadTree

Generates a spatial index for a specified shape file.

GetAllFeatureBoundingBoxes ( IEnvelope envelop ) : IEnumerable

Reads all boundingboxes of features in the shapefile. This is used for spatial indexing.

Method Details

BuildAllCache() public méthode

Build the cache for a featureclass
public BuildAllCache ( ) : void
Résultat void

BuildCursor() public méthode

Build cache based on cursor
public BuildCursor ( IEnumerable geometries ) : void
geometries IEnumerable Geometries to add
Résultat void

BuildEnvelope() public méthode

Build a cache for a especific featureClass and extent
public BuildEnvelope ( IEnvelope envelope ) : void
envelope IEnvelope Envelope
Résultat void

InMemoryCache() public méthode

Constructor
public InMemoryCache ( IRepository repository, IEnvelope fullExtent, string featureClass ) : System
repository IRepository The repository
fullExtent IEnvelope Full Extent
featureClass string FeatureClass name
Résultat System

RetriveData() public méthode

Retrive data from cache
public RetriveData ( IEnvelope envelop, IList &outerData, IEnvelope &affectedEnvelop ) : bool
envelop IEnvelope Envelope for search
outerData IList Output data
affectedEnvelop IEnvelope Affected envelop in the grid
Résultat bool