C# 클래스 GeoCache.Common.Repository.MongoRepository

Implementation class for Mongo data repository
상속: INoSqlRepository
파일 보기 프로젝트 열기: OliveiraThales/GeoCache 1 사용 예제들

공개 메소드들

메소드 설명
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