C# Class Raven.Database.Indexing.SpatialIndex

Show file Open project: synhershko/ravendb Class Usage Examples

Public Methods

Method 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

Method Description
SpatialIndex ( ) : System
TranslateCircleFromKmToRadians ( string shapeWKT ) : string

Method Details

CreateStrategy() public static method

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

GetDistance() public static method

public static GetDistance ( double fromLat, double fromLng, double toLat, double toLng ) : double
fromLat double
fromLng double
toLat double
toLng double
return double

MakeFilter() public static method

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

MakeQuery() public static method

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
return Lucene.Net.Search.Query

ReadShape() public static method

public static ReadShape ( string shapeWKT ) : Shape
shapeWKT string
return Shape

WriteShape() public static method

public static WriteShape ( Shape shape ) : string
shape Shape
return string