C# Class Raven.Database.Indexing.SpatialIndex

Afficher le fichier Open project: synhershko/ravendb Class Usage Examples

Méthodes publiques

Méthode Description
CreateStrategy ( string fieldName, SpatialSearchStrategy spatialSearchStrategy, int maxTreeLevel ) : SpatialStrategy
GetDistance ( double fromLat, double fromLng, double toLat, double toLng ) : double
MakeFilter ( SpatialStrategy spatialStrategy, IndexQuery indexQuery ) : Filter
MakeQuery ( SpatialStrategy spatialStrategy, string shapeWKT, Raven.Abstractions.Indexing.SpatialRelation relation, double distanceErrorPct = 0.025 ) : Query
ReadShape ( string shapeWKT ) : Shape
WriteShape ( Shape shape ) : string

Private Methods

Méthode Description
SpatialIndex ( ) : System
TranslateCircleFromKmToRadians ( string shapeWKT ) : string

Method Details

CreateStrategy() public static méthode

public static CreateStrategy ( string fieldName, SpatialSearchStrategy spatialSearchStrategy, int maxTreeLevel ) : SpatialStrategy
fieldName string
spatialSearchStrategy SpatialSearchStrategy
maxTreeLevel int
Résultat Lucene.Net.Spatial.SpatialStrategy

GetDistance() public static méthode

public static GetDistance ( double fromLat, double fromLng, double toLat, double toLng ) : double
fromLat double
fromLng double
toLat double
toLng double
Résultat double

MakeFilter() public static méthode

public static MakeFilter ( SpatialStrategy spatialStrategy, IndexQuery indexQuery ) : Filter
spatialStrategy Lucene.Net.Spatial.SpatialStrategy
indexQuery Raven.Abstractions.Data.IndexQuery
Résultat Lucene.Net.Search.Filter

MakeQuery() public static méthode

public static MakeQuery ( SpatialStrategy spatialStrategy, string shapeWKT, Raven.Abstractions.Indexing.SpatialRelation relation, double distanceErrorPct = 0.025 ) : Query
spatialStrategy Lucene.Net.Spatial.SpatialStrategy
shapeWKT string
relation Raven.Abstractions.Indexing.SpatialRelation
distanceErrorPct double
Résultat Lucene.Net.Search.Query

ReadShape() public static méthode

public static ReadShape ( string shapeWKT ) : Shape
shapeWKT string
Résultat Shape

WriteShape() public static méthode

public static WriteShape ( Shape shape ) : string
shape Shape
Résultat string