C# Класс GeoCache.Common.Repository.MongoRepository

Implementation class for Mongo data repository
Наследование: INoSqlRepository
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Dispose() публичный Метод

Dispose
public Dispose ( ) : void
Результат void

GetAll() публичный Метод

Get all geometries from a featureClass
public GetAll ( string featureClassName ) : IEnumerable
featureClassName string FeatureClass name
Результат IEnumerable

GetByEnvelope() публичный Метод

Get all geometries inside the envelope from a featureClass
public GetByEnvelope ( string featureClassName, IEnvelope envelope ) : IEnumerable
featureClassName string FeatureClass name
envelope IEnvelope Envelope
Результат IEnumerable

GetFullExtent() публичный Метод

Get full extent of featureClass
public GetFullExtent ( string featureClassName ) : IEnvelope
featureClassName string FeatureClass name
Результат IEnvelope

Insert() публичный Метод

Insert a document in the data repository.
public Insert ( string featureClassName, IGeometry geometry ) : void
featureClassName string featureClassName
geometry IGeometry /// O documento ///
Результат void

MongoRepository() публичный Метод

Constructor
public MongoRepository ( ) : System.Collections.Generic
Результат System.Collections.Generic

RemoveAll() публичный Метод

Remove all the data from the repository.
public RemoveAll ( string featureClassName ) : void
featureClassName string
Результат void