C# Class Lucene.Net.Spatial.Prefix.Tree.GeohashPrefixTree

A SpatialPrefixGrid based on Geohashes. Uses {@link GeohashUtils} to do all the geohash work.
Inheritance: SpatialPrefixTree
ファイルを表示 Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
GeohashPrefixTree ( SpatialContext ctx, int maxLevels ) : Spatial4n.Core.Context
GetCell ( byte bytes, int offset, int len ) : Cell
GetCell ( string token ) : Cell
GetLevelForDistance ( double dist ) : int

Protected Methods

Method Description
GetCell ( IPoint p, int level ) : Cell

Method Details

GeohashPrefixTree() public method

public GeohashPrefixTree ( SpatialContext ctx, int maxLevels ) : Spatial4n.Core.Context
ctx Spatial4n.Core.Context.SpatialContext
maxLevels int
return Spatial4n.Core.Context

GetCell() protected method

protected GetCell ( IPoint p, int level ) : Cell
p IPoint
level int
return Cell

GetCell() public method

public GetCell ( byte bytes, int offset, int len ) : Cell
bytes byte
offset int
len int
return Cell

GetCell() public method

public GetCell ( string token ) : Cell
token string
return Cell

GetLevelForDistance() public method

public GetLevelForDistance ( double dist ) : int
dist double
return int