C# Class GeoCache.Common.Repository.MongoRepository

Implementation class for Mongo data repository
Inheritance: INoSqlRepository
Afficher le fichier Open project: OliveiraThales/GeoCache Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Dispose

GetAll ( string featureClassName ) : IEnumerable

Get all geometries from a featureClass

GetByEnvelope ( string featureClassName, IEnvelope envelope ) : IEnumerable

Get all geometries inside the envelope from a featureClass

GetFullExtent ( string featureClassName ) : IEnvelope

Get full extent of featureClass

Insert ( string featureClassName, IGeometry geometry ) : void

Insert a document in the data repository.

MongoRepository ( ) : System.Collections.Generic

Constructor

RemoveAll ( string featureClassName ) : void

Remove all the data from the repository.

Private Methods

Méthode Description
Connect ( ) : void

Connect to mongo server

Deserialize ( byte bytes ) : Geometry.Geometry

Deserialize a geometry

GetCollection ( string collectionName ) : MongoCollection

Get the collection from cache

Parser ( BsonDocument document ) : IGeometry

Parse mongo document to Geometry

Serialize ( Geometry geometry ) : byte[]

Serialize a geometry

Method Details

Dispose() public méthode

Dispose
public Dispose ( ) : void
Résultat void

GetAll() public méthode

Get all geometries from a featureClass
public GetAll ( string featureClassName ) : IEnumerable
featureClassName string FeatureClass name
Résultat IEnumerable

GetByEnvelope() public méthode

Get all geometries inside the envelope from a featureClass
public GetByEnvelope ( string featureClassName, IEnvelope envelope ) : IEnumerable
featureClassName string FeatureClass name
envelope IEnvelope Envelope
Résultat IEnumerable

GetFullExtent() public méthode

Get full extent of featureClass
public GetFullExtent ( string featureClassName ) : IEnvelope
featureClassName string FeatureClass name
Résultat IEnvelope

Insert() public méthode

Insert a document in the data repository.
public Insert ( string featureClassName, IGeometry geometry ) : void
featureClassName string featureClassName
geometry IGeometry /// O documento ///
Résultat void

MongoRepository() public méthode

Constructor
public MongoRepository ( ) : System.Collections.Generic
Résultat System.Collections.Generic

RemoveAll() public méthode

Remove all the data from the repository.
public RemoveAll ( string featureClassName ) : void
featureClassName string
Résultat void